<< Previous | Next >> | |
|
int HDLCreceiveX(char *rx_buffer, int length); /* Where X is E or F */
Description
- Copies a received packet into
rx_buffer
if there is one. Packets are received in the order they arrive, even if multiple packets are currently stored in buffers.
- This function is intended for use with the Rabbit 3000 and Rabbit 4000.
Parameters
- rx_buffer
- Pointer to the buffer to copy a received packet into.
- length
- Size of the buffer pointed to by
rx_buffer
.
Return Value
- ≥
0
: Size of received packet.
-1
: No packets are available to receive.
-2
: The buffer is not large enough for the received packet. In this case, the packet remains in the receive buffer)Library
- HDLC_PACKET.LIB
Dynamic C Functions | << Previous | Next >> | rabbit.com |