38 #ifndef __DRIVERLIB_HIBERNATE_H__ 39 #define __DRIVERLIB_HIBERNATE_H__ 61 #define HIBERNATE_WAKE_PIN 0x00000010 62 #define HIBERNATE_WAKE_RTC 0x00000008 63 #define HIBERNATE_WAKE_LOW_BAT 0x00000200 64 #define HIBERNATE_WAKE_GPIO 0x00000010 65 #define HIBERNATE_WAKE_RESET 0x00100010 72 #define HIBERNATE_LOW_BAT_DETECT \ 74 #define HIBERNATE_LOW_BAT_ABORT 0x000000A0 75 #define HIBERNATE_LOW_BAT_1_9V 0x00000000 76 #define HIBERNATE_LOW_BAT_2_1V 0x00002000 77 #define HIBERNATE_LOW_BAT_2_3V 0x00004000 78 #define HIBERNATE_LOW_BAT_2_5V 0x00006000 85 #define HIBERNATE_INT_VDDFAIL 0x00000080 86 #define HIBERNATE_INT_RESET_WAKE \ 88 #define HIBERNATE_INT_GPIO_WAKE 0x00000020 89 #define HIBERNATE_INT_WR_COMPLETE \ 91 #define HIBERNATE_INT_PIN_WAKE 0x00000008 92 #define HIBERNATE_INT_LOW_BAT 0x00000004 93 #define HIBERNATE_INT_RTC_MATCH_0 \ 102 #define HIBERNATE_OSC_LFIOSC 0x00080000 103 #define HIBERNATE_OSC_LOWDRIVE 0x00000000 104 #define HIBERNATE_OSC_HIGHDRIVE 0x00020000 105 #define HIBERNATE_OSC_DISABLE 0x00010000 106 #define HIBERNATE_OUT_WRSTALL 0x20000000 107 #define HIBERNATE_OUT_SYSCLK 0x00000001 108 #define HIBERNATE_OUT_ALT1CLK 0x00000002 115 #define HIBERNATE_COUNTER_RTC 0x00000000 116 #define HIBERNATE_COUNTER_12HR 0x00000001 117 #define HIBERNATE_COUNTER_24HR 0x00000005 124 #define HIBERNATE_TAMPER_EVENTS_NO_HIB_WAKE \ 126 #define HIBERNATE_TAMPER_EVENTS_HIB_WAKE \ 128 #define HIBERNATE_TAMPER_EVENTS_NO_ERASE_HIB_MEM \ 130 #define HIBERNATE_TAMPER_EVENTS_ERASE_LOW_HIB_MEM \ 132 #define HIBERNATE_TAMPER_EVENTS_ERASE_HIGH_HIB_MEM \ 134 #define HIBERNATE_TAMPER_EVENTS_ERASE_ALL_HIB_MEM \ 142 #define HIBERNATE_TAMPER_STATUS_INACTIVE \ 144 #define HIBERNATE_TAMPER_STATUS_ACTIVE \ 146 #define HIBERNATE_TAMPER_STATUS_EVENT \ 148 #define HIBERNATE_TAMPER_STATUS_EXT_OSC_ACTIVE \ 150 #define HIBERNATE_TAMPER_STATUS_EXT_OSC_INACTIVE \ 152 #define HIBERNATE_TAMPER_STATUS_EXT_OSC_VALID \ 154 #define HIBERNATE_TAMPER_STATUS_EXT_OSC_FAILED \ 162 #define HIBERNATE_TAMPER_IO_TRIGGER_LOW \ 164 #define HIBERNATE_TAMPER_IO_TRIGGER_HIGH \ 166 #define HIBERNATE_TAMPER_IO_WPU_DISABLED \ 168 #define HIBERNATE_TAMPER_IO_WPU_ENABLED \ 170 #define HIBERNATE_TAMPER_IO_MATCH_SHORT \ 172 #define HIBERNATE_TAMPER_IO_MATCH_LONG \ 180 #define HIBERNATE_TAMPER_EVENT_0 \ 182 #define HIBERNATE_TAMPER_EVENT_1 \ 184 #define HIBERNATE_TAMPER_EVENT_2 \ 186 #define HIBERNATE_TAMPER_EVENT_3 \ 188 #define HIBERNATE_TAMPER_EVENT_EXT_OSC \ 237 uint32_t *pui32Event);
258 #endif // __DRIVERLIB_HIBERNATE_H__ uint32_t HibernateWakeGet(void)
Definition: hibernate.c:473
void HibernateRTCDisable(void)
Definition: hibernate.c:292
uint32_t HibernateIsActive(void)
Definition: hibernate.c:1247
void HibernateTamperUnLock(void)
Definition: hibernate.c:2124
void HibernateRTCSSMatchSet(uint32_t ui32Match, uint32_t ui32Value)
Definition: hibernate.c:699
void HibernateRequest(void)
Definition: hibernate.c:941
bool HibernateGPIORetentionGet(void)
Definition: hibernate.c:1324
void HibernateIntEnable(uint32_t ui32IntFlags)
Definition: hibernate.c:978
void HibernateTamperEnable(void)
Definition: hibernate.c:1845
void HibernateTamperEventsConfig(uint32_t ui32Config)
Definition: hibernate.c:1800
void HibernateIntDisable(uint32_t ui32IntFlags)
Definition: hibernate.c:1017
void HibernateDataGet(uint32_t *pui32Data, uint32_t ui32Count)
Definition: hibernate.c:882
void HibernateCalendarMatchSet(uint32_t ui32Index, struct tm *psTime)
Definition: hibernate.c:1663
uint32_t HibernateIntStatus(bool bMasked)
Definition: hibernate.c:1161
void HibernateTamperIODisable(uint32_t ui32Input)
Definition: hibernate.c:2006
uint32_t HibernateBatCheckDone(void)
Definition: hibernate.c:355
void HibernateGPIORetentionDisable(void)
Definition: hibernate.c:1298
void HibernateClockConfig(uint32_t ui32Config)
Definition: hibernate.c:204
void HibernateDisable(void)
Definition: hibernate.c:142
bool HibernateTamperEventsGet(uint32_t ui32Index, uint32_t *pui32RTC, uint32_t *pui32Event)
Definition: hibernate.c:2281
void HibernateRTCMatchSet(uint32_t ui32Match, uint32_t ui32Value)
Definition: hibernate.c:642
void HibernateIntUnregister(void)
Definition: hibernate.c:1119
void HibernateTamperEventsClearNoLock(void)
Definition: hibernate.c:2098
uint32_t HibernateRTCTrimGet(void)
Definition: hibernate.c:809
void HibernateGPIORetentionEnable(void)
Definition: hibernate.c:1271
void HibernateRTCEnable(void)
Definition: hibernate.c:267
void HibernateTamperDisable(void)
Definition: hibernate.c:1883
void HibernateTamperEventsClear(void)
Definition: hibernate.c:2052
uint32_t HibernateTamperStatusGet(void)
Definition: hibernate.c:2190
uint32_t HibernateRTCSSGet(void)
Definition: hibernate.c:752
void HibernateLowBatSet(uint32_t ui32LowBatFlags)
Definition: hibernate.c:524
void HibernateDataSet(uint32_t *pui32Data, uint32_t ui32Count)
Definition: hibernate.c:836
void HibernateWakeSet(uint32_t ui32WakeFlags)
Definition: hibernate.c:391
uint32_t HibernateRTCSSMatchGet(uint32_t ui32Match)
Definition: hibernate.c:729
void HibernateCalendarSet(struct tm *psTime)
Definition: hibernate.c:1545
uint32_t HibernateRTCGet(void)
Definition: hibernate.c:618
uint32_t HibernateRTCMatchGet(uint32_t ui32Match)
Definition: hibernate.c:671
uint32_t HibernateLowBatGet(void)
Definition: hibernate.c:560
void HibernateCalendarMatchGet(uint32_t ui32Index, struct tm *psTime)
Definition: hibernate.c:1694
void HibernateEnableExpClk(uint32_t ui32HibClk)
Definition: hibernate.c:118
void HibernateTamperExtOscRecover(void)
Definition: hibernate.c:2353
void HibernateBatCheckStart(void)
Definition: hibernate.c:325
void HibernateRTCTrimSet(uint32_t ui32Trim)
Definition: hibernate.c:779
void HibernateIntRegister(void(*pfnHandler)(void))
Definition: hibernate.c:1082
int HibernateCalendarGet(struct tm *psTime)
Definition: hibernate.c:1578
void HibernateCounterMode(uint32_t ui32Config)
Definition: hibernate.c:1371
bool HibernateTamperExtOscValid(void)
Definition: hibernate.c:2392
void HibernateTamperLock(void)
Definition: hibernate.c:2145
void HibernateTamperIOEnable(uint32_t ui32Input, uint32_t ui32Config)
Definition: hibernate.c:1939
void HibernateRTCSet(uint32_t ui32RTCValue)
Definition: hibernate.c:583
void HibernateIntClear(uint32_t ui32IntFlags)
Definition: hibernate.c:1202