AM243x MCU+ SDK  09.00.00
lldenet.h File Reference

Introduction

TI Ethernet Low Level Driver abstract APIs.

Go to the source code of this file.

Data Structures

struct  LLDEnetCfg_t
 Configuration structure for LLDEnet. More...
 
struct  LLDEnetFrame_t
 Structure representing an Ethernet frame. More...
 

Typedefs

typedef struct LLDEnet LLDEnet_t
 Structure representing the LLDEnet instance. More...
 

Functions

void LLDEnetCfgInit (LLDEnetCfg_t *cfg)
 Initializes the LLDEnetCfg_t structure. More...
 
LLDEnet_tLLDEnetOpen (LLDEnetCfg_t *cfg)
 Opens an instance of LLDEnet. More...
 
void LLDEnetClose (LLDEnet_t *hLLDEnet)
 Closes an instance of LLDEnet. More...
 
int LLDEnetFilter (LLDEnet_t *hLLDEnet, uint8_t *dstMacAddr, uint32_t vlanId)
 Filter RX packets by using the destination MAC address and VLAN ID. More...
 
int LLDEnetAllocMac (LLDEnet_t *hLLDEnet, uint8_t *srcMacAddr)
 Allocates a source MAC address. More...
 
void LLDEnetFreeMac (LLDEnet_t *hLLDEnet, uint8_t *srcMacAddr)
 Frees a previously allocated MAC address. More...
 
int LLDEnetSend (LLDEnet_t *hLLDEnet, LLDEnetFrame_t *frame)
 Sends an Ethernet frame using LLDEnet. More...
 
int LLDEnetSendMulti (LLDEnet_t *hLLDEnet, LLDEnetFrame_t *frames, uint32_t nFrames)
 Sends multiple Ethernet frames using LLDEnet. More...
 
int LLDEnetRecv (LLDEnet_t *hLLDEnet, LLDEnetFrame_t *frame)
 Receives an Ethernet frame using LLDEnet. More...
 
bool LLDEnetIsPortUp (LLDEnet_t *hLLDEnet, uint8_t portNum)
 Checks if the specified port is up. More...
 
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. More...
 
int LLDEnetSetTxNotifyCb (LLDEnet_t *hLLDEnet, void(*txNotifyCb)(void *arg), void *arg)
 Sets the transmit notification callback function for LLDEnet. More...
 
int LLDEnetSetRxNotifyCb (LLDEnet_t *hLLDEnet, void(*rxNotifyCb)(void *arg), void *arg)
 Sets the receive notification callback function for LLDEnet. More...
 
int LLDEnetTasSetConfig (LLDEnet_t *hLLDEnet, uint8_t macPort, void *arg)
 Set parameters for schedule traffic. More...
 
int LLDEnetIETSetConfig (LLDEnet_t *hLLDEnet, uint8_t macPort, void *reqPrm, void *resPrm)
 Set frame preemption parameters for the port indicated by macPort. More...