|
AM243x MCU+ SDK
09.01.00
|
|
Go to the documentation of this file.
66 #define MAX_NUM_RX_DMA_CH_PER_INSTANCE 2
83 void (*txNotifyCb)(
void *cbArg);
87 void (*rxNotifyCb)(
void *cbArg);
100 uint8_t dstMacAddr[6];
221 uint32_t vlanId, uint32_t ethType);
290 uint32_t *speed, uint32_t *duplex);
323 void (*rxDefaultDataCb)(
void *
data,
int size,
int port,
void *arg),
void *arg);
bool dmaRxOwner
Definition: lldenet.h:159
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:186
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:105
int port
Definition: lldenet.h:181
uint32_t nTxPkts
Definition: lldenet.h:114
uint32_t instId
Definition: lldenet.h:79
bool dmaRxShared
Definition: lldenet.h:149
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:144
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:71
uint8_t * buf
Definition: lldenet.h:173
#define MAX_NUM_RX_DMA_CH_PER_INSTANCE
Definition: lldenet.h:66
bool LLDEnetIsRxTsInPkt(LLDEnet_t *hLLDEnet)
Checks the receive packet timestamping mode.
uint32_t ethType
Definition: lldenet.h:109
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:91
uint32_t pktSize
Definition: lldenet.h:124
Structure representing an Ethernet frame.
Definition: lldenet.h:169
int dmaTxChId
Definition: lldenet.h:129
int LLDEnetIETSetConfig(LLDEnet_t *hLLDEnet, uint8_t macPort, void *reqPrm, void *resPrm)
Set frame preemption parameters for the port indicated by macPort.
int LLDEnetTasSetConfig(LLDEnet_t *hLLDEnet, uint8_t macPort, void *arg)
Set parameters for schedule traffic.
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:177
uint32_t numRxChannels
Definition: lldenet.h:163
uint32_t enetType
Definition: lldenet.h:75
bool unusedDmaRx
Definition: lldenet.h:139
void * rxCbArg
Definition: lldenet.h:95
struct LLDEnet LLDEnet_t
Structure representing the LLDEnet instance.
Definition: lldenet.h:64
void LLDEnetClose(LLDEnet_t *hLLDEnet)
Closes an instance of LLDEnet.
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.