Data Fields | |
int(* | open )(UThread *, const UPortDevice *, const UCell *from, int opt, UCell *res) |
Create and open a new port. | |
void(* | close )(UBuffer *) |
Close port. | |
int(* | read )(UThread *, UBuffer *, UCell *, int part) |
Read data from port. | |
int(* | write )(UThread *, UBuffer *, const UCell *) |
Write data to port. | |
int(* | seek )(UThread *, UBuffer *, UCell *, int where) |
Seek to position. |
int(* UPortDevice::open)(UThread *, const UPortDevice *pdev, const UCell *from, int opt, UCell *res) |
Create and open a new port.
pdev | This device class. | |
from | Specification of port. | |
opt | Port options. | |
res | Cell for new port. |
void(* UPortDevice::close)(UBuffer *pbuf) |
int(* UPortDevice::read)(UThread *, UBuffer *pbuf, UCell *dest, int part) |
Read data from port.
pbuf | Buffer created by UPortDevice::open. | |
dest | Destination buffer. | |
part | If greater than zero, then limit read to this number of bytes. |
int(* UPortDevice::write)(UThread *, UBuffer *pbuf, const UCell *data) |
Write data to port.
pbuf | Buffer created by UPortDevice::open. | |
data | Data to write. |
int(* UPortDevice::seek)(UThread *, UBuffer *pbuf, UCell *pos, int where) |
Seek to position.
pbuf | Buffer created by UPortDevice::open. | |
pos | New position relative to where. | |
where | SEEK_SET, SEEK_END, or SEEK_CUR. |