<< Previous | Next >>

HDLCpeekX

int HDLCpeekX( unsigned long * bufptr, int * lenptr ); /* Where X is E or F */

Description

Reports the location and size of the next available received packet if one is available. This function can be used to efficiently inspect a received packet without actually copying it into a root memory buffer. Once inspected, the buffer can be received normally (see HDLCreceiveX()), or dropped (see HDLCdropX()).

This function is intended for use with the Rabbit 3000 and Rabbit 4000.

Parameters

bufptr
Pointer to location in xmem of the received packet.

lenptr
Pointer to the size of the received packet.

Return Value

1: The pointers bufptr and lenptr have been set for the received packet.
0: No received packets available.

Library

HDLC_PACKET.LIB


Dynamic C Functions << Previous | Next >> rabbit.com