<< Previous | Next >> | |
|
int HDLCerrorX( unsigned long * bufptr, int * lenptr ); /* Where X is E or F */
Description
- This function returns a set of possible error flags as an integer. A received packet with errors is automatically dropped.
- Masks are used to check which errors have occurred. The masks are:
HDLC_NOBUFFER
- driver ran out of buffers for received packets.
HDLC_OVERRUN
- a byte was overwritten and lost before the ISR could retreive it.
HDLC_OVERFLOW
- a received packet was too long for the buffers.
HDLC_ABORTED
- a received packet was aborted by the sender during tranmission.
- This function is intended for use with the Rabbit 3000 and Rabbit 4000.
Return Value
- Error flags (see above).
Library
- HDLC_PACKET.LIB
Dynamic C Functions | << Previous | Next >> | rabbit.com |