37 #if defined(VCMP_COUNT) && (VCMP_COUNT > 0)
123 #define VCMP_INIT_DEFAULT \
129 vcmpWarmTime4Cycles, \
177 return (uint32_t)((v - (float)1.667) / (float)0.034);
338 return VCMP->IF & tmp;
__STATIC_INLINE void VCMP_IntEnable(uint32_t flags)
Enable one or more VCMP interrupts.
#define _VCMP_CTRL_WARMTIME_128CYCLES
void VCMP_Init(const VCMP_Init_TypeDef *vcmpInit)
Configure and enable Voltage Comparator.
__STATIC_INLINE void VCMP_IntSet(uint32_t flags)
Set one or more pending VCMP interrupts from SW.
#define VCMP_STATUS_VCMPOUT
#define _VCMP_CTRL_WARMTIME_16CYCLES
VCMP_Hysteresis_TypeDef hyst
__STATIC_INLINE bool VCMP_VDDHigher(void)
Returns true, if Voltage Comparator indicated VDD > trigger level, else false.
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
__STATIC_INLINE void VCMP_IntClear(uint32_t flags)
Clear one or more pending VCMP interrupts.
__STATIC_INLINE void VCMP_Disable(void)
Disable Voltage Comparator.
#define _VCMP_CTRL_WARMTIME_4CYCLES
__STATIC_INLINE void VCMP_IntDisable(uint32_t flags)
Disable one or more VCMP interrupts.
void VCMP_TriggerSet(int level)
Configure trigger level of voltage comparator.
__STATIC_INLINE bool VCMP_Ready(void)
VCMP output is ready.
#define _VCMP_CTRL_WARMTIME_256CYCLES
#define _VCMP_CTRL_WARMTIME_512CYCLES
void VCMP_LowPowerRefSet(bool enable)
Enable or disable Low Power Reference setting.
__STATIC_INLINE void VCMP_Enable(void)
Enable Voltage Comparator.
__STATIC_INLINE uint32_t VCMP_IntGet(void)
Get pending VCMP interrupt flags.
#define _VCMP_CTRL_WARMTIME_64CYCLES
#define _VCMP_CTRL_WARMTIME_8CYCLES
__STATIC_INLINE uint32_t VCMP_VoltageToLevel(float v)
Calculate voltage to trigger level.
VCMP_WarmTime_TypeDef warmup
__STATIC_INLINE bool VCMP_VDDLower(void)
Returns true, if Voltage Comparator indicated VDD < trigger level, else false.
#define VCMP_STATUS_VCMPACT
#define _VCMP_CTRL_WARMTIME_32CYCLES
__STATIC_INLINE uint32_t VCMP_IntGetEnabled(void)
Get enabled and pending VCMP interrupt flags.