Allows WHD to pass received data to the network stack, to send an ethernet frame to WHD, etc. More...
Modules | |
Flags | |
MIB2 statistics | |
Data Structures | |
struct | whd_netif_funcs |
Contains functions which allows WHD to pass received data to the network stack, to send an ethernet frame to WHD, etc. More... | |
union | netif_ext_callback_args_t |
Argument supplied to netif_ext_callback_fn. More... | |
Macros | |
#define | netif_is_up(netif) (((netif)->flags & NETIF_FLAG_UP) ? (u8_t)1 : (u8_t)0) |
Ask if an interface is up. More... | |
Typedefs | |
typedef u16_t | netif_nsc_reason_t |
Extended netif status callback (NSC) reasons flags. More... | |
typedef void(* | netif_ext_callback_fn) (struct netif *netif, netif_nsc_reason_t reason, const netif_ext_callback_args_t *args) |
Function used for extended netif status callbacks Note: When parsing reason argument, keep in mind that more reasons may be added in the future! More... | |
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) More... | |
Allows WHD to pass received data to the network stack, to send an ethernet frame to WHD, etc.
#define netif_is_up | ( | netif | ) | (((netif)->flags & NETIF_FLAG_UP) ? (u8_t)1 : (u8_t)0) |
typedef void(* netif_ext_callback_fn) (struct netif *netif, netif_nsc_reason_t reason, const netif_ext_callback_args_t *args) |
typedef u16_t netif_nsc_reason_t |
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.
ifp | Pointer to handle instance of whd interface |
buffer | Handle of the packet buffer to be sent. |