Network Component  Version 7.9.0
MDK Middleware for IPv4 and IPv6 Networking
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NetETH: ETH Interface

Events generated by the Network - Ethernet Interface functions. More...

Functions

__STATIC_INLINE void EvrNetETH_InitInterface (void)
 Event on Ethernet interface initialize (Op) More...
 
__STATIC_INLINE void EvrNetETH_MacAddressConfigError (void)
 Event on Ethernet MAC address configuration error (Error) More...
 
__STATIC_INLINE void EvrNetETH_PhyDriverConfigError (void)
 Event on Ethernet PHY configuration error (Error) More...
 
__STATIC_INLINE void EvrNetETH_PhyDriverInitError (void)
 Event on Ethernet PHY initialization error (Error) More...
 
__STATIC_INLINE void EvrNetETH_Ip4ConfigError (void)
 Event on Ethernet IPv4 configuration error (Error) More...
 
__STATIC_INLINE void EvrNetETH_Ip6ConfigError (void)
 Event on Ethernet IPv6 configuration error (Error) More...
 
__STATIC_INLINE void EvrNetETH_ThreadCreateFailed (void)
 Event on Ethernet thread create failed (Error) More...
 
__STATIC_INLINE void EvrNetETH_GetOptionInvalidParameter (void)
 Event on Ethernet get-option invalid parameter (Error) More...
 
__STATIC_INLINE void EvrNetETH_SetOptionInvalidParameter (void)
 Event on Ethernet set-option invalid parameter (Error) More...
 
__STATIC_INLINE void EvrNetETH_SetMacAddress (const uint8_t *mac_addr)
 Event on Ethernet set interface MAC address (Op) More...
 
__STATIC_INLINE void EvrNetETH_SetIp4Address (const uint8_t *ip4_addr)
 Event on Ethernet set interface IPv4 address (Op) More...
 
__STATIC_INLINE void EvrNetETH_SetIp4SubnetMask (const uint8_t *net_mask)
 Event on Ethernet set interface IPv4 subnet mask (Op) More...
 
__STATIC_INLINE void EvrNetETH_SetIp4DefaultGateway (const uint8_t *ip4_addr)
 Event on Ethernet set interface IPv4 default gateway (Op) More...
 
__STATIC_INLINE void EvrNetETH_SetIp4PrimaryDNS (const uint8_t *ip4_addr)
 Event on Ethernet set interface primary DNS server (Op) More...
 
__STATIC_INLINE void EvrNetETH_SetIp4SecondaryDNS (const uint8_t *ip4_addr)
 Event on Ethernet set interface secondary DNS server (Op) More...
 
__STATIC_INLINE void EvrNetETH_SetIp4Mtu (uint16_t mtu)
 Event on Ethernet set interface MTU (Op) More...
 
__STATIC_INLINE void EvrNetETH_SetIp6Address (const uint8_t *ip6_addr)
 Event on Ethernet set interface IPv6 static address (Op) More...
 
__STATIC_INLINE void EvrNetETH_SetIp6DefaultGateway (const uint8_t *ip6_addr)
 Event on Ethernet set interface IPv6 default gateway (Op) More...
 
__STATIC_INLINE void EvrNetETH_SetIp6PrimaryDNS (const uint8_t *ip6_addr)
 Event on Ethernet set interface primary DNS server (Op) More...
 
__STATIC_INLINE void EvrNetETH_SetIp6SecondaryDNS (const uint8_t *ip6_addr)
 Event on Ethernet set interface secondary DNS server (Op) More...
 
__STATIC_INLINE void EvrNetETH_SetIp6PrefixLength (uint8_t pref_len)
 Event on Ethernet set interface IPv6 subnet prefix length (Op) More...
 
__STATIC_INLINE void EvrNetETH_SendFrame (uint32_t length, uint8_t ip_version)
 Event on Ethernet send frame (Op) More...
 
__STATIC_INLINE void EvrNetETH_LinkDownError (void)
 Event on Ethernet link down error (Error) More...
 
__STATIC_INLINE void EvrNetETH_SendDataTooLarge (uint32_t length, uint32_t max_length)
 Event on Ethernet send payload too large error (Error) More...
 
__STATIC_INLINE void EvrNetETH_Ip4LocalAddressUndefined (void)
 Event on Ethernet local IPv4 address undefined (Error) More...
 
__STATIC_INLINE void EvrNetETH_Ip4MacAddressUnresolved (const uint8_t *ip4_addr)
 Event on Ethernet MAC address unresolved (Error) More...
 
__STATIC_INLINE void EvrNetETH_Ip6LocalAddressUndefined (void)
 Event on Ethernet local IPv6 address undefined (Error) More...
 
__STATIC_INLINE void EvrNetETH_Ip6MacAddressUnresolved (const uint8_t *ip6_addr)
 Event on Ethernet MAC address unresolved (Error) More...
 
