33 #define UTIL_SUPPLY_TYPE_UNKNOWN 0
34 #define UTIL_SUPPLY_TYPE_USB 1
35 #define UTIL_SUPPLY_TYPE_AA 2
36 #define UTIL_SUPPLY_TYPE_AAA 3
37 #define UTIL_SUPPLY_TYPE_CR2032 4
46 uint32_t UTIL_init ( void );
uint32_t UTIL_sleepInit(void)
Sets up the RTC timer used for sleep functions.
uint8_t UTIL_supplyGetType(void)
Returns the type of the power supply.
bool UTIL_isLowPower(void)
Checks if the current power supply has low power capability.
void UTIL_delay(uint32_t ms)
Delays number of msTick Systicks (1 ms)
uint32_t UTIL_waitForEvent(uint32_t timeout)
Delays number of milliseconds in sleep mode (EM2) using the RTC but but returns if an event wakes up ...
void UTIL_supplyGetCharacteristics(uint8_t *type, float *voltage, float *ir)
Retrieves the supply characteristic variables.
void UTIL_supplyProbe(void)
Probes the connected supply and determines its type. The results are stored in global variables...
void UTIL_sleep(uint32_t ms)
Delays number of milliseconds in sleep mode (EM2) using the RTC.
void UTIL_shutdown(void)
Enter lowest power shutdown mode, EM4S.