WHD Network Interface API¶
-
group
netif
Allows WHD to pass received data to the network stack, to send an ethernet frame to WHD, etc.
Functions
-
void
whd_network_send_ethernet_data
(whd_interface_t ifp, whd_buffer_t buffer)¶ To send an ethernet frame to WHD (called by the Network Stack)
This function takes ethernet data from the network stack and queues it for transmission over the wireless network. The function can be called from any thread context as it is thread safe, however it must not be called from interrupt context since it might get blocked while waiting for a lock on the transmit queue.
This function returns immediately after the packet has been queued for transmit, NOT after it has been transmitted. Packet buffers passed to the WHD are released inside the WHD once they have been transmitted.
- Parameters
ifp – Pointer to handle instance of whd interface
buffer – Handle of the packet buffer to be sent.
- Returns
WHD_SUCCESS or Error code
-
struct
whd_netif_funcs
¶ - #include <>
Contains functions which allows WHD to pass received data to the network stack, to send an ethernet frame to WHD, etc.
-
void