|
AM263Px MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
81 void (*txNotifyCb)(
void *cbArg);
85 void (*rxNotifyCb)(
void *cbArg);
98 uint8_t dstMacAddr[6];
198 #define MAX_BUF_IN_SCATTER_FRAME 32
263 uint32_t vlanId, uint32_t ethType);
368 uint32_t *speed, uint32_t *duplex);
401 void (*rxDefaultDataCb)(
void *data,
int size,
int port,
void *arg),
void *arg);
bool dmaRxOwner
Definition: lldenet.h:161
int LLDEnetSendMulti(LLDEnet_t *hLLDEnet, LLDEnetFrame_t *frames, uint32_t nFrames)
Sends multiple Ethernet frames using LLDEnet.
int LLDEnetFilter(LLDEnet_t *hLLDEnet, uint8_t *dstMacAddr, uint32_t vlanId, uint32_t ethType)
Filter RX packets by using the destination MAC address and VLAN ID.
int LLDEnetSetDefaultRxDataCb(LLDEnet_t *hLLDEnet, void(*rxDefaultDataCb)(void *data, int size, int port, void *arg), void *arg)
Sets the receive data callback function for LLDEnet when filter does not match. This callback is supp...
int tc
Definition: lldenet.h:188
int LLDEnetSetRxNotifyCb(LLDEnet_t *hLLDEnet, void(*rxNotifyCb)(void *arg), void *arg)
Sets the receive notification callback function for LLDEnet.
uint32_t vlanId
Definition: lldenet.h:103
#define MAX_BUF_IN_SCATTER_FRAME
Maximum number of buffers in a scatter frame.
Definition: lldenet.h:198
int port
Definition: lldenet.h:183
uint32_t nTxPkts
Definition: lldenet.h:112
void(* LLDEnetRecvCb_t)(LLDEnetFrame_t *frame, void *cbArg)
Receives callback an Ethernet frame using LLDEnet in the Zero-Copy way.
Definition: lldenet.h:337
uint32_t instId
Definition: lldenet.h:77
bool dmaRxShared
Definition: lldenet.h:152
int LLDEnetRecv(LLDEnet_t *hLLDEnet, LLDEnetFrame_t *frame)
Receives an Ethernet frame using LLDEnet.
bool unusedDmaTx
Definition: lldenet.h:142
uint8_t nBufs
Definition: lldenet.h:215
int LLDEnetSend(LLDEnet_t *hLLDEnet, LLDEnetFrame_t *frame)
Sends an Ethernet frame using LLDEnet.
Data types and macros for TI Enet LLD abstract APIs.
Configuration structure for LLDEnet.
Definition: lldenet.h:69
int LLDEnetSendScatter(LLDEnet_t *hLLDEnet, LLDEnetFrameScatter_t *frame)
Sends an ethernet frame of scatter buffers.
uint8_t * buf
Definition: lldenet.h:175
#define MAX_NUM_RX_DMA_CH_PER_INSTANCE
Definition: lldtype.h:114
Structure representing an Ethernet frame.
Definition: lldenet.h:203
bool LLDEnetIsRxTsInPkt(LLDEnet_t *hLLDEnet)
Checks the receive packet timestamping mode.
uint32_t ethType
Definition: lldenet.h:107
bool LLDEnetIsPortUp(LLDEnet_t *hLLDEnet, uint8_t portNum)
Checks if the specified port is up.
void LLDEnetCfgInit(LLDEnetCfg_t *cfg)
Initializes the LLDEnetCfg_t structure.
int LLDEnetGetLinkInfo(LLDEnet_t *hLLDEnet, uint8_t portNum, uint32_t *speed, uint32_t *duplex)
Retrieves the link speed and duplex information for the specified port.
void * txCbArg
Definition: lldenet.h:89
uint32_t pktSize
Definition: lldenet.h:122
int LLDEnetRecvZeroCopy(LLDEnet_t *hLLDEnet, LLDEnetRecvCb_t LLDEnetRecvCb, void *cbArg)
Receives an Ethernet frame using LLDEnet in the Zero-Copy way.
Structure representing an Ethernet frame.
Definition: lldenet.h:171
bool dmaTxShared
Definition: lldenet.h:147
int dmaTxChId
Definition: lldenet.h:127
void LLDEnetFreeMac(LLDEnet_t *hLLDEnet, uint8_t *srcMacAddr)
Frees a previously allocated MAC address.
int LLDEnetAllocMac(LLDEnet_t *hLLDEnet, uint8_t *srcMacAddr)
Allocates a source MAC address.
uint32_t size
Definition: lldenet.h:179
uint32_t numRxChannels
Definition: lldenet.h:165
uint32_t enetType
Definition: lldenet.h:73
bool unusedDmaRx
Definition: lldenet.h:137
void * rxCbArg
Definition: lldenet.h:93
int8_t port
Definition: lldenet.h:219
int LLDEnetSendMultiScatter(LLDEnet_t *hLLDEnet, LLDEnetFrameScatter_t *frames, uint32_t nFrames)
Sends multiples ethernet frames of scatter buffers.
struct LLDEnet LLDEnet_t
Structure representing the LLDEnet instance.
Definition: lldenet.h:64
void LLDEnetClose(LLDEnet_t *hLLDEnet)
Closes an instance of LLDEnet.
uint64_t rxts
Definition: lldenet.h:192
LLDEnet_t * LLDEnetOpen(LLDEnetCfg_t *cfg)
Opens an instance of LLDEnet.
int LLDEnetSetTxNotifyCb(LLDEnet_t *hLLDEnet, void(*txNotifyCb)(void *arg), void *arg)
Sets the transmit notification callback function for LLDEnet.
uint64_t rxts
Definition: lldenet.h:228
int8_t tc
Definition: lldenet.h:224