EE445M RTOS
Taken at the University of Texas Spring 2015
hibernate.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HIBERNATE_WAKE_PIN   0x00000010
 
#define HIBERNATE_WAKE_RTC   0x00000008
 
#define HIBERNATE_WAKE_LOW_BAT   0x00000200
 
#define HIBERNATE_WAKE_GPIO   0x00000010
 
#define HIBERNATE_WAKE_RESET   0x00100010
 
#define HIBERNATE_WAKE_TAMPER   0x08000010
 
#define HIBERNATE_LOW_BAT_DETECT   0x00000020
 
#define HIBERNATE_LOW_BAT_ABORT   0x000000A0
 
#define HIBERNATE_LOW_BAT_1_9V   0x00000000
 
#define HIBERNATE_LOW_BAT_2_1V   0x00002000
 
#define HIBERNATE_LOW_BAT_2_3V   0x00004000
 
#define HIBERNATE_LOW_BAT_2_5V   0x00006000
 
#define HIBERNATE_INT_VDDFAIL   0x00000080
 
#define HIBERNATE_INT_RESET_WAKE   0x00000040
 
#define HIBERNATE_INT_GPIO_WAKE   0x00000020
 
#define HIBERNATE_INT_WR_COMPLETE   0x00000010
 
#define HIBERNATE_INT_PIN_WAKE   0x00000008
 
#define HIBERNATE_INT_LOW_BAT   0x00000004
 
#define HIBERNATE_INT_RTC_MATCH_0   0x00000001
 
#define HIBERNATE_OSC_LFIOSC   0x00080000
 
#define HIBERNATE_OSC_LOWDRIVE   0x00000000
 
#define HIBERNATE_OSC_HIGHDRIVE   0x00020000
 
#define HIBERNATE_OSC_DISABLE   0x00010000
 
#define HIBERNATE_OUT_WRSTALL   0x20000000
 
#define HIBERNATE_OUT_SYSCLK   0x00000001
 
#define HIBERNATE_OUT_ALT1CLK   0x00000002
 
#define HIBERNATE_COUNTER_RTC   0x00000000
 
#define HIBERNATE_COUNTER_12HR   0x00000001
 
#define HIBERNATE_COUNTER_24HR   0x00000005
 
#define HIBERNATE_TAMPER_EVENTS_NO_HIB_WAKE   0x00000000
 
#define HIBERNATE_TAMPER_EVENTS_HIB_WAKE   0x00000800
 
#define HIBERNATE_TAMPER_EVENTS_NO_ERASE_HIB_MEM   0x00000000
 
#define HIBERNATE_TAMPER_EVENTS_ERASE_LOW_HIB_MEM   0x00000100
 
#define HIBERNATE_TAMPER_EVENTS_ERASE_HIGH_HIB_MEM   0x00000200
 
#define HIBERNATE_TAMPER_EVENTS_ERASE_ALL_HIB_MEM   0x00000300
 
#define HIBERNATE_TAMPER_STATUS_INACTIVE   0x00000010
 
#define HIBERNATE_TAMPER_STATUS_ACTIVE   0x00000020
 
#define HIBERNATE_TAMPER_STATUS_EVENT   0x00000040
 
#define HIBERNATE_TAMPER_STATUS_EXT_OSC_ACTIVE   0x00000008
 
#define HIBERNATE_TAMPER_STATUS_EXT_OSC_INACTIVE   0x00000002
 
#define HIBERNATE_TAMPER_STATUS_EXT_OSC_VALID   0x00000004
 
#define HIBERNATE_TAMPER_STATUS_EXT_OSC_FAILED   0x00000001
 
#define HIBERNATE_TAMPER_IO_TRIGGER_LOW   0x00000000
 
#define HIBERNATE_TAMPER_IO_TRIGGER_HIGH   0x00000002
 
#define HIBERNATE_TAMPER_IO_WPU_DISABLED   0x00000000
 
#define HIBERNATE_TAMPER_IO_WPU_ENABLED   0x00000004
 
#define HIBERNATE_TAMPER_IO_MATCH_SHORT   0x00000000
 
#define HIBERNATE_TAMPER_IO_MATCH_LONG   0x00000008
 
#define HIBERNATE_TAMPER_EVENT_0   0x00000001
 
#define HIBERNATE_TAMPER_EVENT_1   0x00000002
 
#define HIBERNATE_TAMPER_EVENT_2   0x00000004
 
#define HIBERNATE_TAMPER_EVENT_3   0x00000008
 
#define HIBERNATE_TAMPER_EVENT_EXT_OSC   0x00010000
 

Functions

void HibernateGPIORetentionEnable (void)
 
void HibernateGPIORetentionDisable (void)
 
bool HibernateGPIORetentionGet (void)
 
void HibernateEnableExpClk (uint32_t ui32HibClk)
 
void HibernateDisable (void)
 
void HibernateRTCEnable (void)
 
void HibernateRTCDisable (void)
 
void HibernateWakeSet (uint32_t ui32WakeFlags)
 
uint32_t HibernateWakeGet (void)
 
void HibernateLowBatSet (uint32_t ui32LowBatFlags)
 
uint32_t HibernateLowBatGet (void)
 
void HibernateRTCSet (uint32_t ui32RTCValue)
 
uint32_t HibernateRTCGet (void)
 
void HibernateRTCMatchSet (uint32_t ui32Match, uint32_t ui32Value)
 
uint32_t HibernateRTCMatchGet (uint32_t ui32Match)
 
void HibernateRTCTrimSet (uint32_t ui32Trim)
 
uint32_t HibernateRTCTrimGet (void)
 
void HibernateDataSet (uint32_t *pui32Data, uint32_t ui32Count)
 
void HibernateDataGet (uint32_t *pui32Data, uint32_t ui32Count)
 
void HibernateRequest (void)
 
void HibernateIntEnable (uint32_t ui32IntFlags)
 
void HibernateIntDisable (uint32_t ui32IntFlags)
 
void HibernateIntRegister (void(*pfnHandler)(void))
 
void HibernateIntUnregister (void)
 
uint32_t HibernateIntStatus (bool bMasked)
 
void HibernateIntClear (uint32_t ui32IntFlags)
 
uint32_t HibernateIsActive (void)
 
void HibernateRTCSSMatchSet (uint32_t ui32Match, uint32_t ui32Value)
 
uint32_t HibernateRTCSSMatchGet (uint32_t ui32Match)
 
uint32_t HibernateRTCSSGet (void)
 
void HibernateClockConfig (uint32_t ui32Config)
 
void HibernateBatCheckStart (void)
 
uint32_t HibernateBatCheckDone (void)
 
void HibernateCounterMode (uint32_t ui32Config)
 
void HibernateCalendarSet (struct tm *psTime)
 
int HibernateCalendarGet (struct tm *psTime)
 
void HibernateCalendarMatchSet (uint32_t ui32Index, struct tm *psTime)
 
void HibernateCalendarMatchGet (uint32_t ui32Index, struct tm *psTime)
 
void HibernateTamperEnable (void)
 
void HibernateTamperEventsConfig (uint32_t ui32Config)
 
bool HibernateTamperEventsGet (uint32_t ui32Index, uint32_t *pui32RTC, uint32_t *pui32Event)
 
void HibernateTamperEventsClear (void)
 
void HibernateTamperEventsClearNoLock (void)
 
void HibernateTamperUnLock (void)
 
void HibernateTamperLock (void)
 
void HibernateTamperDisable (void)
 
void HibernateTamperIOEnable (uint32_t ui32Input, uint32_t ui32Config)
 
void HibernateTamperIODisable (uint32_t ui32Input)
 
uint32_t HibernateTamperStatusGet (void)
 
void HibernateTamperExtOscRecover (void)
 
bool HibernateTamperExtOscValid (void)
 

Macro Definition Documentation

#define HIBERNATE_COUNTER_12HR   0x00000001

Definition at line 115 of file hibernate.h.

#define HIBERNATE_COUNTER_24HR   0x00000005

Definition at line 116 of file hibernate.h.

#define HIBERNATE_COUNTER_RTC   0x00000000

Definition at line 114 of file hibernate.h.

#define HIBERNATE_INT_GPIO_WAKE   0x00000020

Definition at line 87 of file hibernate.h.

Referenced by HibernateIntClear(), HibernateIntDisable(), and HibernateIntEnable().

#define HIBERNATE_INT_LOW_BAT   0x00000004

Definition at line 91 of file hibernate.h.

Referenced by HibernateIntClear(), HibernateIntDisable(), and HibernateIntEnable().

#define HIBERNATE_INT_PIN_WAKE   0x00000008

Definition at line 90 of file hibernate.h.

Referenced by HibernateIntClear(), HibernateIntDisable(), and HibernateIntEnable().

#define HIBERNATE_INT_RESET_WAKE   0x00000040

Definition at line 85 of file hibernate.h.

Referenced by HibernateIntClear(), HibernateIntDisable(), and HibernateIntEnable().

#define HIBERNATE_INT_RTC_MATCH_0   0x00000001

Definition at line 92 of file hibernate.h.

Referenced by HibernateIntClear(), HibernateIntDisable(), and HibernateIntEnable().

#define HIBERNATE_INT_VDDFAIL   0x00000080

Definition at line 84 of file hibernate.h.

Referenced by HibernateIntClear(), HibernateIntDisable(), and HibernateIntEnable().

#define HIBERNATE_INT_WR_COMPLETE   0x00000010

Definition at line 88 of file hibernate.h.

Referenced by HibernateIntClear(), HibernateIntDisable(), and HibernateIntEnable().

#define HIBERNATE_LOW_BAT_1_9V   0x00000000

Definition at line 74 of file hibernate.h.

#define HIBERNATE_LOW_BAT_2_1V   0x00002000

Definition at line 75 of file hibernate.h.

#define HIBERNATE_LOW_BAT_2_3V   0x00004000

Definition at line 76 of file hibernate.h.

#define HIBERNATE_LOW_BAT_2_5V   0x00006000

Definition at line 77 of file hibernate.h.

#define HIBERNATE_LOW_BAT_ABORT   0x000000A0

Definition at line 73 of file hibernate.h.

Referenced by HibernateLowBatGet(), and HibernateLowBatSet().

#define HIBERNATE_LOW_BAT_DETECT   0x00000020

Definition at line 71 of file hibernate.h.

#define HIBERNATE_OSC_DISABLE   0x00010000

Definition at line 104 of file hibernate.h.

Referenced by HibernateClockConfig().

#define HIBERNATE_OSC_HIGHDRIVE   0x00020000

Definition at line 103 of file hibernate.h.

Referenced by HibernateClockConfig().

#define HIBERNATE_OSC_LFIOSC   0x00080000

Definition at line 101 of file hibernate.h.

Referenced by HibernateClockConfig().

#define HIBERNATE_OSC_LOWDRIVE   0x00000000

Definition at line 102 of file hibernate.h.

Referenced by HibernateClockConfig().

#define HIBERNATE_OUT_ALT1CLK   0x00000002

Definition at line 107 of file hibernate.h.

Referenced by HibernateClockConfig().

#define HIBERNATE_OUT_SYSCLK   0x00000001

Definition at line 106 of file hibernate.h.

Referenced by HibernateClockConfig().

#define HIBERNATE_OUT_WRSTALL   0x20000000

Definition at line 105 of file hibernate.h.

#define HIBERNATE_TAMPER_EVENT_0   0x00000001

Definition at line 179 of file hibernate.h.

#define HIBERNATE_TAMPER_EVENT_1   0x00000002

Definition at line 181 of file hibernate.h.

#define HIBERNATE_TAMPER_EVENT_2   0x00000004

Definition at line 183 of file hibernate.h.

#define HIBERNATE_TAMPER_EVENT_3   0x00000008

Definition at line 185 of file hibernate.h.

#define HIBERNATE_TAMPER_EVENT_EXT_OSC   0x00010000

Definition at line 187 of file hibernate.h.

#define HIBERNATE_TAMPER_EVENTS_ERASE_ALL_HIB_MEM   0x00000300

Definition at line 133 of file hibernate.h.

#define HIBERNATE_TAMPER_EVENTS_ERASE_HIGH_HIB_MEM   0x00000200

Definition at line 131 of file hibernate.h.

#define HIBERNATE_TAMPER_EVENTS_ERASE_LOW_HIB_MEM   0x00000100

Definition at line 129 of file hibernate.h.

#define HIBERNATE_TAMPER_EVENTS_HIB_WAKE   0x00000800

Definition at line 125 of file hibernate.h.

#define HIBERNATE_TAMPER_EVENTS_NO_ERASE_HIB_MEM   0x00000000

Definition at line 127 of file hibernate.h.

#define HIBERNATE_TAMPER_EVENTS_NO_HIB_WAKE   0x00000000

Definition at line 123 of file hibernate.h.

#define HIBERNATE_TAMPER_IO_MATCH_LONG   0x00000008

Definition at line 171 of file hibernate.h.

#define HIBERNATE_TAMPER_IO_MATCH_SHORT   0x00000000

Definition at line 169 of file hibernate.h.

#define HIBERNATE_TAMPER_IO_TRIGGER_HIGH   0x00000002

Definition at line 163 of file hibernate.h.

#define HIBERNATE_TAMPER_IO_TRIGGER_LOW   0x00000000

Definition at line 161 of file hibernate.h.

#define HIBERNATE_TAMPER_IO_WPU_DISABLED   0x00000000

Definition at line 165 of file hibernate.h.

#define HIBERNATE_TAMPER_IO_WPU_ENABLED   0x00000004

Definition at line 167 of file hibernate.h.

#define HIBERNATE_TAMPER_STATUS_ACTIVE   0x00000020

Definition at line 143 of file hibernate.h.

#define HIBERNATE_TAMPER_STATUS_EVENT   0x00000040

Definition at line 145 of file hibernate.h.

#define HIBERNATE_TAMPER_STATUS_EXT_OSC_ACTIVE   0x00000008

Definition at line 147 of file hibernate.h.

Referenced by HibernateTamperExtOscValid(), and HibernateTamperStatusGet().

#define HIBERNATE_TAMPER_STATUS_EXT_OSC_FAILED   0x00000001

Definition at line 153 of file hibernate.h.

#define HIBERNATE_TAMPER_STATUS_EXT_OSC_INACTIVE   0x00000002

Definition at line 149 of file hibernate.h.

#define HIBERNATE_TAMPER_STATUS_EXT_OSC_VALID   0x00000004

Definition at line 151 of file hibernate.h.

Referenced by HibernateTamperExtOscValid(), and HibernateTamperStatusGet().

#define HIBERNATE_TAMPER_STATUS_INACTIVE   0x00000010

Definition at line 141 of file hibernate.h.

Referenced by HibernateTamperStatusGet().

#define HIBERNATE_WAKE_GPIO   0x00000010

Definition at line 62 of file hibernate.h.

Referenced by HibernateWakeGet(), and HibernateWakeSet().

#define HIBERNATE_WAKE_LOW_BAT   0x00000200

Definition at line 61 of file hibernate.h.

Referenced by HibernateWakeGet(), and HibernateWakeSet().

#define HIBERNATE_WAKE_PIN   0x00000010

Definition at line 59 of file hibernate.h.

Referenced by HibernateWakeGet(), and HibernateWakeSet().

#define HIBERNATE_WAKE_RESET   0x00100010

Definition at line 63 of file hibernate.h.

Referenced by HibernateWakeGet(), and HibernateWakeSet().

#define HIBERNATE_WAKE_RTC   0x00000008

Definition at line 60 of file hibernate.h.

Referenced by HibernateWakeGet(), and HibernateWakeSet().

#define HIBERNATE_WAKE_TAMPER   0x08000010

Definition at line 64 of file hibernate.h.