Here are listed all the functions that implement the Bypass Mode APIs.
Functions | |
NMI_API sint8 | m2m_wifi_enable_mac_mcast (uint8 *pu8MulticastMacAddress, uint8 u8AddRemove) |
Add MAC filter to receive Multicast packets. More... | |
sint8 | m2m_wifi_send_ethernet_pkt (uint8 *pu8Packet, uint16 u16PacketSize) |
Synchronous function to transmit an Ethernet packet. More... | |
NMI_API sint8 | m2m_wifi_set_receive_buffer (void *pvBuffer, uint16 u16BufferLen) |
set the ethernet receive buffer, should be called in the receive call back. More... | |
Add MAC filter to receive Multicast packets.
Asynchronous API to add or remove MAC addresses to the multicast filter.
Synchronous function for filtering received MAC addresses.
[in] | pu8MulticastMacAddress | Pointer to the MAC address. |
[in] | u8AddRemove | Flag to Add/Remove MAC address. |
Synchronous function for filtering received MAC addresses from certain MAC address groups. This function allows the addition/removal of certain MAC addresses, used in the multicast filter.
[in] | pu8MulticastMacAddress | Pointer to MAC address |
[in] | u8AddRemove | A flag to add or remove the MAC ADDRESS, based on the following values:
|
This function will configure the WINC to receive/ignore multicast packets from certain MAC address groups when operating in bypass mode. This function requests the given MAC addresses to be added/removed from the multicast filter.
[in] | pu8MulticastMacAddress | Pointer to MAC address |
[in] | u8AddRemove | A flag to add or remove the MAC ADDRESS, based on the following values:
|
Referenced by os_m2m_wifi_enable_mac_mcast_imp().
Synchronous function to transmit an Ethernet packet.
Asynchronous API to queue an Ethernet packet for transmission by the WINC.
Transmit a packet directly in ETHERNET/bypass mode where the TCP/IP stack is disabled and the implementation of this packet is left to the application developer. The Ethernet packet composition is left to the application developer.
[in] | pu8Packet | Pointer to a buffer holding the whole Ethernet frame. |
[in] | u16PacketSize | The size of the whole packet in bytes. |
Transmit a packet directly in ETHERNET/bypass mode where the TCP/IP stack is disabled and the implementation of this packet is left to the application developer. The Ethernet packet composition is left to the application developer.
[in] | pu8Packet | Pointer to a buffer holding the whole Ethernet frame. |
[in] | u16PacketSize | The size of the whole packet in bytes. |
set the ethernet receive buffer, should be called in the receive call back.
Synchronous function for setting or modifying the receiver buffer's length.
[in] | pvBuffer | Pointer to the ethernet receive buffer. |
[in] | u16BufferLen | Length of the buffer. |
Synchronous function for setting or modifying the receiver buffer's length. In the ETHERNET/bypass mode the application should define a callback of type @ref tpfAppEthCb, through which the application handles the received ethernet frames. It is through this callback function that the user can dynamically modify the length of the currently used receiver buffer.
[in] | pvBuffer | Pointer to Buffer to receive data. NULL pointer causes a negative error M2M_ERR_FAIL. |
[in] | u16BufferLen | Length of data to be received. Maximum length of data should not exceed the size defined by TCP/IP defined as SOCKET_BUFFER_MAX_LENGTH |
Synchronous function for setting or modifying the receiver buffer's length. In the ETHERNET/bypass mode the application should define a callback of type @ref tpfAppEthCb, through which the application handles the received ethernet frames. It is through this callback function that the user can dynamically modify the length of the currently used receiver buffer.
[in] | pvBuffer | Pointer to Buffer to receive data. NULL pointer causes a negative error M2M_ERR_FAIL. |
[in] | u16BufferLen | Length of data to be received. Maximum length of data should not exceed the size defined by TCP/IP defined as SOCKET_BUFFER_MAX_LENGTH |
Referenced by os_m2m_wifi_set_receive_buffer_imp().