WHD Wi-Fi IOCTL Set/Get API¶
-
group
wifiioctl
Set and get IOCTL values.
Functions
-
uint32_t
whd_wifi_set_ioctl_value
(whd_interface_t ifp, uint32_t ioctl, uint32_t value)¶ Sends an IOCTL command - CDC_SET IOCTL value.
- Return
WHD_SUCCESS or Error code
- Parameters
ifp
: Pointer to handle instance of whd interfaceioctl
: CDC_SET - To set the I/O controlvalue
: Data value to be sent
-
uint32_t
whd_wifi_get_ioctl_value
(whd_interface_t ifp, uint32_t ioctl, uint32_t *value)¶ Sends an IOCTL command - CDC_GET IOCTL value.
- Return
WHD_SUCCESS or Error code
- Parameters
ifp
: Pointer to handle instance of whd interfaceioctl
: CDC_GET - To get the I/O controlvalue
: Pointer to receive the data value
-
uint32_t
whd_wifi_set_ioctl_buffer
(whd_interface_t ifp, uint32_t ioctl, void *buffer, uint16_t buffer_length)¶ Sends an IOCTL command - CDC_SET IOCTL buffer.
- Return
WHD_SUCCESS or Error code
- Parameters
ifp
: Pointer to handle instance of whd interfaceioctl
: CDC_SET - To set the I/O controlbuffer
: Handle for a packet buffer containing the data value to be sent.buffer_length
: Length of buffer
-
uint32_t
whd_wifi_get_ioctl_buffer
(whd_interface_t ifp, uint32_t ioctl, uint8_t *out_buffer, uint16_t out_length)¶ Sends an IOCTL command - CDC_GET IOCTL buffer.
- Return
WHD_SUCCESS or Error code
- Parameters
ifp
: Pointer to handle instance of whd interfaceioctl
: CDC_GET - To get the I/O controlout_buffer
: Pointer to receive the handle for the packet buffer containing the response data value receivedout_length
: Length of out_buffer
-
uint32_t
whd_wifi_get_iovar_buffer_with_param
(whd_interface_t ifp, const char *iovar_name, void *param, uint32_t paramlen, uint8_t *out_buffer, uint32_t out_length)¶ Sends an IOVAR command.
- Return
WHD_SUCCESS or Error code
- Parameters
ifp
: Pointer to handle instance of whd interfaceiovar_name
: SDPCM_GET - To get the I/O Variableparam
: Paramater to be passed for the IOVARparamlen
: Paramter lengthout_buffer
: Pointer to receive the handle for the packet buffer containing the response data value receivedout_length
: Length of out_buffer
-
uint32_t