VCMP Initialization structure.

Public Attributes#

bool

If set to true, reduces the bias current by half.

int

BIAS current configuration, depends on Half Bias setting above, see reference manual for more information.

bool

Enable interrupt for falling edge.

bool

Enable interrupt for rising edge.

Warm-up time in clock cycles.

Hysteresis configuration.

int

Output value when comparator is inactive, should be 0 or 1.

bool

Enable low power mode for VDD and band gap reference.

int

Trigger level, according to formula: VDD Trigger Level = 1.667V + 0.034V x triggerLevel.

bool

Enable VCMP after configuration.

Public Attribute Documentation#

halfBias#

bool VCMP_Init_TypeDef::halfBias

If set to true, reduces the bias current by half.


biasProg#

int VCMP_Init_TypeDef::biasProg

BIAS current configuration, depends on Half Bias setting above, see reference manual for more information.


irqFalling#

bool VCMP_Init_TypeDef::irqFalling

Enable interrupt for falling edge.


irqRising#

bool VCMP_Init_TypeDef::irqRising

Enable interrupt for rising edge.


warmup#

VCMP_WarmTime_TypeDef VCMP_Init_TypeDef::warmup

Warm-up time in clock cycles.


hyst#

VCMP_Hysteresis_TypeDef VCMP_Init_TypeDef::hyst

Hysteresis configuration.


inactive#

int VCMP_Init_TypeDef::inactive

Output value when comparator is inactive, should be 0 or 1.


lowPowerRef#

bool VCMP_Init_TypeDef::lowPowerRef

Enable low power mode for VDD and band gap reference.


triggerLevel#

int VCMP_Init_TypeDef::triggerLevel

Trigger level, according to formula: VDD Trigger Level = 1.667V + 0.034V x triggerLevel.


enable#

bool VCMP_Init_TypeDef::enable

Enable VCMP after configuration.