![]() |
|
| << Previous | Next >> | |
| | |
int pktXreceive( void * buffer, int buffer_size ); /* X is A-F */
Description
- Gets a received packet, if there is one, from serial port X.
- The functions
pktEreceive()andpktFreceive()may be used with the Rabbit 3000 and Rabbit 4000.Parameters
- buffer
- A buffer for the packet to be written into.
- buffer_size
- Length of the data buffer.
Return value
>0: Number of bytes in the successfully received packet.
0: No new packet has been received.
-1: The packet is too large for the given buffer.
-2: A neededtest_packetfunction is not defined.Library
- PACKET.LIB
| Dynamic C Functions | << Previous | Next >> | rabbit.com |