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.
 

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 <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