WE310F5  39.00.000
m2mb_system_reset.h
Go to the documentation of this file.
1 /*===============================================================================================*/
2 /* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */
23 #ifndef M2M_M2MB_SYSTEM_RESET_H
24 #define M2M_M2MB_SYSTEM_RESET_H
25 
42 /*-----------------------------------------------------------------------------------------------*/
43 
48 /*-----------------------------------------------------------------------------------------------*/
49 
50 /* Global defines ==========================================================================*/
51 #define M2MB_ERR_LOG_MAX_FILE_NAME_LEN 50
52 #define M2MB_ERR_LOG_MAX_THREAD_NAME_LEN 20
53 
54 /* Global typedefs ==============================================================================*/
55 
64 typedef enum
65 {
75  M2MB_SYSTEM_BOOT_REASON_SIZE_ENUM = 0x7FFFFFFF /* Size enum to 32 bits. */
77 
87 {
89  UINT32 reg[16];
95 
96 /* Global functions =============================================================================*/
97 
98 /*-----------------------------------------------------------------------------------------------*/
122 /*-----------------------------------------------------------------------------------------------*/
124 
125 /*-----------------------------------------------------------------------------------------------*/
151 /*-----------------------------------------------------------------------------------------------*/
153 
154 /*-----------------------------------------------------------------------------------------------*/
186 /*-----------------------------------------------------------------------------------------------*/
188 
189 /*-----------------------------------------------------------------------------------------------*/
216 /*-----------------------------------------------------------------------------------------------*/
218 
219 /*-----------------------------------------------------------------------------------------------*/
244 /*-----------------------------------------------------------------------------------------------*/
246 
247 /*-----------------------------------------------------------------------------------------------*/
276 /*-----------------------------------------------------------------------------------------------*/
278 
279 /*-----------------------------------------------------------------------------------------------*/
305 /*-----------------------------------------------------------------------------------------------*/
307 
311 /*-----------------------------------------------------------------------------------------------*/
312 
313 #endif /* M2M_M2MB_SYSTEM_RESET_H */
M2MB_SYSTEM_RESET_RESON_T reason
unsigned char UINT8
Definition: m2mb_types.h:86
VOID m2mb_wdog_enable(VOID)
To enable watchdog.
#define M2MB_ERR_LOG_MAX_FILE_NAME_LEN
M2MB_SYSTEM_RESET_RESON_T
Enum defining different boot reason.
UINT8 thread_name[M2MB_ERR_LOG_MAX_THREAD_NAME_LEN]
UINT32 m2mb_wdog_is_enable(VOID)
To find whether the watchdog is enabled or not.
VOID m2mb_system_reset(VOID)
System Reset API.
INT32 M2MB_STATUS_T
Definition: m2mb_status.h:97
#define M2MB_ERR_LOG_MAX_THREAD_NAME_LEN
UINT8 file_name[M2MB_ERR_LOG_MAX_FILE_NAME_LEN]
Structure defining details of exception information.
void VOID
Definition: m2mb_types.h:74
VOID m2mb_wdog_kick(VOID)
To reset the watchdog.
M2MB_STATUS_T m2mb_get_boot_reason(M2MB_SYSTEM_RESET_RESON_T *reason)
Boot reason.
M2MB_STATUS_T m2mb_get_exception_info(M2MB_SYSTEM_EXCEPTION_INFO_T *excptionInfo)
To get the details on exception.
unsigned long int UINT32
Definition: m2mb_types.h:88
VOID m2mb_wdog_disable(VOID)
To disable watchdog.
struct M2MB_SYSTEM_EXCEPTION_INFO M2MB_SYSTEM_EXCEPTION_INFO_T
Structure defining details of exception information.