Device Init#

Functions#

int16_t

This API checks for the readiness of the bootloader to receive the commands from the host.

int16_t

Send firmware load request or update default configurations to the module.

int32_t

Get the ROM version of the module.

int16_t

Power cycles the module. This API is valid only if there is a power gate, external to the module, which is controlling the power to the module using a GPIO signal of the MCU.

Function Documentation#

rsi_bl_waitfor_boardready#

int16_t rsi_bl_waitfor_boardready (void)

This API checks for the readiness of the bootloader to receive the commands from the host.

Parameters
[in]

Returns

  • 0 - Success

  • Negative Value - Failure


Definition at line 102 of file driver/rsi_device_init.c

rsi_bl_select_option#

int16_t rsi_bl_select_option (uint8_t cmd)

Send firmware load request or update default configurations to the module.

Parameters
[in]cmd

- type of configuration to be saved BURN_NWP_FW - 0x42 LOAD_NWP_FW - 0x31 LOAD_DEFAULT_NWP_FW_ACTIVE_LOW - 0x71

Returns

  • 0 - Success

  • Non-Zero Value - Failure (Possible Error Codes - 0xfffffff2, 0xfffffff1, 0xffffffe4)

Note

  • Refer to Error Codes for the description of above error codes.


Definition at line 150 of file driver/rsi_device_init.c

rsi_get_rom_version#

int32_t rsi_get_rom_version (void)

Get the ROM version of the module.

Parameters
[in]

Returns

  • 1 - RSI_ROM_VERSION_1P0

  • 2 - RSI_ROM_VERSION_1P1

Note

  • The return value of this API can be used to infer chip version of the module. 1 - 1.4EVK 2 - 1.5EVK


Definition at line 446 of file driver/rsi_device_init.c

rsi_bl_module_power_cycle#

int16_t rsi_bl_module_power_cycle (void)

Power cycles the module. This API is valid only if there is a power gate, external to the module, which is controlling the power to the module using a GPIO signal of the MCU.

Parameters
[in]

Returns

  • 0 - Success

  • Non-Zero Value - Failure

Note


Definition at line 628 of file driver/rsi_device_init.c

References SL_PRINTF , and RSI_SUCCESS