Hardware Libraries
20.1
Stratix 10 SoC Hardware Manager
|
This functional group provides information on various aspects of SoC reset status and timeout events.
Typedefs | |
typedef enum ALT_RESET_EVENT_e | ALT_RESET_EVENT_t |
ENUMS | |
enum | ALT_RESET_EVENT_e { ALT_RESET_EVENT_CSDAPRST = 0x1, ALT_RESET_EVENT_DEBUGRST = 0x2, ALT_RESET_EVENT_L4W3DRST = 0x4, ALT_RESET_EVENT_L4WD2RST = 0x8, ALT_RESET_EVENT_L4WD1RST = 0x10, ALT_RESET_EVENT_L4WD0RST = 0x20, ALT_RESET_EVENT_MPU3RST = 0x40, ALT_RESET_EVENT_MPU2RST = 0x80, ALT_RESET_EVENT_MPU1RST = 0x100, ALT_RESET_EVENT_MPU0RST = 0x200, ALT_RESET_EVENT_SDMLASTPORRST = 0x400, ALT_RESET_EVENT_SDMWARMRST = 0x800, ALT_RESET_EVENT_SDMCOLDRST = 0x1000, ALT_RESET_EVENT_CORE3IRQ = 0x2000, ALT_RESET_EVENT_CORE2IRQ = 0x4000, ALT_RESET_EVENT_CORE1IRQ = 0x8000, ALT_RESET_EVENT_CORE0IRQ = 0x10000, ALT_RESET_EVENT_CPUPOR3IRQ = 0x20000, ALT_RESET_EVENT_CPUPOR2IRQ = 0x40000, ALT_RESET_EVENT_CPUPOR1IRQ = 0x80000, ALT_RESET_EVENT_CPUPOR0IRQ = 0x100000 } |
Functions | |
uint32_t | alt_reset_event_get (void) |
ALT_STATUS_CODE | alt_reset_event_clear (uint32_t event_mask) |
typedef enum ALT_RESET_EVENT_e ALT_RESET_EVENT_t |
This type definition enumerates the set of reset causes and timeout events. Note the values do not correspond to the actual bit locations.
enum ALT_RESET_EVENT_e |
This type definition enumerates the set of reset causes and timeout events. Note the values do not correspond to the actual bit locations.
uint32_t alt_reset_event_get | ( | void | ) |
Gets the reset and timeout events that caused the last reset.
The ALT_RESET_EVENT_t enumeration values should be used to selectively examine the returned reset cause(s).
ALT_STATUS_CODE alt_reset_event_clear | ( | uint32_t | event_mask | ) |
Clears the reset and timeout events that caused the last reset.
event_mask | A mask of the selected reset and timeout events to clear in the Reset Manager stat register. The mask selection must be formed using the ALT_RESET_EVENT_t enumeration values |
ALT_E_SUCCESS | The operation was succesful. |
ALT_E_ERROR | The operation failed. |