NetBurner 3.1
m2m_wifi_send_ethernet_pkt

Functions

NMI_API sint8 m2m_wifi_send_ethernet_pkt (uint8 *pu8Packet, uint16 u16PacketSize, uint8 u8IfcId)
 

Detailed Description

Synchronous function to transmit an Ethernet packet. The implementation of this packet is left to the application developer. The Ethernet packet composition is left to the application developer.

Function Documentation

◆ m2m_wifi_send_ethernet_pkt()

NMI_API sint8 m2m_wifi_send_ethernet_pkt ( uint8 pu8Packet,
uint16  u16PacketSize,
uint8  u8IfcId 
)
Parameters
[in]pu8PacketPointer to a buffer holding the whole Ethernet frame at an offset of M2M_ETHERNET_HDR_OFFSET + M2M_ETH_PAD_SIZE bytes. This buffer has to be aligned appropriately for DMA operations according to the host's constraints (Word Aligned, cache line alignedナ etc)
[in]u16PacketSizeThe size of the whole bytes in packet.
[in]u8IfcIdThe interface selected to send Ethernet packet (AP_INTERFACE, STATION_INTERFACE OR P2P_INTERFACE)
Note
Packets are the user's responsibility.
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.