CMSIS-Driver Validation  
Driver Validation

Functions

void ETH_MAC_GetVersion (void)
 Function: Function ETH_MAC_GetVersion. More...
 
void ETH_MAC_GetCapabilities (void)
 Function: ETH_MAC_GetCapabilities. More...
 
void ETH_MAC_Initialization (void)
 Function: ETH_MAC_Initialization. More...
 
void ETH_MAC_CheckInvalidInit (void)
 Function: ETH_MAC_CheckInvalidInit. More...
 
void ETH_MAC_PowerControl (void)
 Function: ETH_MAC_PowerControl. More...
 
void ETH_MAC_MacAddress (void)
 Function: ETH_MAC_MacAddress. More...
 
void ETH_MAC_SetBusSpeed (void)
 Function: ETH_MAC_SetBusSpeed. More...
 
void ETH_MAC_Config_Mode (void)
 Function: ETH_MAC_Config_Mode. More...
 
void ETH_MAC_Config_CommonParams (void)
 Function: ETH_MAC_Config_CommonParams. More...
 
void ETH_MAC_Control_Filtering (void)
 Function: ETH_MAC_Control_Filtering. More...
 
void ETH_MAC_SetAddressFilter (void)
 Function: ETH_MAC_SetAddressFilter. More...
 
void ETH_MAC_SignalEvent (void)
 Function: ETH_MAC_SignalEvent. More...
 
void ETH_PHY_GetVersion (void)
 Function: Function ETH_PHY_GetVersion. More...
 
void ETH_PHY_Initialization (void)
 Function: ETH_PHY_Initialization. More...
 
void ETH_PHY_CheckInvalidInit (void)
 Function: ETH_PHY_CheckInvalidInit. More...
 
void ETH_PHY_PowerControl (void)
 Function: ETH_PHY_PowerControl. More...
 
void ETH_PHY_Config (void)
 Function: ETH_PHY_Config. More...
 
void ETH_Loopback_Transfer (void)
 Function: ETH_Loopback_Transfer. More...
 
void ETH_Loopback_External (void)
 Function: ETH_Loopback_External. More...
 
void ETH_MAC_PTP_ControlTimer (void)
 Function: ETH_MAC_PTP_ControlTimer. More...
 
void ETH_Loopback_PTP (void)
 Function: ETH_Loopback_PTP. More...
 

Description

Function Documentation

◆ ETH_MAC_GetVersion()

void ETH_MAC_GetVersion ( void  )

The function ETH_MAC_GetVersion verifies the Ethernet MAC GetVersion function.

◆ ETH_MAC_GetCapabilities()

void ETH_MAC_GetCapabilities ( void  )

The function ETH_MAC_GetCapabilities verifies the Ethernet MAC GetCapabilities function.

◆ ETH_MAC_Initialization()

void ETH_MAC_Initialization ( void  )

The function ETH_MAC_Initialization verifies the Ethernet MAC functions in the following order:

  • Initialize without callback
  • Uninitialize
  • Initialize with callback if supported
  • Uninitialize

◆ ETH_MAC_CheckInvalidInit()

void ETH_MAC_CheckInvalidInit ( void  )

The function ETH_MAC_CheckInvalidInit verifies the driver behavior when receiving an invalid initialization sequence:

  • Uninitialize
  • PowerControl with Power off
  • PowerControl with Power on
  • Control
  • PowerControl with Power off
  • Uninitialize

◆ ETH_MAC_PowerControl()

void ETH_MAC_PowerControl ( void  )

The function ETH_MAC_PowerControl verifies the Ethernet MAC PowerControl function with the sequence:

  • Initialize
  • Power on
  • Power low
  • Power off
  • Uninitialize

◆ ETH_MAC_MacAddress()

void ETH_MAC_MacAddress ( void  )

The function ETH_MAC_MacAddress verifies the Ethernet MAC GetMacAddress and SetMacAddress functions with the sequence:

  • Initialize
  • Power on
  • Set Ethernet MAC Address
  • Get Ethernet MAC Address
  • Power off
  • Uninitialize

◆ ETH_MAC_SetBusSpeed()

void ETH_MAC_SetBusSpeed ( void  )

The function ETH_MAC_SetBusSpeed verifies the Ethernet MAC Control function with the sequence:

  • Initialize
  • Power on
  • Set bus speed 10M
  • Set bus speed 100M
  • Set bus speed 1G
  • Power off
  • Uninitialize

◆ ETH_MAC_Config_Mode()

void ETH_MAC_Config_Mode ( void  )

The function ETH_MAC_Config_Mode verifies the Ethernet MAC Control function with the sequence:

  • Initialize
  • Power on
  • Set full duplex
  • Set half duplex
  • Power off
  • Uninitialize

◆ ETH_MAC_Config_CommonParams()

void ETH_MAC_Config_CommonParams ( void  )

The function ETH_MAC_Config_CommonParams verifies the Ethernet MAC Control function with the sequence:

  • Initialize
  • Power on
  • Configure Ethernet MAC bus
  • Configure receiver
  • Configure transmitter
  • Power off
  • Uninitialize

