Device Init#
Functions#
This API checks for the readiness of the bootloader to receive the commands from the host.
Send firmware load request or update default configurations to the module.
Get the ROM version of the module.
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.
[in] |
Returns
0 - Success
Negative Value - Failure
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.
[in] | cmd | - type of configuration to be saved |
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.
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.
[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
461
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.
[in] |
Returns
0 - Success
Non-Zero Value - Failure
Note
Precondition - rsi_driver_init() must be called before this API.
643
of file driver/rsi_device_init.c