__STATIC_INLINE void EvrNetETH_InvalidIpVersion (uint8_t ip_version)
 Event on Ethernet invalid IP version (Error) More...
 
__STATIC_INLINE void EvrNetETH_ShowFrameHeader (const void *eth_header)
 Event on Ethernet display send/receive frame header (Detail) More...
 
__STATIC_INLINE void EvrNetETH_LinkDownStatus (void)
 Event on Ethernet link down status (Op) More...
 
__STATIC_INLINE void EvrNetETH_LinkUpStatus (int32_t speed, int32_t duplex)
 Event on Ethernet link up status (Op) More...
 
__STATIC_INLINE void EvrNetETH_ReceiveFrame (uint32_t length)
 Event on Ethernet receive frame (Op) More...
 
__STATIC_INLINE void EvrNetETH_Ip4Disabled (void)
 Event on Ethernet receive IPv4 disabled (Op) More...
 
__STATIC_INLINE void EvrNetETH_Ip6Disabled (void)
 Event on Ethernet receive IPv6 disabled (Op) More...
 
__STATIC_INLINE void EvrNetETH_ProtocolUnknown (uint16_t protocol)
 Event on Ethernet receive protocol unknown (Op) More...
 
__STATIC_INLINE void EvrNetETH_SendRawFrame (uint32_t length)
 Event on Ethernet send raw frame (API) More...
 
__STATIC_INLINE void EvrNetETH_SendRawInvalidParameter (void)
 Event on Ethernet send raw frame invalid parameter (Error) More...
 
__STATIC_INLINE void EvrNetETH_UninitInterface (void)
 Event on Ethernet interface de-initialize (Op) More...
 

Description

Events generated by the Network - Ethernet Interface functions.

Function Documentation

__STATIC_INLINE void EvrNetETH_GetOptionInvalidParameter ( void  )

Event on Ethernet get-option invalid parameter (Error)

__STATIC_INLINE void EvrNetETH_InitInterface ( void  )

Event on Ethernet interface initialize (Op)

__STATIC_INLINE void EvrNetETH_InvalidIpVersion ( uint8_t  ip_version)

Event on Ethernet invalid IP version (Error)

Parameters
ip_versioninvalid IP protocol version value
__STATIC_INLINE void EvrNetETH_Ip4ConfigError ( void  )

Event on Ethernet IPv4 configuration error (Error)

__STATIC_INLINE void EvrNetETH_Ip4Disabled ( void  )

Event on Ethernet receive IPv4 disabled (Op)

__STATIC_INLINE void EvrNetETH_Ip4LocalAddressUndefined ( void  )

Event on Ethernet local IPv4 address undefined (Error)

__STATIC_INLINE void EvrNetETH_Ip4MacAddressUnresolved ( const uint8_t *  ip4_addr)

Event on Ethernet MAC address unresolved (Error)

Parameters
ip4_addrpointer to IPv4 destination address
__STATIC_INLINE void EvrNetETH_Ip6ConfigError ( void  )

Event on Ethernet IPv6 configuration error (Error)

__STATIC_INLINE void EvrNetETH_Ip6Disabled ( void  )

Event on Ethernet receive IPv6 disabled (Op)

__STATIC_INLINE void EvrNetETH_Ip6LocalAddressUndefined ( void  )

Event on Ethernet local IPv6 address undefined (Error)

__STATIC_INLINE void EvrNetETH_Ip6MacAddressUnresolved ( const uint8_t *  ip6_addr)

Event on Ethernet MAC address unresolved (Error)

Parameters
ip6_addrpointer to IPv6 destination address
__STATIC_INLINE void EvrNetETH_LinkDownError ( void  )

Event on Ethernet link down error (Error)

__STATIC_INLINE void EvrNetETH_LinkDownStatus ( void  )

Event on Ethernet link down status (Op)

__STATIC_INLINE void EvrNetETH_LinkUpStatus ( int32_t  speed,
int32_t  duplex 
)

Event on Ethernet link up status (Op)

Parameters
speedlink speed
  • 0: 10 Mbit
  • 1: 100 Mbit
  • 2: 1 Gbit
duplexlink duplex
  • 0: half duplex
  • 1: full duplex
__STATIC_INLINE void EvrNetETH_MacAddressConfigError ( void  )

Event on Ethernet MAC address configuration error (Error)

__STATIC_INLINE void EvrNetETH_PhyDriverConfigError ( void  )

Event on Ethernet PHY configuration error (Error)

__STATIC_INLINE void EvrNetETH_PhyDriverInitError ( void  )

Event on Ethernet PHY initialization error (Error)

__STATIC_INLINE void EvrNetETH_ProtocolUnknown ( uint16_t  protocol)

Event on Ethernet receive protocol unknown (Op)

