|
Defines |
| #define | com_send(iface, buf) com_send_##iface (buf) |
| | Send data over specified interface. Blocks until the data has been transmitted.
|
|
#define | com_sendto(iface, buf, dest) com_sendto_##iface(buf,dest) |
| #define | com_ioctl(iface, request, args...) com_ioctl_##iface (request, ##args) |
| | Pass ioctl flag and data down to the given interface.
|
| #define | com_mode(iface, mode) com_mode_##iface (mode) |
| | Pass the mode setting down to the given interface.
|
Functions |
| void | com_flush (uint8_t iface) |
| | Flush the packets on a particular interface.
|
| comBuf * | com_recv (uint8_t iface) |
| | Receive data from a specified interface. Blocks until a packet is available. It is important that once the received comBuf has been handled that the application call com_free_buf(buf) to release the buffer back to the system.
|
| comBuf * | com_recv_timed (uint8_t iface, uint32_t msecs) |
| | Receive data from a specified interface. If no data is received in the specified amount of time, the call will return.
|
| void | com_free_buf (comBuf *buf) |
| | Release a buffer returned by com_recv or com_recv_timed back to the system. If buffers are not released with this method, The system will run out of buffers and not be able to receive data.
|