Initialisation and other management functions for WHD system.
◆ whd_init()
Initialize an instance of the WHD driver.
- Parameters
-
whd_driver_ptr | Pointer to Pointer to handle instance of the driver |
whd_init_config | Pointer to configuration data that controls how the driver is initialized |
resource_ops | Pointer to resource interface to provide resources to the driver initialization process |
buffer_ops | Pointer to a buffer interface to provide buffer related services to the driver instance |
network_ops | Pointer to a whd_netif_funcs_t to provide network stack services to the driver instance |
- Returns
- WHD_SUCCESS or Error code
◆ whd_wifi_on()
Turn on the Wi-Fi device.
Initialise Wi-Fi platform Program various WiFi parameters and modes
- Parameters
-
whd_driver | Pointer to handle instance of the driver |
ifpp | Pointer to Pointer to handle instance of whd interface |
- Returns
- WHD_SUCCESS if initialization is successful, error code otherwise
◆ whd_wifi_off()
Turn off the Wi-Fi device.
- De-Initialises the required parts of the hardware platform i.e. pins for SDIO/SPI, interrupt, reset, power etc.
- De-Initialises the whd thread which arbitrates access to the SDIO/SPI bus
- Parameters
-
ifp | Pointer to handle instance of whd interface |
- Returns
- WHD_SUCCESS if deinitialization is successful, Error code otherwise
◆ whd_deinit()
Shutdown this instance of the wifi driver, freeing all used resources.
- Parameters
-
ifp | Pointer to handle instance of whd interface |
- Returns
- WHD_SUCCESS or Error code
◆ whd_wifi_set_up()
Brings up the Wi-Fi core.
- Parameters
-
ifp | Pointer to handle instance of whd interface |
- Returns
- WHD_SUCCESS or Error code
◆ whd_wifi_set_down()
Bring down the Wi-Fi core.
WARNING / NOTE: This brings down the Wi-Fi core and existing network connections will be lost.
- Parameters
-
ifp | Pointer to handle instance of whd interface |
- Returns
- WHD_SUCCESS or Error code
◆ whd_add_secondary_interface()
Creates a secondary interface.
- Parameters
-
whd_drv | Pointer to handle instance of the driver |
mac_addr | MAC address for the interface |
ifpp | Pointer to the whd interface pointer |
- Returns
- WHD_SUCCESS or Error code