CC26xx Driver Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
aon_batmon.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <inc/hw_types.h>
#include <inc/hw_memmap.h>
#include <inc/hw_aon_batmon.h>
#include <driverlib/debug.h>

Go to the source code of this file.

Macros

#define AON_BATMON_CYCLE_32   AON_BATMON_MEASCFG_PER_32CYC
 
#define AON_BATMON_CYCLE_16   AON_BATMON_MEASCFG_PER_16CYC
 
#define AON_BATMON_CYCLE_8   AON_BATMON_MEASCFG_PER_8CYC
 
#define AON_BATMON_CYCLE_CONT   AON_BATMON_MEASCFG_PER_CONT
 

Functions

__STATIC_INLINE void AONBatMonEnable (void)
 Enable the temperatur and battery monitoring. More...
 
__STATIC_INLINE void AONBatMonDisable (void)
 Disable the temperatur and battery monitoring. More...
 
__STATIC_INLINE void AONBatMonMeasurementCycleSet (uint32_t ui32Cycle)
 Adjust the measurement cycle for the temperature and the battery voltage. More...
 
__STATIC_INLINE uint32_t AONBatMonMeasurementCycleGet (void)
 Get the measurement cycle for the temperature and the battery voltage. More...
 
__STATIC_INLINE void AONBatMonBatteryTrimSet (uint32_t ui32TrimP0, uint32_t ui32TrimP1)
 Set the trim values for the battery voltage calculation. More...
 
__STATIC_INLINE void AONBatMonTemperatureTrimSet (uint32_t ui32TrimP0, uint32_t ui32TrimP1, uint32_t ui32TrimP2)
 Set the trim values for the temperature calculation. More...
 
__STATIC_INLINE uint32_t AONBatMonTemperatureGet (void)
 Get the current temperature measurement. More...
 
int32_t AON_BatmonTempGetDegC (void)
 Get the current temperature measurement as a signed value in Deg Celsius. More...
 
__STATIC_INLINE uint32_t AONBatMonBatteryVoltageGet (void)
 Get the battery monitor measurement. More...
 
__STATIC_INLINE bool AONBatMonNewBatteryMeasureReady (void)
 Check if battery monitor measurement has changed. More...
 
__STATIC_INLINE bool AONBatMonNewTempMeasureReady (void)
 Check if temperature monitor measurement has changed. More...