IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


int pktIncomingPacket ( DevUserIfaceHandle  devHandle,
void *  pktTypePtr,
void *  buffer,
int  len 
)

Incoming packet dispatcher for use by user device drivers built with the Device Driver API.

The user must call this function from their device driver's receiver in order for the packet driver receive mechanism to work. If no packet driver handlers will be used on a device, then this call is not necessary for that device.

From within this API the user installed packet callback function will be invoked if a packet type match is detected.

Parameters:
[in] devHandle Device handle to identify the interface.
[in] pktTypePtr Pointer to the first byte of the type field within the received packet .
[in] buffer Pointer to the packet (e.g. an Ethernet frame).
[in] len Length of the packet in bytes.
Returns:
0 on success
-1 on failure
Note:
The system executes this function internally when packet handler traps have been set on the built-in Ethernet "FEC" device.
Since:
SC2x3 V1.00 - CLIB V1.00
See also:
pktSetAccessType()





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:36 2017 by Doxygen 1.6.1