VCMP Initialization structure.
Public Attributes#
If set to true, reduces the bias current by half.
BIAS current configuration, depends on Half Bias setting above, see reference manual for more information.
Enable interrupt for falling edge.
Enable interrupt for rising edge.
Warm-up time in clock cycles.
Hysteresis configuration.
Output value when comparator is inactive, should be 0 or 1.
Enable low power mode for VDD and band gap reference.
Trigger level, according to formula: VDD Trigger Level = 1.667V + 0.034V x triggerLevel.
Enable VCMP after configuration.
Public Attribute Documentation#
halfBias#
bool VCMP_Init_TypeDef::halfBias
If set to true, reduces the bias current by half.
89
of file platform/emlib/inc/em_vcmp.h
biasProg#
int VCMP_Init_TypeDef::biasProg
BIAS current configuration, depends on Half Bias setting above, see reference manual for more information.
92
of file platform/emlib/inc/em_vcmp.h
irqFalling#
bool VCMP_Init_TypeDef::irqFalling
Enable interrupt for falling edge.
94
of file platform/emlib/inc/em_vcmp.h
irqRising#
bool VCMP_Init_TypeDef::irqRising
Enable interrupt for rising edge.
96
of file platform/emlib/inc/em_vcmp.h
warmup#
VCMP_WarmTime_TypeDef VCMP_Init_TypeDef::warmup
Warm-up time in clock cycles.
98
of file platform/emlib/inc/em_vcmp.h
hyst#
VCMP_Hysteresis_TypeDef VCMP_Init_TypeDef::hyst
Hysteresis configuration.
100
of file platform/emlib/inc/em_vcmp.h
inactive#
int VCMP_Init_TypeDef::inactive
Output value when comparator is inactive, should be 0 or 1.
102
of file platform/emlib/inc/em_vcmp.h
lowPowerRef#
bool VCMP_Init_TypeDef::lowPowerRef
Enable low power mode for VDD and band gap reference.
104
of file platform/emlib/inc/em_vcmp.h
triggerLevel#
int VCMP_Init_TypeDef::triggerLevel
Trigger level, according to formula: VDD Trigger Level = 1.667V + 0.034V x triggerLevel.
107
of file platform/emlib/inc/em_vcmp.h
enable#
bool VCMP_Init_TypeDef::enable
Enable VCMP after configuration.
109
of file platform/emlib/inc/em_vcmp.h