47 #ifndef __AON_BATMON_H__
48 #define __AON_BATMON_H__
63 #include <inc/hw_types.h>
64 #include <inc/hw_memmap.h>
65 #include <inc/hw_aon_batmon.h>
195 __STATIC_INLINE uint32_t
314 __STATIC_INLINE uint32_t
317 uint32_t ui32CurrentTemp;
366 __STATIC_INLINE uint32_t
369 uint32_t ui32CurrentBattery;
478 #endif // __AON_BATMON_H__
__STATIC_INLINE uint32_t AONBatMonTemperatureGet(void)
Get the current temperature measurement.
__STATIC_INLINE uint32_t AONBatMonMeasurementCycleGet(void)
Get the measurement cycle for the temperature and the battery voltage.
#define AON_BATMON_CYCLE_32
__STATIC_INLINE void AONBatMonDisable(void)
Disable the temperatur and battery monitoring.
#define AON_BATMON_CYCLE_16
int32_t AON_BatmonTempGetDegC(void)
Get the current temperature measurement as a signed value in Deg Celsius.
__STATIC_INLINE void AONBatMonBatteryTrimSet(uint32_t ui32TrimP0, uint32_t ui32TrimP1)
Set the trim values for the battery voltage calculation.
__STATIC_INLINE bool AONBatMonNewTempMeasureReady(void)
Check if temperature monitor measurement has changed.
__STATIC_INLINE void AONBatMonEnable(void)
Enable the temperatur and battery monitoring.
__STATIC_INLINE bool AONBatMonNewBatteryMeasureReady(void)
Check if battery monitor measurement has changed.
#define AON_BATMON_CYCLE_8
__STATIC_INLINE void AONBatMonMeasurementCycleSet(uint32_t ui32Cycle)
Adjust the measurement cycle for the temperature and the battery voltage.
__STATIC_INLINE void AONBatMonTemperatureTrimSet(uint32_t ui32TrimP0, uint32_t ui32TrimP1, uint32_t ui32TrimP2)
Set the trim values for the temperature calculation.
__STATIC_INLINE uint32_t AONBatMonBatteryVoltageGet(void)
Get the battery monitor measurement.
#define AON_BATMON_CYCLE_CONT