◆ ETH_MAC_Control_Filtering()

void ETH_MAC_Control_Filtering ( void  )

The function ETH_MAC_Control_Filtering verifies the Ethernet MAC Control function with the following sequence:

  • Buffer allocation
  • Initialize
  • Power on
  • Broadcast receive
  • Receive with broadcast disabled
  • Multicast receive
  • Receive with multicast disabled
  • Unicast receive
  • Promiscuous mode receive
  • Power off
  • Uninitialize
Note
The internal Ethernet MAC loopback is used for the test.

◆ ETH_MAC_SetAddressFilter()

void ETH_MAC_SetAddressFilter ( void  )

The function ETH_MAC_SetAddressFilter verifies the Ethernet MAC SetAddressFilter function with the following sequence:

  • Buffer allocation
  • Initialize
  • Power on
  • Receive one multicast address
  • Receive two multicast addresses
  • Receive three multicast addresses
  • Receive four multicast addresses
  • Receive six multicast addresses
  • Power off
  • Uninitialize
Note
The internal Ethernet MAC loopback is used for the test.

◆ ETH_MAC_SignalEvent()

void ETH_MAC_SignalEvent ( void  )

The function ETH_MAC_SignalEvent verifies the Ethernet MAC interrupt operation with the sequence:

  • Initialize
  • Power on
  • Configure receiver
  • Configure transmitter
  • Set output buffer pattern
  • Send data and check receive interrupts
  • Power off
  • Uninitialize
Note
The internal Ethernet MAC loopback is used for the test.

◆ ETH_PHY_GetVersion()

void ETH_PHY_GetVersion ( void  )

The function ETH_PHY_GetVersion verifies the Ethernet PHY GetVersion function.

◆ ETH_PHY_Initialization()

void ETH_PHY_Initialization ( void  )

The function ETH_PHY_Initialization verifies the Ethernet PHY functions in the following order:

  • Initialize with read and write functions

◆ ETH_PHY_CheckInvalidInit()

void ETH_PHY_CheckInvalidInit ( void  )

The function ETH_PHY_CheckInvalidInit verifies the driver behavior when receiving an invalid initialization sequence:

  • Uninitialize
  • PowerControl with Power off
  • PowerControl with Power on
  • SetInterface to configure the Ethernet PHY bus
  • SetMode to configure the Ethernet PHY bus
  • PowerControl with Power off
  • Uninitialize

◆ ETH_PHY_PowerControl()

void ETH_PHY_PowerControl ( void  )

The function ETH_PHY_PowerControl verifies the Ethernet PHY PowerControl function with the sequence:

  • Initialize
  • Power on
  • Power low
  • Power off
  • Check RMII lockup
  • Uninitialize
Note
When the Ethernet PHY is the 50 MHz clock source for the MAC in RMII mode, the MAC may lock up if the PHY power is off and therefore not generating a reference clock.

◆ ETH_PHY_Config()

void ETH_PHY_Config ( void  )

The function ETH_PHY_Config verifies the PHY functions

  • Initialize
  • Power on
  • SetInterface
  • SetMode
  • Power off
  • Uninitialize

◆ ETH_Loopback_Transfer()

void ETH_Loopback_Transfer ( void  )

The function ETH_Loopback_Transfer verifies data transfer via Ethernet with the following sequence:

  • Buffer allocation
  • Initialize
  • Power on
  • Set output buffer pattern
  • Transfer data chunks
  • Set output buffer with random data
  • Transfer data chunks
  • Transfer data by sending in two fragments
  • Power off
  • Uninitialize
Note
The internal Ethernet MAC loopback is used as a data loopback, so there is no need to use an external loopback cable.

◆ ETH_Loopback_External()

void ETH_Loopback_External ( void  )

The function ETH_Loopback_External verifies data transfer via Ethernet with the following sequence:

  • Buffer allocation
  • Initialize
  • Power on
  • Set output buffer pattern
  • Transfer data on PHY internal loopback
  • Ethernet connection
  • Transfer data on external cable loopback
  • Power off
  • Uninitialize
Note
An external loopback cable is required for this test.

◆ ETH_MAC_PTP_ControlTimer()

void ETH_MAC_PTP_ControlTimer ( void  )

The function ETH_MAC_PTP_ControlTimer verifies the PTP ControlTimer function with the sequence:

  • Initialize
  • Power on
  • Set Time
  • Adjust Clock
  • Increment Time
  • Decrement Time
  • Set Alarm
  • Power off
  • Uninitialize

◆ ETH_Loopback_PTP()

void ETH_Loopback_PTP ( void  )

The function ETH_Loopback_PTP verifies the Precision Time Protocol functions ControlTimer, GetRxFrameTime and GetTxFrameTime with the sequence:

  • Initialize
  • Power on
  • Set Control Timer
  • Transfer a frame
  • Get TX frame time
  • Get RX frame time
  • Power off
  • Uninitialize
Note
The internal Ethernet MAC loopback is used as the data loopback.