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.


Definition at line 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.


Definition at line 92 of file platform/emlib/inc/em_vcmp.h

irqFalling#

bool VCMP_Init_TypeDef::irqFalling

Enable interrupt for falling edge.


Definition at line 94 of file platform/emlib/inc/em_vcmp.h

irqRising#

bool VCMP_Init_TypeDef::irqRising

Enable interrupt for rising edge.


Definition at line 96 of file platform/emlib/inc/em_vcmp.h

warmup#

VCMP_WarmTime_TypeDef VCMP_Init_TypeDef::warmup

Warm-up time in clock cycles.


Definition at line 98 of file platform/emlib/inc/em_vcmp.h

hyst#

VCMP_Hysteresis_TypeDef VCMP_Init_TypeDef::hyst

Hysteresis configuration.


Definition at line 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.


Definition at line 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.


Definition at line 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.


Definition at line 107 of file platform/emlib/inc/em_vcmp.h

enable#

bool VCMP_Init_TypeDef::enable

Enable VCMP after configuration.


Definition at line 109 of file platform/emlib/inc/em_vcmp.h