XCORE SDK
XCORE Software Development Kit
|
Modules | |
FULL_MAC_DRIVER_API | |
GENERAL_DRIVER_API | |
Functions | |
sl_status_t | sl_wfx_init (sl_wfx_context_t *context) |
Init the Wi-Fi chip. More... | |
sl_status_t | sl_wfx_deinit (void) |
Deinit the Wi-Fi chip. More... | |
sl_status_t | sl_wfx_send_command (uint8_t command_id, void *data, uint32_t data_size, sl_wfx_interface_t interface, sl_wfx_generic_confirmation_t **response) |
Send a command to WF200. More... | |
sl_status_t | sl_wfx_send_request (uint8_t command_id, sl_wfx_generic_message_t *request, uint16_t request_length) |
Send a request to the Wi-Fi chip. More... | |
sl_status_t | sl_wfx_receive_frame (uint16_t *ctrl_reg) |
Receive available frame from the Wi-Fi chip. More... | |
sl_status_t | sl_wfx_enable_irq (void) |
Enable the Wi-Fi chip irq. More... | |
sl_status_t | sl_wfx_disable_irq (void) |
Disable the Wi-Fi chip irq. More... | |
sl_status_t | sl_wfx_set_access_mode_message (void) |
Set access mode message. More... | |
sl_status_t | sl_wfx_set_wake_up_bit (uint8_t state) |
Set the Wi-Fi chip wake up bit. More... | |
sl_status_t | sl_wfx_enable_device_power_save (void) |
Active the power save feature in the FMAC driver and let the WFx go in sleep mode. More... | |
sl_status_t | sl_wfx_disable_device_power_save (void) |
Disable the power save feature in the FMAC driver and prevent the WFx going in sleep mode. More... | |
sl_status_t | sl_wfx_set_antenna_config (sl_wfx_antenna_config_t config) |
Configure the antenna setting (done through the PDS) More... | |
sl_status_t | sl_wfx_get_hardware_revision_and_type (uint8_t *revision, uint8_t *type) |
Retrieve the hardware version and type. More... | |
sl_status_t | sl_wfx_get_opn (uint8_t **opn) |
Get the part opn. More... | |
sl_status_t | sl_wfx_get_status_code (uint32_t wfx_status, uint8_t command_id) |
Extract status code from WFx message. More... | |
sl_status_t | sl_wfx_allocate_command_buffer (sl_wfx_generic_message_t **buffer, uint32_t command_id, sl_wfx_buffer_type_t type, uint32_t buffer_size) |
Allocate a buffer for the Wi-Fi driver. More... | |
sl_status_t | sl_wfx_free_command_buffer (sl_wfx_generic_message_t *buffer, uint32_t command_id, sl_wfx_buffer_type_t type) |
Free a buffer for the Wi-Fi driver. More... | |
sl_status_t sl_wfx_allocate_command_buffer | ( | sl_wfx_generic_message_t ** | buffer, |
uint32_t | command_id, | ||
sl_wfx_buffer_type_t | type, | ||
uint32_t | buffer_size | ||
) |
Allocate a buffer for the Wi-Fi driver.
buffer | |
command_id | is the ID of the command to check if encryption is required |
type | of the buffer to allocate |
buffer_size | is the size of the buffer to allocate |
sl_status_t sl_wfx_deinit | ( | void | ) |
Deinit the Wi-Fi chip.
sl_status_t sl_wfx_disable_device_power_save | ( | void | ) |
Disable the power save feature in the FMAC driver and prevent the WFx going in sleep mode.
sl_status_t sl_wfx_disable_irq | ( | void | ) |
Disable the Wi-Fi chip irq.
sl_status_t sl_wfx_enable_device_power_save | ( | void | ) |
Active the power save feature in the FMAC driver and let the WFx go in sleep mode.
sl_status_t sl_wfx_enable_irq | ( | void | ) |
Enable the Wi-Fi chip irq.
sl_status_t sl_wfx_free_command_buffer | ( | sl_wfx_generic_message_t * | buffer, |
uint32_t | command_id, | ||
sl_wfx_buffer_type_t | type | ||
) |
Free a buffer for the Wi-Fi driver.
buffer | |
command_id | is the ID of the command to check if encryption is required |
type | of the buffer to allocate |
sl_status_t sl_wfx_get_hardware_revision_and_type | ( | uint8_t * | revision, |
uint8_t * | type | ||
) |
Retrieve the hardware version and type.
revision | is the pointer to retrieve the revision version |
type | is the pointer to retrieve the type |
sl_status_t sl_wfx_get_opn | ( | uint8_t ** | opn | ) |
Get the part opn.
opn |
sl_status_t sl_wfx_get_status_code | ( | uint32_t | wfx_status, |
uint8_t | command_id | ||
) |
Extract status code from WFx message.
wfx_status | is the status returned by the WFx |
command_id | is the ID of the command |
sl_status_t sl_wfx_init | ( | sl_wfx_context_t * | context | ) |
Init the Wi-Fi chip.
context | maintain the Wi-Fi chip information |
sl_status_t sl_wfx_receive_frame | ( | uint16_t * | ctrl_reg | ) |
Receive available frame from the Wi-Fi chip.
ctrl_reg | is the control register value of the last call of sl_wfx_receive_frame(). If equal to 0, the driver will read the control register. |
sl_status_t sl_wfx_send_command | ( | uint8_t | command_id, |
void * | data, | ||
uint32_t | data_size, | ||
sl_wfx_interface_t | interface, | ||
sl_wfx_generic_confirmation_t ** | response | ||
) |
Send a command to WF200.
command_id | is the ID of the command to be sent (cf. sl_wfx_cmd_api.h) |
data | is the pointer to the data to be sent by the command |
data_size | is the size of the data to be sent |
interface | is the interface affected by the command |
response | is a pointer to the response retrieved
|
sl_status_t sl_wfx_send_request | ( | uint8_t | command_id, |
sl_wfx_generic_message_t * | request, | ||
uint16_t | request_length | ||
) |
Send a request to the Wi-Fi chip.
command_id | is the ID of the command to be sent (cf. sl_wfx_cmd_api.h) |
request | is the pointer to the request to be sent |
request_length | is the size of the request to be sent |
sl_status_t sl_wfx_set_access_mode_message | ( | void | ) |
Set access mode message.
sl_status_t sl_wfx_set_antenna_config | ( | sl_wfx_antenna_config_t | config | ) |
Configure the antenna setting (done through the PDS)
config | is the antenna configuration to be used.
|
sl_status_t sl_wfx_set_wake_up_bit | ( | uint8_t | state | ) |
Set the Wi-Fi chip wake up bit.
state | is the state of the wake up bit to configure |