XCORE SDK
XCORE Software Development Kit
|
Functions | |
sl_status_t | sl_wfx_send_configuration (const char *pds_data, uint32_t pds_data_length) |
Function to send PDS chunks. More... | |
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. More... | |
sl_status_t | sl_wfx_pta_settings (uint8_t pta_mode, uint8_t request_signal_active_level, uint8_t priority_signal_active_level, uint8_t freq_signal_active_level, uint8_t grant_signal_active_level, uint8_t coex_type, uint8_t default_grant_state, uint8_t simultaneous_rx_access, uint8_t priority_sampling_time, uint8_t tx_rx_sampling_time, uint8_t freq_sampling_time, uint8_t grant_valid_time, uint8_t fem_control_time, uint8_t first_slot_time, uint16_t periodic_tx_rx_sampling_time, uint16_t coex_quota, uint16_t wlan_quota) |
Send a request to set the PTA mode, the active levels on signals, the Coex type, to define the timings, quotas, combined mode and default grant state. More... | |
sl_status_t | sl_wfx_pta_priority (uint32_t priority) |
Send a request to define the level of priority used to arbitrate concurrent Coex and Wlan requests. More... | |
sl_status_t | sl_wfx_pta_state (uint32_t pta_state) |
Send a request to start or stop the PTA. More... | |
sl_status_t | sl_wfx_set_cca_config (uint8_t cca_thr_mode) |
Send a request to configure the CCA mode. More... | |
sl_status_t | sl_wfx_prevent_rollback (uint32_t magic_word) |
Prevent Rollback request. More... | |
sl_status_t | sl_wfx_shutdown (void) |
Shutdown the Wi-Fi chip. More... | |
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.
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 |
sl_status_t sl_wfx_prevent_rollback | ( | uint32_t | magic_word | ) |
Prevent Rollback request.
magic_word | Used to prevent mistakenly sent request from burning the OTP |
sl_status_t sl_wfx_pta_priority | ( | uint32_t | priority | ) |
Send a request to define the level of priority used to arbitrate concurrent Coex and Wlan requests.
priority | defines the priority levels for concurrent Coex and WLAN request arbitration
|
sl_status_t sl_wfx_pta_settings | ( | uint8_t | pta_mode, |
uint8_t | request_signal_active_level, | ||
uint8_t | priority_signal_active_level, | ||
uint8_t | freq_signal_active_level, | ||
uint8_t | grant_signal_active_level, | ||
uint8_t | coex_type, | ||
uint8_t | default_grant_state, | ||
uint8_t | simultaneous_rx_access, | ||
uint8_t | priority_sampling_time, | ||
uint8_t | tx_rx_sampling_time, | ||
uint8_t | freq_sampling_time, | ||
uint8_t | grant_valid_time, | ||
uint8_t | fem_control_time, | ||
uint8_t | first_slot_time, | ||
uint16_t | periodic_tx_rx_sampling_time, | ||
uint16_t | coex_quota, | ||
uint16_t | wlan_quota | ||
) |
Send a request to set the PTA mode, the active levels on signals, the Coex type, to define the timings, quotas, combined mode and default grant state.
pta_mode | defines the mode to use
|
request_signal_active_level | is the active level on REQUEST signal (PTA_RF_ACT pin) |
priority_signal_active_level | is the active level on PRIORITY signal (PTA_STATUS pin) |
freq_signal_active_level | is the active level on FREQ signal (PTA_FREQ pin) |
grant_signal_active_level | is the active level on GRANT signal (PTA_TX_CONF pin)
|
coex_type |
|
default_grant_state | is the state of the GRANT signal before arbitration at grant_valid_time
|
simultaneous_rx_access | is a boolean to allow both Coex and Wlan to receive concurrently, also named combined mode |
priority_sampling_time | is the time (in microseconds) from the Coex request to the sampling of the priority on PRIORITY signal (1 to 31) |
tx_rx_sampling_time | is the time (in microseconds) from the Coex request to the sampling of the directionality on PRIORITY signal (priority_sampling_time to 63) |
freq_sampling_time | is the time (in microseconds) from the Coex request to the sampling of freq-match information on FREQ signal (1 to 127) |
grant_valid_time | is the time (in microseconds) from Coex request to the GRANT signal assertion (MAX(tx_rx_sampling_time, freq_sampling_time) to 255) |
fem_control_time | is the time (in microseconds) from Coex request to the control of FEM (grant_valid_time to 255) |
first_slot_time | is the time (in microseconds) from the Coex request to the beginning of reception or transmission (grant_valid_time to 255) |
periodic_tx_rx_sampling_time | is the period (in microseconds) from first_slot_time of following samplings of the directionality on PRIORITY signal (1 to 1023) |
coex_quota | is the duration (in microseconds) for which RF is granted to Coex before it is moved to Wlan |
wlan_quota | is the duration (in microseconds) for which RF is granted to Wlan before it is moved to Coex |
sl_status_t sl_wfx_pta_state | ( | uint32_t | pta_state | ) |
Send a request to start or stop the PTA.
pta_state | defines the requested state of the PTA
|
sl_status_t sl_wfx_send_configuration | ( | const char * | pds_data, |
uint32_t | pds_data_length | ||
) |
Function to send PDS chunks.
pds_data | Data to be sent in the compressed PDS format |
pds_data_length | Size of the data to be sent |
sl_status_t sl_wfx_set_cca_config | ( | uint8_t | cca_thr_mode | ) |
Send a request to configure the CCA mode.
cca_thr_mode | defines the requested mode for CCA
|
sl_status_t sl_wfx_shutdown | ( | void | ) |
Shutdown the Wi-Fi chip.