EFM32 Wonder Gecko Software Documentation  efm32wg-doc-5.1.2
VCMP_Init_TypeDef Struct Reference

Detailed Description

VCMP Initialization structure

Definition at line 96 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 halfBias setting, above, see reference manual

Definition at line 102 of file em_vcmp.h.

Referenced by VCMP_Init().

bool VCMP_Init_TypeDef::enable

Enable VCMP after configuration

Definition at line 119 of file em_vcmp.h.

Referenced by VCMP_Init(), and VDDCHECK_LowVoltage().

bool VCMP_Init_TypeDef::halfBias

If set to true, will reduce by half the bias current

Definition at line 99 of file em_vcmp.h.

Referenced by VCMP_Init().

VCMP_Hysteresis_TypeDef VCMP_Init_TypeDef::hyst

Hysteresis configuration

Definition at line 110 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 112 of file em_vcmp.h.

Referenced by VCMP_Init().

bool VCMP_Init_TypeDef::irqFalling

Enable interrupt for falling edge

Definition at line 104 of file em_vcmp.h.

Referenced by VCMP_Init().

bool VCMP_Init_TypeDef::irqRising

Enable interrupt for rising edge

Definition at line 106 of file em_vcmp.h.

Referenced by VCMP_Init().

bool VCMP_Init_TypeDef::lowPowerRef

Enable low power mode for VDD and bandgap reference

Definition at line 114 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 117 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 108 of file em_vcmp.h.

Referenced by VCMP_Init(), and VDDCHECK_LowVoltage().


The documentation for this struct was generated from the following file: