Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

NetDev_Rx()

The receive/Rx() function is called by µC/TCP-IP’s Receive task after the Interrupt Service Routine handler has signaled to the Receive task that a receive event has occurred. The Receive function requires that the device driver return a pointer to the data area containing the received data and return the size of the received frame via pointer.

...

Every device driver’s net_dev.c

Prototype

 

...

Note that since every device driver’s Rx() function is accessed only by function pointer via the device driver’s API structure, it doesn’t need to be globally available and should therefore be declared as ‘static’.

...