IPC@CHIP® RTOS-PPC – API Documentation |
![]() |
This is the packet receiver callback function type that applies to the cbRecvfunc member of the PktHandle structure. This callback function is executed by pktIncomingPacket(), which in turn must have been called by the respective device driver's receive function. The call occurs when a packet is received whose type matches one of the installed packet traps.
Although it is not explicitly declared so by this callback prototype, the The return value from this callback should be zero on success and -1 on failure. The system makes no direct use of this return value other than to pass it along up to the caller of the pktIncomingPacket() API. (The internal Ethernet driver ignores this returned value.)
|