CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
stm32_reboot_reason.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef enum STM32_reset_cause_e STM32_reset_cause_t
 Possible STM32 system reset causes.
 

Enumerations

enum  STM32_reset_cause_e {
  STM32_RESET_CAUSE_UNKNOWN = 0 , STM32_RESET_CAUSE_LOW_POWER_RESET , STM32_RESET_CAUSE_WINDOW_WATCHDOG_RESET , STM32_RESET_CAUSE_INDEPENDENT_WATCHDOG_RESET ,
  STM32_RESET_CAUSE_SOFTWARE_RESET , STM32_RESET_CAUSE_EXTERNAL_RESET_PIN_RESET , STM32_RESET_CAUSE_BROWNOUT_RESET , STM32_RESET_CAUSE_OPTION_BYTE_LOADER_RESET ,
  STM32_RESET_CAUSE_FIREWALL_RESET
}
 Possible STM32 system reset causes. More...
 

Functions

STM32_reset_cause_t STM32_get_reset_cause (void)
 Obtain the STM32 system reset cause.
 
char * STM32_reset_cause_enum_to_str (STM32_reset_cause_t reset_cause)
 Convert a reset cause enum to a ASCII-printable name string.
 

Typedef Documentation

◆ STM32_reset_cause_t

Possible STM32 system reset causes.

Enumeration Type Documentation

◆ STM32_reset_cause_e

Possible STM32 system reset causes.

Enumerator
STM32_RESET_CAUSE_UNKNOWN 
STM32_RESET_CAUSE_LOW_POWER_RESET 
STM32_RESET_CAUSE_WINDOW_WATCHDOG_RESET 
STM32_RESET_CAUSE_INDEPENDENT_WATCHDOG_RESET 
STM32_RESET_CAUSE_SOFTWARE_RESET 
STM32_RESET_CAUSE_EXTERNAL_RESET_PIN_RESET 
STM32_RESET_CAUSE_BROWNOUT_RESET 
STM32_RESET_CAUSE_OPTION_BYTE_LOADER_RESET 
STM32_RESET_CAUSE_FIREWALL_RESET 

Function Documentation

◆ STM32_get_reset_cause()

STM32_reset_cause_t STM32_get_reset_cause ( void )

Obtain the STM32 system reset cause.

Parameters
None
Returns
The system reset cause, as an enum
Here is the caller graph for this function:

◆ STM32_reset_cause_enum_to_str()

char * STM32_reset_cause_enum_to_str ( STM32_reset_cause_t reset_cause)

Convert a reset cause enum to a ASCII-printable name string.

Parameters
reset_causeA reset cause enum.
Returns
A pointer to a statically-allocated null-terminated ASCII name string describing the system reset cause
Here is the caller graph for this function: