Macros | Functions
hibernate.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <time.h>

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_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

§ HIBERNATE_WAKE_PIN

#define HIBERNATE_WAKE_PIN   0x00000010

§ HIBERNATE_WAKE_RTC

#define HIBERNATE_WAKE_RTC   0x00000008

§ HIBERNATE_WAKE_LOW_BAT

#define HIBERNATE_WAKE_LOW_BAT   0x00000200

§ HIBERNATE_WAKE_GPIO

#define HIBERNATE_WAKE_GPIO   0x00000010

§ HIBERNATE_WAKE_RESET

#define HIBERNATE_WAKE_RESET   0x00100010

§ HIBERNATE_LOW_BAT_DETECT

#define HIBERNATE_LOW_BAT_DETECT   0x00000020

§ HIBERNATE_LOW_BAT_ABORT

#define HIBERNATE_LOW_BAT_ABORT   0x000000A0

§ HIBERNATE_LOW_BAT_1_9V

#define HIBERNATE_LOW_BAT_1_9V   0x00000000

§ HIBERNATE_LOW_BAT_2_1V

#define HIBERNATE_LOW_BAT_2_1V   0x00002000

§ HIBERNATE_LOW_BAT_2_3V

#define HIBERNATE_LOW_BAT_2_3V   0x00004000

§ HIBERNATE_LOW_BAT_2_5V

#define HIBERNATE_LOW_BAT_2_5V   0x00006000

§ HIBERNATE_INT_VDDFAIL

#define HIBERNATE_INT_VDDFAIL   0x00000080

§ HIBERNATE_INT_RESET_WAKE

#define HIBERNATE_INT_RESET_WAKE   0x00000040

§ HIBERNATE_INT_GPIO_WAKE

#define HIBERNATE_INT_GPIO_WAKE   0x00000020

§ HIBERNATE_INT_WR_COMPLETE

#define HIBERNATE_INT_WR_COMPLETE   0x00000010

§ HIBERNATE_INT_PIN_WAKE

#define HIBERNATE_INT_PIN_WAKE   0x00000008

§ HIBERNATE_INT_LOW_BAT

#define HIBERNATE_INT_LOW_BAT   0x00000004

§ HIBERNATE_INT_RTC_MATCH_0

#define HIBERNATE_INT_RTC_MATCH_0   0x00000001

§ HIBERNATE_OSC_LFIOSC

#define HIBERNATE_OSC_LFIOSC   0x00080000

Referenced by HibernateClockConfig().

§ HIBERNATE_OSC_LOWDRIVE

#define HIBERNATE_OSC_LOWDRIVE   0x00000000

Referenced by HibernateClockConfig().

§ HIBERNATE_OSC_HIGHDRIVE

#define HIBERNATE_OSC_HIGHDRIVE   0x00020000

Referenced by HibernateClockConfig().

§ HIBERNATE_OSC_DISABLE

#define HIBERNATE_OSC_DISABLE   0x00010000

Referenced by HibernateClockConfig().

§ HIBERNATE_OUT_WRSTALL

#define HIBERNATE_OUT_WRSTALL   0x20000000

§ HIBERNATE_OUT_SYSCLK

#define HIBERNATE_OUT_SYSCLK   0x00000001

§ HIBERNATE_OUT_ALT1CLK

#define HIBERNATE_OUT_ALT1CLK   0x00000002

§ HIBERNATE_COUNTER_RTC

#define HIBERNATE_COUNTER_RTC   0x00000000

§ HIBERNATE_COUNTER_12HR

#define HIBERNATE_COUNTER_12HR   0x00000001

§ HIBERNATE_COUNTER_24HR

#define HIBERNATE_COUNTER_24HR   0x00000005

§ HIBERNATE_TAMPER_EVENTS_NO_HIB_WAKE

#define HIBERNATE_TAMPER_EVENTS_NO_HIB_WAKE   0x00000000

