Data Structures | |
struct | XMC_ETH_MAC_DMA_DESC_t |
union | XMC_ETH_MAC_PORT_CTRL_t |
struct | XMC_ETH_MAC_t |
struct | XMC_ETH_MAC_TIME_t |
Macros | |
#define | ETH_MAC_DMA_RDES0_AFM (0x40000000U) |
#define | ETH_MAC_DMA_RDES0_CE (0x00000002U) |
#define | ETH_MAC_DMA_RDES0_DBE (0x00000004U) |
#define | ETH_MAC_DMA_RDES0_DE (0x00004000U) |
#define | ETH_MAC_DMA_RDES0_ES (0x00008000U) |
#define | ETH_MAC_DMA_RDES0_ESA (0x00000001U) |
#define | ETH_MAC_DMA_RDES0_FL (0x3FFF0000U) |
#define | ETH_MAC_DMA_RDES0_FS (0x00000200U) |
#define | ETH_MAC_DMA_RDES0_FT (0x00000020U) |
#define | ETH_MAC_DMA_RDES0_LC (0x00000040U) |
#define | ETH_MAC_DMA_RDES0_LE (0x00001000U) |
#define | ETH_MAC_DMA_RDES0_LS (0x00000100U) |
#define | ETH_MAC_DMA_RDES0_OE (0x00000800U) |
#define | ETH_MAC_DMA_RDES0_OWN (0x80000000U) |
#define | ETH_MAC_DMA_RDES0_RE (0x00000008U) |
#define | ETH_MAC_DMA_RDES0_RWT (0x00000010U) |
#define | ETH_MAC_DMA_RDES0_SAF (0x00002000U) |
#define | ETH_MAC_DMA_RDES0_TSA (0x00000080U) |
#define | ETH_MAC_DMA_RDES0_VLAN (0x00000400U) |
#define | ETH_MAC_DMA_TDES0_CC (0x00000078U) |
#define | ETH_MAC_DMA_TDES0_CIC (0x00C00000U) |
#define | ETH_MAC_DMA_TDES0_DB (0x00000001U) |
#define | ETH_MAC_DMA_TDES0_DC (0x08000000U) |
#define | ETH_MAC_DMA_TDES0_DP (0x04000000U) |
#define | ETH_MAC_DMA_TDES0_EC (0x00000100U) |
#define | ETH_MAC_DMA_TDES0_ED (0x00000004U) |
#define | ETH_MAC_DMA_TDES0_ES (0x00008000U) |
#define | ETH_MAC_DMA_TDES0_FF (0x00002000U) |
#define | ETH_MAC_DMA_TDES0_FS (0x10000000U) |
#define | ETH_MAC_DMA_TDES0_IC (0x40000000U) |
#define | ETH_MAC_DMA_TDES0_IHE (0x00010000U) |
#define | ETH_MAC_DMA_TDES0_IPE (0x00001000U) |
#define | ETH_MAC_DMA_TDES0_JT (0x00004000U) |
#define | ETH_MAC_DMA_TDES0_LC (0x00000200U) |
#define | ETH_MAC_DMA_TDES0_LOC (0x00000800U) |
#define | ETH_MAC_DMA_TDES0_LS (0x20000000U) |
#define | ETH_MAC_DMA_TDES0_NC (0x00000400U) |
#define | ETH_MAC_DMA_TDES0_OWN (0x80000000U) |
#define | ETH_MAC_DMA_TDES0_TCH (0x00100000U) |
#define | ETH_MAC_DMA_TDES0_TER (0x00200000U) |
#define | ETH_MAC_DMA_TDES0_TTSE (0x02000000U) |
#define | ETH_MAC_DMA_TDES0_TTSS (0x00020000U) |
#define | ETH_MAC_DMA_TDES0_UF (0x00000002U) |
#define | ETH_MAC_DMA_TDES0_VF (0x00000080U) |
#define | XMC_ETH_MAC_BUF_SIZE (1524) |
#define | XMC_ETH_MAC_PHY_MAX_RETRIES (0xffffUL) |
#define | XMC_ETH_WAKEUP_REGISTER_LENGTH (8U) |
Enumerations | |
enum | XMC_ETH_LINK_DUPLEX_t |
enum | XMC_ETH_LINK_INTERFACE_t |
enum | XMC_ETH_LINK_SPEED_t |
enum | XMC_ETH_LINK_STATUS_t |
enum | XMC_ETH_MAC_ADDR_FILTER_t |
enum | XMC_ETH_MAC_EVENT_t |
enum | XMC_ETH_MAC_PMT_EVENT_t |
enum | XMC_ETH_MAC_STATUS_t |
enum | XMC_ETH_MAC_TIMESTAMP_CONFIG_t |
enum | XMC_ETH_MAC_TIMESTAMP_STATUS_t |
enum | XMC_ETH_MAC_TX_FRAME_t |
The Ethernet MAC (ETH) is a major communication peripheral that supports 10/100 MBit/s data transfer rates in compliance with the IEEE 802.3-2002 standard. The ETH may be used to implement internet connected applications using IPv4 and IPv6. The ETH also includes support for IEEE1588 time synchronisation to allow implementation of Real Time Ethernet protocols.
The XMC_ETH_MAC low level driver provides functions to configure and initialize the ETH_MAC hardware peripheral.
#define ETH_MAC_DMA_RDES0_AFM (0x40000000U) |
Destination address filter fail
#define ETH_MAC_DMA_RDES0_CE (0x00000002U) |
CRC error
#define ETH_MAC_DMA_RDES0_DBE (0x00000004U) |
Dribble bit error
#define ETH_MAC_DMA_RDES0_DE (0x00004000U) |
Descriptor error
#define ETH_MAC_DMA_RDES0_ES (0x00008000U) |
Error summary
#define ETH_MAC_DMA_RDES0_ESA (0x00000001U) |
Extended Status/Rx MAC address
#define ETH_MAC_DMA_RDES0_FL (0x3FFF0000U) |
Frame length mask
#define ETH_MAC_DMA_RDES0_FS (0x00000200U) |
First descriptor
#define ETH_MAC_DMA_RDES0_FT (0x00000020U) |
Frame type
#define ETH_MAC_DMA_RDES0_LC (0x00000040U) |
Late collision
#define ETH_MAC_DMA_RDES0_LE (0x00001000U) |
Length error
#define ETH_MAC_DMA_RDES0_LS (0x00000100U) |
Last descriptor
#define ETH_MAC_DMA_RDES0_OE (0x00000800U) |
Overflow error
#define ETH_MAC_DMA_RDES0_OWN (0x80000000U) |
RDES0 Descriptor RX Packet StatusOwn bit 1=DMA, 0=CPU
#define ETH_MAC_DMA_RDES0_RE (0x00000008U) |
Receive error
#define ETH_MAC_DMA_RDES0_RWT (0x00000010U) |
Receive watchdog timeout
#define ETH_MAC_DMA_RDES0_SAF (0x00002000U) |
Source address filter fail
#define ETH_MAC_DMA_RDES0_TSA (0x00000080U) |
Timestamp available
#define ETH_MAC_DMA_RDES0_VLAN (0x00000400U) |
VLAN tag
#define ETH_MAC_DMA_TDES0_CC (0x00000078U) |
Collision count
#define ETH_MAC_DMA_TDES0_CIC (0x00C00000U) |
Checksum insertion control
#define ETH_MAC_DMA_TDES0_DB (0x00000001U) |
Deferred bit
#define ETH_MAC_DMA_TDES0_DC (0x08000000U) |
Disable CRC
#define ETH_MAC_DMA_TDES0_DP (0x04000000U) |
Disable pad
#define ETH_MAC_DMA_TDES0_EC (0x00000100U) |
Excessive collision
#define ETH_MAC_DMA_TDES0_ED (0x00000004U) |
Excessive deferral
#define ETH_MAC_DMA_TDES0_ES (0x00008000U) |
Error summary
#define ETH_MAC_DMA_TDES0_FF (0x00002000U) |
Frame flushed
#define ETH_MAC_DMA_TDES0_FS (0x10000000U) |
First segment
#define ETH_MAC_DMA_TDES0_IC (0x40000000U) |
Interrupt on competition
#define ETH_MAC_DMA_TDES0_IHE (0x00010000U) |
IP header error
#define ETH_MAC_DMA_TDES0_IPE (0x00001000U) |
IP payload error
#define ETH_MAC_DMA_TDES0_JT (0x00004000U) |
Jabber timeout
#define ETH_MAC_DMA_TDES0_LC (0x00000200U) |
Late collision
#define ETH_MAC_DMA_TDES0_LOC (0x00000800U) |
Loss of carrier
#define ETH_MAC_DMA_TDES0_LS (0x20000000U) |
Last segment
#define ETH_MAC_DMA_TDES0_NC (0x00000400U) |
No carrier
#define ETH_MAC_DMA_TDES0_OWN (0x80000000U) |
TDES0 Descriptor TX Packet Control/StatusOwn bit 1=DMA, 0=CPU
#define ETH_MAC_DMA_TDES0_TCH (0x00100000U) |
Second address chained
#define ETH_MAC_DMA_TDES0_TER (0x00200000U) |
Transmit end of ring
#define ETH_MAC_DMA_TDES0_TTSE (0x02000000U) |
Transmit time stamp enable
#define ETH_MAC_DMA_TDES0_TTSS (0x00020000U) |
Transmit time stamp status
#define ETH_MAC_DMA_TDES0_UF (0x00000002U) |
Underflow error
#define ETH_MAC_DMA_TDES0_VF (0x00000080U) |
VLAN frame
#define XMC_ETH_MAC_BUF_SIZE (1524) |
ETH MAC buffer size
#define XMC_ETH_MAC_PHY_MAX_RETRIES (0xffffUL) |
Maximum retries
#define XMC_ETH_WAKEUP_REGISTER_LENGTH (8U) |
Remote wakeup frame reg length
enum XMC_ETH_LINK_SPEED_t |
MAC address filter
enum XMC_ETH_MAC_EVENT_t |
ETH MAC event
enum XMC_ETH_MAC_STATUS_t |
ETH MAC time-stamp configuration enable
ETH MAC time-stamp status
void XMC_ETH_MAC_AdjustPTPClock | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint32_t | correction | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
correction | Correction factor |
void XMC_ETH_MAC_ClearEventStatus | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint32_t | event | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
event | The status of which event (or a combination of logically OR'd events) needs to be cleared |
void XMC_ETH_MAC_Disable | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisableDestinationAddressInverseFilter | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisableEvent | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint32_t | event | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
event | Which event (or a combination of logically OR'd events) needs to be disabled? |
void XMC_ETH_MAC_DisableFrameBurst | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisableFrameFilter | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisableJumboFrame | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisableLoopback | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisableMulticastHashFilter | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisablePowerDownMode | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisablePowerManagmentEvent | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint32_t | event | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
event | A valid ETH PMT event (XMC_ETH_MAC_PMT_EVENT_t) or a valid combination of logically OR'd events |
void XMC_ETH_MAC_DisablePromiscuousMode | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisablePTPAlarm | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisableReceptionBroadcastFrames | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisableReceptionMulticastFrames | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisableRx | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisableRxOwn | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisableRxWatchdog | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisableSourceAddressFilter | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisableSourceAddressInverseFilter | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisableTx | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisableTxJabber | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_DisableUnicastHashFilter | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_Enable | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableDestinationAddressInverseFilter | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableEvent | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint32_t | event | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
event | Which event (or a combination of logically OR'd events) needs to be enabled? |
void XMC_ETH_MAC_EnableFrameBurst | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableFrameFilter | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableHashPerfectFilter | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableJumboFrame | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableLoopback | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableMulticastHashFilter | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnablePerfectFilter | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnablePowerDownMode | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnablePowerManagmentEvent | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint32_t | event | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
event | A valid ETH PMT event (XMC_ETH_MAC_PMT_EVENT_t) or a valid combination of logically OR'd events |
void XMC_ETH_MAC_EnablePromiscuousMode | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnablePTPAlarm | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableReceptionBroadcastFrames | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableReceptionMulticastFrames | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableRx | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableRxOwn | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableRxWatchdog | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableSourceAddressFilter | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableSourceAddressInverseFilter | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableTx | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableTxJabber | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_EnableUnicastHashFilter | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_FlushRx | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_FlushTx | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
uint64_t XMC_ETH_MAC_GetAddress | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_GetAddressEx | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint8_t *const | addr | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
uint8_t XMC_ETH_MAC_GetCurrentRxDescIndex | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
uint8_t XMC_ETH_MAC_GetCurrentTxDescIndex | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
uint32_t XMC_ETH_MAC_GetEventStatus | ( | const XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
uint32_t XMC_ETH_MAC_GetPTPStatus | ( | const XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_GetPTPTime | ( | XMC_ETH_MAC_t *const | eth_mac, |
XMC_ETH_MAC_TIME_t *const | time | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
time | A constant pointer to XMC_ETH_MAC_TIME_t, pointing to the PTP time |
uint8_t* XMC_ETH_MAC_GetRxBuffer | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
uint32_t XMC_ETH_MAC_GetRxFrameSize | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
XMC_ETH_MAC_STATUS_t XMC_ETH_MAC_GetRxTimeStamp | ( | XMC_ETH_MAC_t *const | eth_mac, |
XMC_ETH_MAC_TIME_t *const | time | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
time | A constant pointer to XMC_ETH_MAC_TIME_t, pointing to the RX timestamp |
uint8_t* XMC_ETH_MAC_GetTxBuffer | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
uint8_t* XMC_ETH_MAC_GetTxBufferEx | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint8_t | index | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
XMC_ETH_MAC_STATUS_t XMC_ETH_MAC_GetTxTimeStamp | ( | XMC_ETH_MAC_t *const | eth_mac, |
XMC_ETH_MAC_TIME_t *const | time | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
time | A constant pointer to XMC_ETH_MAC_TIME_t, pointing to the TX timestamp |
XMC_ETH_MAC_STATUS_t XMC_ETH_MAC_Init | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_InitEx | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_InitPTP | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint32_t | config | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
config | The configuration the PTP should be configured with |
void XMC_ETH_MAC_InitPTPEx | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint32_t | config, | ||
XMC_ETH_MAC_TIME_t *const | time | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
config | Configuration of PTP module. See XMC_ETH_MAC_TIMESTAMP_CONFIG_t |
time | Initialization time |
void XMC_ETH_MAC_InitRxDescriptors | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_InitTxDescriptors | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
bool XMC_ETH_MAC_IsMagicPacketReceived | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
bool XMC_ETH_MAC_IsRxDescriptorOwnedByDma | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
< Own bit 1=DMA, 0=CPU
bool XMC_ETH_MAC_IsTxDescriptorOwnedByDma | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
< Own bit 1=DMA, 0=CPU
bool XMC_ETH_MAC_IsTxDescriptorOwnedByDmaEx | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint8_t | index | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
< Own bit 1=DMA, 0=CPU
bool XMC_ETH_MAC_IsWakeupFrameReceived | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
uint32_t XMC_ETH_MAC_ReadFrame | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint8_t *const | frame, | ||
uint32_t | len | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
frame | A constant pointer to a uint8_t constant, holding the received frame |
len | Frame length? |
XMC_ETH_MAC_STATUS_t XMC_ETH_MAC_ReadPhy | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint8_t | phy_addr, | ||
uint8_t | reg_addr, | ||
uint16_t * | data | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
phy_addr | PHY address |
reg_addr | Register address |
data | The destination to which the read data needs to be copied to |
void XMC_ETH_MAC_Reset | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_ResumeRx | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_ResumeTx | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_ReturnRxDescriptor | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_ReturnTxDescriptor | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
XMC_ETH_MAC_STATUS_t XMC_ETH_MAC_SendFrame | ( | XMC_ETH_MAC_t *const | eth_mac, |
const uint8_t * | frame, | ||
uint32_t | len, | ||
uint32_t | flags | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
frame | A pointer to a uint8_t constant, holding the frame to be transmitted |
len | Length of the frame to transmit |
flags | Additional flags: ored combination of XMC_ETH_MAC_TX_FRAME_t or zero. |
void XMC_ETH_MAC_SetAddress | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint64_t | addr | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
addr | The MAC address to set |
void XMC_ETH_MAC_SetAddressEx | ( | XMC_ETH_MAC_t *const | eth_mac, |
const uint8_t *const | addr | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
addr | Pointer to 6 byte MAC address |
void XMC_ETH_MAC_SetAddressHashFilter | ( | XMC_ETH_MAC_t *const | eth_mac, |
const uint64_t | hash | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
hash | The hash to be used for filtering |
void XMC_ETH_MAC_SetAddressPerfectFilter | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint8_t | index, | ||
const uint64_t | addr, | ||
uint32_t | flags | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
index | Table entry index |
addr | Address value |
flags | Compare control. OR'ed combination of XMC_ETH_MAC_ADDR_FILTER_t or zero. |
void XMC_ETH_MAC_SetAddressPerfectFilterEx | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint8_t | index, | ||
uint8_t *const | addr, | ||
uint32_t | flags | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
index | Table entry index |
addr | Pointer to 6 byte MAC address |
flags | Compare control. OR'ed combination of XMC_ETH_MAC_ADDR_FILTER_t or zero. |
void XMC_ETH_MAC_SetLink | ( | XMC_ETH_MAC_t *const | eth_mac, |
XMC_ETH_LINK_SPEED_t | speed, | ||
XMC_ETH_LINK_DUPLEX_t | duplex | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
speed | The speed at which the link is set (10M or 100M?) |
duplex | Duplex settings (half or full duplex?) |
XMC_ETH_MAC_STATUS_t XMC_ETH_MAC_SetManagmentClockDivider | ( | XMC_ETH_MAC_t *const | eth_mac | ) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
void XMC_ETH_MAC_SetPortControl | ( | XMC_ETH_MAC_t *const | eth_mac, |
const XMC_ETH_MAC_PORT_CTRL_t | port_ctrl | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
port_ctrl | Port control configuration |
void XMC_ETH_MAC_SetPTPAlarm | ( | XMC_ETH_MAC_t *const | eth_mac, |
const XMC_ETH_MAC_TIME_t *const | time | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
time | A constant pointer to XMC_ETH_MAC_TIME_t, pointing to the PTP time |
void XMC_ETH_MAC_SetPTPTime | ( | XMC_ETH_MAC_t *const | eth_mac, |
XMC_ETH_MAC_TIME_t *const | time | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
time | A constant pointer to XMC_ETH_MAC_TIME_t, pointing to the PTP time |
void XMC_ETH_MAC_SetRxBuffer | ( | XMC_ETH_MAC_t *const | eth_mac, |
const uint8_t *const | address | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
addresss | Buffer address |
void XMC_ETH_MAC_SetRxBufferEx | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint8_t | index, | ||
const uint8_t *const | address | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
addresss | Buffer address |
void XMC_ETH_MAC_SetTxBuffer | ( | XMC_ETH_MAC_t *const | eth_mac, |
const uint8_t *const | address | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
addresss | Buffer address |
void XMC_ETH_MAC_SetTxBufferEx | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint8_t | index, | ||
const uint8_t *const | address | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
addresss | Buffer address |
void XMC_ETH_MAC_SetTxBufferSize | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint32_t | size | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
size | Size of buffer |
void XMC_ETH_MAC_SetTxBufferSizeEx | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint8_t | index, | ||
uint32_t | size | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
size | Size of buffer |
void XMC_ETH_MAC_SetVLANTag | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint32_t | tag | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
tag | The (16 bit) VLAN tag to set |
void XMC_ETH_MAC_SetWakeUpFrameFilter | ( | XMC_ETH_MAC_t *const | eth_mac, |
const uint32_t(*) | filter[(8U)] | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
filter | wake-up filter registers |
void XMC_ETH_MAC_UpdateAddend | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint32_t | addend | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
addend | Addend value |
void XMC_ETH_MAC_UpdatePTPTime | ( | XMC_ETH_MAC_t *const | eth_mac, |
const XMC_ETH_MAC_TIME_t *const | time | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
time | A constant pointer to XMC_ETH_MAC_TIME_t, pointing to the PTP time |
XMC_ETH_MAC_STATUS_t XMC_ETH_MAC_WritePhy | ( | XMC_ETH_MAC_t *const | eth_mac, |
uint8_t | phy_addr, | ||
uint8_t | reg_addr, | ||
uint16_t | data | ||
) |
eth_mac | A constant pointer to XMC_ETH_MAC_t, pointing to the ETH MAC base address |
phy_addr | PHY address |
reg_addr | Register address |
data | The data to write |