Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Common boot APIs

infuse_common_boot API More...

Functions

int infuse_common_boot_last_reboot (struct infuse_reboot_state *state)
 Query the reason for the latest reboot.
int infuse_common_boot_secure_fault_info (struct fault_exception_info_t *fault_info)
 Query the secure fault information for the latest reboot.

Detailed Description

infuse_common_boot API

Function Documentation

◆ infuse_common_boot_last_reboot()

int infuse_common_boot_last_reboot ( struct infuse_reboot_state * state)

#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/common_boot.h>

Query the reason for the latest reboot.

Note
Unlike infuse_reboot_state_query, this function can be called as many times as desired.
Even when returning -ENOENT, the reason and hardware_reason struct field are still valid.
Parameters
stateOutput location for reboot information
Return values
0On successful state query
-ENOENTNo reboot information exists

◆ infuse_common_boot_secure_fault_info()

int infuse_common_boot_secure_fault_info ( struct fault_exception_info_t * fault_info)

#include </__w/infuse-sdk/infuse-sdk/infuse-sdk/include/infuse/common_boot.h>

Query the secure fault information for the latest reboot.

Parameters
fault_infoOutput location for secure fault information
Return values
0On successful fault info query
-ENOENTIf the previous reboot was not a secure fault