Parameters
protocolunknown ethernet protocol type
__STATIC_INLINE void EvrNetETH_ReceiveFrame ( uint32_t  length)

Event on Ethernet receive frame (Op)

Parameters
lengthframe length in bytes
__STATIC_INLINE void EvrNetETH_SendDataTooLarge ( uint32_t  length,
uint32_t  max_length 
)

Event on Ethernet send payload too large error (Error)

Parameters
lengthdata length in bytes
max_lengthmaximum length of data in bytes
__STATIC_INLINE void EvrNetETH_SendFrame ( uint32_t  length,
uint8_t  ip_version 
)

Event on Ethernet send frame (Op)

Parameters
lengthframe length in bytes
ip_versioninternet protocol version
  • 0: IPv4
  • 1: IPv6
__STATIC_INLINE void EvrNetETH_SendRawFrame ( uint32_t  length)

Event on Ethernet send raw frame (API)

Parameters
lengthframe length in bytes
__STATIC_INLINE void EvrNetETH_SendRawInvalidParameter ( void  )

Event on Ethernet send raw frame invalid parameter (Error)

__STATIC_INLINE void EvrNetETH_SetIp4Address ( const uint8_t *  ip4_addr)

Event on Ethernet set interface IPv4 address (Op)

Parameters
ip4_addrpointer to IPv4 address
__STATIC_INLINE void EvrNetETH_SetIp4DefaultGateway ( const uint8_t *  ip4_addr)

Event on Ethernet set interface IPv4 default gateway (Op)

Parameters
ip4_addrpointer to IPv4 address of a gateway
__STATIC_INLINE void EvrNetETH_SetIp4Mtu ( uint16_t  mtu)

Event on Ethernet set interface MTU (Op)

Parameters
mtumaximum transmission unit
  • 0: fragmentation disabled
Note
MTU is limited in the range from 576 to 1500 bytes.
__STATIC_INLINE void EvrNetETH_SetIp4PrimaryDNS ( const uint8_t *  ip4_addr)

Event on Ethernet set interface primary DNS server (Op)

Parameters
ip4_addrpointer to IPv4 address of a DNS server
__STATIC_INLINE void EvrNetETH_SetIp4SecondaryDNS ( const uint8_t *  ip4_addr)

Event on Ethernet set interface secondary DNS server (Op)

Parameters
ip4_addrpointer to IPv4 address of a DNS server
__STATIC_INLINE void EvrNetETH_SetIp4SubnetMask ( const uint8_t *  net_mask)

Event on Ethernet set interface IPv4 subnet mask (Op)

Parameters
net_maskpointer to IPv4 subnet mask
__STATIC_INLINE void EvrNetETH_SetIp6Address ( const uint8_t *  ip6_addr)

Event on Ethernet set interface IPv6 static address (Op)

Parameters
ip6_addrpointer to IPv6 address
__STATIC_INLINE void EvrNetETH_SetIp6DefaultGateway ( const uint8_t *  ip6_addr)

Event on Ethernet set interface IPv6 default gateway (Op)

Parameters
ip6_addrpointer to IPv6 address of a gateway
__STATIC_INLINE void EvrNetETH_SetIp6PrefixLength ( uint8_t  pref_len)

Event on Ethernet set interface IPv6 subnet prefix length (Op)

Parameters
pref_lensubnet prefix length
__STATIC_INLINE void EvrNetETH_SetIp6PrimaryDNS ( const uint8_t *  ip6_addr)

Event on Ethernet set interface primary DNS server (Op)

Parameters
ip6_addrpointer to IPv6 address of a DNS server
__STATIC_INLINE void EvrNetETH_SetIp6SecondaryDNS ( const uint8_t *  ip6_addr)

Event on Ethernet set interface secondary DNS server (Op)

Parameters
ip6_addrpointer to IPv6 address of a DNS server
__STATIC_INLINE void EvrNetETH_SetMacAddress ( const uint8_t *  mac_addr)

Event on Ethernet set interface MAC address (Op)

Parameters
mac_addrpointer to MAC address
__STATIC_INLINE void EvrNetETH_SetOptionInvalidParameter ( void  )

Event on Ethernet set-option invalid parameter (Error)

__STATIC_INLINE void EvrNetETH_ShowFrameHeader ( const void *  eth_header)

Event on Ethernet display send/receive frame header (Detail)

Parameters
eth_headerpointer to ethernet frame header of 14 bytes
  • DstAddr (6 bytes)
  • SrcAddr (6 bytes)
  • Protocol (2 bytes)
__STATIC_INLINE void EvrNetETH_ThreadCreateFailed ( void  )

Event on Ethernet thread create failed (Error)

__STATIC_INLINE void EvrNetETH_UninitInterface ( void  )

Event on Ethernet interface de-initialize (Op)