uint8_t *pucEthernetBufferGet( size_t *pxRequestedSizeBytes );
Obtains an Ethernet buffer from the IP stack.
Whereas pxNetworkBufferGet() obtains a network buffer descriptor that can (optionally) reference an Ethernet buffer, pucEthernetBufferGet() just obtains the Ethernet buffer itself.
pucEthernetBufferGet() must not be called from an interrupt service routine (ISR).
Parameters:
| xRequestedSizeBytes |
The size of the Ethernet buffer to obtain. The size
is specified in bytes.
|
Returns:
Successful calls return a pointer to the obtained Ethernet buffer. Unsuccessful calls return NULL.
Example usage:
Examples are provided on the Porting FreeRTOS to a Different Microcontroller page.