GENERAL_DRIVER_APIDRIVER_API

Functions

sl_status_t sl_wfx_send_configuration (const char *pds_data, uint32_t pds_data_length)
Function to send PDS chunks.
sl_status_t sl_wfx_control_gpio (uint8_t gpio_label, uint8_t gpio_mode, uint32_t *value)
Send a request to read or write a GPIO.
sl_status_t sl_wfx_prevent_rollback (uint32_t magic_word)
Prevent Rollback request.
sl_status_t sl_wfx_shutdown (void)
Shutdown the Wi-Fi chip.

Function Documentation

sl_wfx_control_gpio()

sl_status_t sl_wfx_control_gpio ( uint8_t gpio_label,
uint8_t gpio_mode,
uint32_t * value
)

Send a request to read or write a GPIO.

Parameters
gpio_label is the GPIO label to control (defined in the PDS)
gpio_mode defines how to read or set the GPIO
value returns the read value or the detailed error cause
Returns
SL_SUCCESS if the request has been sent correctly, SL_ERROR otherwise

Definition at line 1148 of file sl_wfx.c .

References sl_wfx_control_gpio_req_body_t::gpio_label , sl_wfx_control_gpio_req_body_t::gpio_mode , SL_WFX_CONTROL_GPIO_REQ_ID , sl_wfx_send_command() , and SL_WFX_STA_INTERFACE .

sl_wfx_prevent_rollback()

sl_status_t sl_wfx_prevent_rollback ( uint32_t magic_word )

Prevent Rollback request.

Parameters
magic_word Used to prevent mistakenly sent request to burn the OTP
Returns
SL_SUCCESS if the setting is applied correctly, SL_ERROR otherwise

Definition at line 1173 of file sl_wfx.c .

References sl_wfx_prevent_rollback_req_body_t::magic_word , SL_WFX_PREVENT_ROLLBACK_REQ_ID , sl_wfx_send_command() , and SL_WFX_STA_INTERFACE .

sl_wfx_send_configuration()

sl_status_t sl_wfx_send_configuration ( const char * pds_data,
uint32_t pds_data_length
)

Function to send PDS chunks.

Parameters
pds_data Data to be sent in the compressed PDS format
pds_data_length Size of the data to be sent
Returns
SL_SUCCESS if the configuration has been sent correctly, SL_ERROR otherwise
Note
The PDS (Platform Data Set) file contains the WF200 settings

Definition at line 1100 of file sl_wfx.c .

References sl_wfx_allocate_command_buffer() , and SL_WFX_CONFIGURATION_REQ_ID .

Referenced by sl_wfx_init() , and sl_wfx_set_antenna_config() .

sl_wfx_shutdown()

sl_status_t sl_wfx_shutdown ( void )

Shutdown the Wi-Fi chip.

Returns
SL_SUCCESS if the Wi-Fi chip has been shutdown correctly, SL_ERROR otherwise
Note
Send the shutdown command, clear the WUP bit and the GPIO WUP to enable the Wi-Fi chips to go to sleep

Definition at line 1191 of file sl_wfx.c .

References sl_wfx_allocate_command_buffer() , and SL_WFX_SHUT_DOWN_REQ_ID .

Referenced by sl_wfx_deinit() .