VCMP_Init_TypeDef Struct ReferenceEMLIB > VCMP

VCMP Initialization structure.

Definition at line 93 of file em_vcmp.h .

#include < em_vcmp.h >

Data Fields

int biasProg
bool enable
bool halfBias
VCMP_Hysteresis_TypeDef hyst
int inactive
bool irqFalling
bool irqRising
bool lowPowerRef
int triggerLevel
VCMP_WarmTime_TypeDef warmup

Field Documentation

int VCMP_Init_TypeDef::biasProg

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

Definition at line 98 of file em_vcmp.h .

Referenced by VCMP_Init() .

bool VCMP_Init_TypeDef::enable

Enable VCMP after configuration.

Definition at line 115 of file em_vcmp.h .

Referenced by VCMP_Init() , and VDDCHECK_LowVoltage() .

bool VCMP_Init_TypeDef::halfBias

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

Definition at line 95 of file em_vcmp.h .

Referenced by VCMP_Init() .

VCMP_Hysteresis_TypeDef VCMP_Init_TypeDef::hyst

Hysteresis configuration

Definition at line 106 of file em_vcmp.h .

Referenced by VCMP_Init() .

int VCMP_Init_TypeDef::inactive

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

Definition at line 108 of file em_vcmp.h .

Referenced by VCMP_Init() .

bool VCMP_Init_TypeDef::irqFalling

Enable interrupt for falling edge.

Definition at line 100 of file em_vcmp.h .

Referenced by VCMP_Init() .

bool VCMP_Init_TypeDef::irqRising

Enable interrupt for rising edge.

Definition at line 102 of file em_vcmp.h .

Referenced by VCMP_Init() .

bool VCMP_Init_TypeDef::lowPowerRef

Enable low power mode for VDD and band gap reference.

Definition at line 110 of file em_vcmp.h .

Referenced by VCMP_Init() , and VDDCHECK_LowVoltage() .

int VCMP_Init_TypeDef::triggerLevel

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

Definition at line 113 of file em_vcmp.h .

Referenced by VCMP_Init() , and VDDCHECK_LowVoltage() .

VCMP_WarmTime_TypeDef VCMP_Init_TypeDef::warmup

Warm-up time in clock cycles.

Definition at line 104 of file em_vcmp.h .

Referenced by VCMP_Init() , and VDDCHECK_LowVoltage() .


The documentation for this struct was generated from the following file:
  • C:/cygwin/home/caamunds/work/super/platform/emlib/inc/ em_vcmp.h