e:/hudson/workspace/MityDSP MDK Release/trunk/sw/inc/net/net_drvr/net_drvr.h File Reference
MityDSP network driver base class header file.
More...
#include "net/net_drvr/DspNetPhy.h"
Detailed Description
MityDSP network driver base class header file.
o 0 | / Copyright (c) 2005-2007 (CL)---o Critical Link, LLC \ O
Define Documentation
#define PBUF_DIRECT_COPY 1 |
Typedef Documentation
typedef void(* tfNetRxCallback)(void *apBuffer, int anLen, void *apUser, bool abInIsr) |
This prototype defines a callback function that is activated each time an Ethernet packet is received from the network.
- Parameters:
-
[in] | apBuffer | Pointer to the Ethernet packet. |
[in] | anLen | The number of bytes in the Ethernet packet. |
[in] | apUser | A callback-specific parameter supplied when the callback is registered. |
[in] | abInIsr | True if being called from ISR context |
- Returns:
- None.
This prototype defines a callback function that is activated each time a new empty receive buffer is required.
- Note:
- The buffer must be at least the requested size, and must be L1 cache aligned.
- Parameters:
-
[in] | anLen | The number of bytes required in the buffer. |
[in] | apUser | A callback-specific parameter supplied when the callback is registered. |
- Returns:
- Pointer to the buffer, or NULL if none could be allocated.