§ HIBERNATE_TAMPER_EVENTS_HIB_WAKE

#define HIBERNATE_TAMPER_EVENTS_HIB_WAKE   0x00000800

§ HIBERNATE_TAMPER_EVENTS_NO_ERASE_HIB_MEM

#define HIBERNATE_TAMPER_EVENTS_NO_ERASE_HIB_MEM   0x00000000

§ HIBERNATE_TAMPER_EVENTS_ERASE_LOW_HIB_MEM

#define HIBERNATE_TAMPER_EVENTS_ERASE_LOW_HIB_MEM   0x00000100

§ HIBERNATE_TAMPER_EVENTS_ERASE_HIGH_HIB_MEM

#define HIBERNATE_TAMPER_EVENTS_ERASE_HIGH_HIB_MEM   0x00000200

§ HIBERNATE_TAMPER_EVENTS_ERASE_ALL_HIB_MEM

#define HIBERNATE_TAMPER_EVENTS_ERASE_ALL_HIB_MEM   0x00000300

§ HIBERNATE_TAMPER_STATUS_INACTIVE

#define HIBERNATE_TAMPER_STATUS_INACTIVE   0x00000010

§ HIBERNATE_TAMPER_STATUS_ACTIVE

#define HIBERNATE_TAMPER_STATUS_ACTIVE   0x00000020

§ HIBERNATE_TAMPER_STATUS_EVENT

#define HIBERNATE_TAMPER_STATUS_EVENT   0x00000040

§ HIBERNATE_TAMPER_STATUS_EXT_OSC_ACTIVE

#define HIBERNATE_TAMPER_STATUS_EXT_OSC_ACTIVE   0x00000008

§ HIBERNATE_TAMPER_STATUS_EXT_OSC_INACTIVE

#define HIBERNATE_TAMPER_STATUS_EXT_OSC_INACTIVE   0x00000002

§ HIBERNATE_TAMPER_STATUS_EXT_OSC_VALID

#define HIBERNATE_TAMPER_STATUS_EXT_OSC_VALID   0x00000004

§ HIBERNATE_TAMPER_STATUS_EXT_OSC_FAILED

#define HIBERNATE_TAMPER_STATUS_EXT_OSC_FAILED   0x00000001

§ HIBERNATE_TAMPER_IO_TRIGGER_LOW

#define HIBERNATE_TAMPER_IO_TRIGGER_LOW   0x00000000

§ HIBERNATE_TAMPER_IO_TRIGGER_HIGH

#define HIBERNATE_TAMPER_IO_TRIGGER_HIGH   0x00000002

§ HIBERNATE_TAMPER_IO_WPU_DISABLED

#define HIBERNATE_TAMPER_IO_WPU_DISABLED   0x00000000

§ HIBERNATE_TAMPER_IO_WPU_ENABLED

#define HIBERNATE_TAMPER_IO_WPU_ENABLED   0x00000004

§ HIBERNATE_TAMPER_IO_MATCH_SHORT

#define HIBERNATE_TAMPER_IO_MATCH_SHORT   0x00000000

§ HIBERNATE_TAMPER_IO_MATCH_LONG

#define HIBERNATE_TAMPER_IO_MATCH_LONG   0x00000008

§ HIBERNATE_TAMPER_EVENT_0

#define HIBERNATE_TAMPER_EVENT_0   0x00000001

§ HIBERNATE_TAMPER_EVENT_1

#define HIBERNATE_TAMPER_EVENT_1   0x00000002

§ HIBERNATE_TAMPER_EVENT_2

#define HIBERNATE_TAMPER_EVENT_2   0x00000004

§ HIBERNATE_TAMPER_EVENT_3

#define HIBERNATE_TAMPER_EVENT_3   0x00000008

§ HIBERNATE_TAMPER_EVENT_EXT_OSC

#define HIBERNATE_TAMPER_EVENT_EXT_OSC   0x00010000
Copyright 2017, Texas Instruments Incorporated