|
AM64x MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
81 void (*txNotifyCb)(
void *cbArg);
85 void (*rxNotifyCb)(
void *cbArg);
98 uint8_t dstMacAddr[6];
223 uint32_t vlanId, uint32_t ethType);
282 void (*LLDEnetRecvCb)(
LLDEnetFrame_t *frame,
void *cbArg),
void *cbArg);
303 uint32_t *speed, uint32_t *duplex);
336 void (*rxDefaultDataCb)(
void *
data,
int size,
int port,
void *arg),
void *arg);
bool dmaRxOwner
Definition: lldenet.h:157
int LLDEnetSendMulti(LLDEnet_t *hLLDEnet, LLDEnetFrame_t *frames, uint32_t nFrames)
Sends multiple Ethernet frames using LLDEnet.
uint16_t size
Definition: tisci_boardcfg.h:1
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:184
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
int port
Definition: lldenet.h:179
uint32_t nTxPkts
Definition: lldenet.h:112
uint32_t instId
Definition: lldenet.h:77
bool dmaRxShared
Definition: lldenet.h:147
int LLDEnetRecv(LLDEnet_t *hLLDEnet, LLDEnetFrame_t *frame)
Receives an Ethernet frame using LLDEnet.
uint32_t data
Definition: tisci_rm_psil.h:1
bool unusedDmaTx
Definition: lldenet.h:142
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
uint8_t * buf
Definition: lldenet.h:171
#define MAX_NUM_RX_DMA_CH_PER_INSTANCE
Definition: lldtype.h:114
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
Structure representing an Ethernet frame.
Definition: lldenet.h:167
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:175
uint32_t numRxChannels
Definition: lldenet.h:161
uint32_t enetType
Definition: lldenet.h:73
int LLDEnetRecvZeroCopy(LLDEnet_t *hLLDEnet, void(*LLDEnetRecvCb)(LLDEnetFrame_t *frame, void *cbArg), void *cbArg)
Receives an Ethernet frame using LLDEnet in the Zero-Copy way.
bool unusedDmaRx
Definition: lldenet.h:137
void * rxCbArg
Definition: lldenet.h:93
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:188
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.