XCORE SDK
XCORE Software Development Kit
|
Functions | |
sl_status_t | sl_wfx_host_init (void) |
Driver hook to initialize the host resources. More... | |
sl_status_t | sl_wfx_host_get_firmware_data (const uint8_t **data, uint32_t data_size) |
Driver hook to retrieve a firmware chunk. More... | |
sl_status_t | sl_wfx_host_get_firmware_size (uint32_t *firmware_size) |
Driver hook to retrieve the firmware size. More... | |
sl_status_t | sl_wfx_host_get_pds_data (const char **pds_data, uint16_t index) |
Driver hook to retrieve a PDS line. More... | |
sl_status_t | sl_wfx_host_get_pds_size (uint16_t *pds_size) |
Driver hook to get the number of lines of the PDS. More... | |
sl_status_t | sl_wfx_host_deinit (void) |
Driver hook to deinitialize the host resources. More... | |
sl_status_t | sl_wfx_host_reset_chip (void) |
Implement the reset of the WFx chip. More... | |
sl_status_t | sl_wfx_host_set_wake_up_pin (uint8_t state) |
Drive the wake up pin in the requested state. More... | |
sl_status_t | sl_wfx_host_wait_for_wake_up (void) |
Called once the WFx chip is waking up. More... | |
sl_status_t | sl_wfx_host_sleep_grant (sl_wfx_host_bus_transfer_type_t type, sl_wfx_register_address_t address, uint32_t length) |
Called when the driver is considering putting the WFx in sleep mode. More... | |
sl_status_t | sl_wfx_host_hold_in_reset (void) |
Hold the WFx chip in reset mode. More... | |
sl_status_t | sl_wfx_host_setup_waited_event (uint8_t event_id) |
Set up the next event that the driver will wait. More... | |
sl_status_t | sl_wfx_host_wait_for_confirmation (uint8_t confirmation_id, uint32_t timeout_ms, void **event_payload_out) |
Called when the driver is waiting for a confirmation. More... | |
sl_status_t | sl_wfx_host_wait (uint32_t wait_ms) |
Called when the FMAC driver wants to add a delay. More... | |
sl_status_t | sl_wfx_host_post_event (sl_wfx_generic_message_t *event_payload) |
Called when a message is received from the WFx chip. More... | |
sl_status_t | sl_wfx_host_allocate_buffer (void **buffer, sl_wfx_buffer_type_t type, uint32_t buffer_size) |
Called when the driver wants to allocate memory. More... | |
sl_status_t | sl_wfx_host_free_buffer (void *buffer, sl_wfx_buffer_type_t type) |
Called when the driver wants to free memory. More... | |
sl_status_t | sl_wfx_host_transmit_frame (void *frame, uint32_t frame_len) |
Called when the driver sends a frame to the WFx chip. More... | |
sl_status_t | sl_wfx_host_lock (void) |
Called when the driver needs to lock its access. More... | |
sl_status_t | sl_wfx_host_unlock (void) |
Called when the driver needs to unlock its access. More... | |
sl_status_t | sl_wfx_host_init_bus (void) |
Initialize the host bus. More... | |
sl_status_t | sl_wfx_host_deinit_bus (void) |
Deinitialize the host bus. More... | |
sl_status_t | sl_wfx_host_enable_platform_interrupt (void) |
Enable the bus interrupt. More... | |
sl_status_t | sl_wfx_host_disable_platform_interrupt (void) |
Disable the bus interrupt. More... | |
sl_status_t | sl_wfx_host_spi_cs_assert (void) |
Assert the SPI Chip Select pin. More... | |
sl_status_t | sl_wfx_host_spi_cs_deassert (void) |
Deassert the SPI Chip Select pin. More... | |
sl_status_t | sl_wfx_host_spi_transfer_no_cs_assert (sl_wfx_host_bus_transfer_type_t type, uint8_t *header, uint16_t header_length, uint8_t *buffer, uint16_t buffer_length) |
Send data on the SPI bus. More... | |
sl_status_t | sl_wfx_host_sdio_transfer_cmd52 (sl_wfx_host_bus_transfer_type_t type, uint8_t function, uint32_t address, uint8_t *buffer) |
Send command 52 on the SDIO bus. More... | |
sl_status_t | sl_wfx_host_sdio_transfer_cmd53 (sl_wfx_host_bus_transfer_type_t type, uint8_t function, uint32_t address, uint8_t *buffer, uint16_t buffer_length) |
Send command 53 on the SDIO bus. More... | |
sl_status_t | sl_wfx_host_sdio_enable_high_speed_mode (void) |
Enable the SDIO high-speed mode. More... | |
sl_status_t sl_wfx_host_allocate_buffer | ( | void ** | buffer, |
sl_wfx_buffer_type_t | type, | ||
uint32_t | buffer_size | ||
) |
Called when the driver wants to allocate memory.
buffer | is a pointer to the data |
type | is the type of buffer to allocate (see sl_wfx_buffer_type_t) |
buffer_size | represents the amount of memory to allocate |
sl_status_t sl_wfx_host_deinit | ( | void | ) |
Driver hook to deinitialize the host resources.
sl_status_t sl_wfx_host_deinit_bus | ( | void | ) |
Deinitialize the host bus.
sl_status_t sl_wfx_host_disable_platform_interrupt | ( | void | ) |
Disable the bus interrupt.
sl_status_t sl_wfx_host_enable_platform_interrupt | ( | void | ) |
Enable the bus interrupt.
sl_status_t sl_wfx_host_free_buffer | ( | void * | buffer, |
sl_wfx_buffer_type_t | type | ||
) |
Called when the driver wants to free memory.
buffer | is the pointer to the memory to free |
type | is the type of buffer to free (see sl_wfx_buffer_type_t) |
sl_status_t sl_wfx_host_get_firmware_data | ( | const uint8_t ** | data, |
uint32_t | data_size | ||
) |
Driver hook to retrieve a firmware chunk.
data | is a pointer to the firmware data |
data_size | is the size of data requested by the driver |
sl_status_t sl_wfx_host_get_firmware_size | ( | uint32_t * | firmware_size | ) |
Driver hook to retrieve the firmware size.
firmware_size | is a pointer to the firmware size value |
sl_status_t sl_wfx_host_get_pds_data | ( | const char ** | pds_data, |
uint16_t | index | ||
) |
Driver hook to retrieve a PDS line.
pds_data | is a pointer to the PDS data |
index | is the index of the line requested by the driver |
sl_status_t sl_wfx_host_get_pds_size | ( | uint16_t * | pds_size | ) |
Driver hook to get the number of lines of the PDS.
pds_size | is a pointer to the PDS size value |
sl_status_t sl_wfx_host_hold_in_reset | ( | void | ) |
Hold the WFx chip in reset mode.
sl_status_t sl_wfx_host_init | ( | void | ) |
Driver hook to initialize the host resources.
sl_status_t sl_wfx_host_init_bus | ( | void | ) |
Initialize the host bus.
sl_status_t sl_wfx_host_lock | ( | void | ) |
Called when the driver needs to lock its access.
sl_status_t sl_wfx_host_post_event | ( | sl_wfx_generic_message_t * | event_payload | ) |
Called when a message is received from the WFx chip.
event_payload | is a pointer to the data received |
sl_status_t sl_wfx_host_reset_chip | ( | void | ) |
Implement the reset of the WFx chip.
sl_status_t sl_wfx_host_sdio_enable_high_speed_mode | ( | void | ) |
Enable the SDIO high-speed mode.
sl_status_t sl_wfx_host_sdio_transfer_cmd52 | ( | sl_wfx_host_bus_transfer_type_t | type, |
uint8_t | function, | ||
uint32_t | address, | ||
uint8_t * | buffer | ||
) |
Send command 52 on the SDIO bus.
type | is the type of bus action (see sl_wfx_host_bus_transfer_type_t) |
function | is the function to use in the SDIO command |
address | is the address to use in the SDIO command |
buffer | is a pointer to the buffer data |
sl_status_t sl_wfx_host_sdio_transfer_cmd53 | ( | sl_wfx_host_bus_transfer_type_t | type, |
uint8_t | function, | ||
uint32_t | address, | ||
uint8_t * | buffer, | ||
uint16_t | buffer_length | ||
) |
Send command 53 on the SDIO bus.
type | is the type of bus action (see sl_wfx_host_bus_transfer_type_t) |
function | is the function to use in the SDIO command |
address | is the address to use in the SDIO command |
buffer | is a pointer to the buffer data |
buffer_length | is the length of the buffer data |
sl_status_t sl_wfx_host_set_wake_up_pin | ( | uint8_t | state | ) |
Drive the wake up pin in the requested state.
state | to be applied to the wake up pin |
sl_status_t sl_wfx_host_setup_waited_event | ( | uint8_t | event_id | ) |
Set up the next event that the driver will wait.
event_id | is the ID to be waited |
sl_status_t sl_wfx_host_sleep_grant | ( | sl_wfx_host_bus_transfer_type_t | type, |
sl_wfx_register_address_t | address, | ||
uint32_t | length | ||
) |
Called when the driver is considering putting the WFx in sleep mode.
type | is the type of the message sent |
address | is the address of the message sent |
length | is the length of the message to be sent |
sl_status_t sl_wfx_host_spi_cs_assert | ( | void | ) |
Assert the SPI Chip Select pin.
sl_status_t sl_wfx_host_spi_cs_deassert | ( | void | ) |
Deassert the SPI Chip Select pin.
sl_status_t sl_wfx_host_spi_transfer_no_cs_assert | ( | sl_wfx_host_bus_transfer_type_t | type, |
uint8_t * | header, | ||
uint16_t | header_length, | ||
uint8_t * | buffer, | ||
uint16_t | buffer_length | ||
) |
Send data on the SPI bus.
type | is the type of bus action (see sl_wfx_host_bus_transfer_type_t) |
header | is a pointer to the header data |
header_length | is the length of the header data |
buffer | is a pointer to the buffer data |
buffer_length | is the length of the buffer data |
sl_status_t sl_wfx_host_transmit_frame | ( | void * | frame, |
uint32_t | frame_len | ||
) |
Called when the driver sends a frame to the WFx chip.
frame | is a pointer to the frame data |
frame_len | is size of the frame |
sl_status_t sl_wfx_host_unlock | ( | void | ) |
Called when the driver needs to unlock its access.
sl_status_t sl_wfx_host_wait | ( | uint32_t | wait_ms | ) |
Called when the FMAC driver wants to add a delay.
wait_ms | is the time to wait |
sl_status_t sl_wfx_host_wait_for_confirmation | ( | uint8_t | confirmation_id, |
uint32_t | timeout_ms, | ||
void ** | event_payload_out | ||
) |
Called when the driver is waiting for a confirmation.
confirmation_id | is the ID to be waited |
timeout_ms | is the time before the command times out |
event_payload_out | is a pointer to the data returned by the confirmation |
sl_status_t sl_wfx_host_wait_for_wake_up | ( | void | ) |
Called once the WFx chip is waking up.