ACMP_CapsenseInit_TypeDef Struct Reference

Capsense initialization structure.

#include <em_acmp.h>

Data Fields

bool fullBias
Full-bias current.
bool halfBias
Half-bias current.
uint32_t biasProg
Bias current.
ACMP_WarmTime_TypeDef warmTime
Warmup time, which is measured in HFPERCLK / HFPERCCLK cycles and should be about 10 us in wall clock time.
ACMP_HysteresisLevel_TypeDef hysteresisLevel
Hysteresis level.
ACMP_CapsenseResistor_TypeDef resistor
A resistor used in the capacitive sensing circuit.
bool lowPowerReferenceEnabled
Low-power reference enabled.
uint32_t vddLevel
VDD reference value.
bool enable
If true, ACMP is enabled after configuration.

Capsense initialization structure.

Field Documentation

fullBias

bool ACMP_CapsenseInit_TypeDef::fullBias

Full-bias current.

See the ACMP chapter about bias and response time in the reference manual for details.

halfBias

bool ACMP_CapsenseInit_TypeDef::halfBias

Half-bias current.

See the ACMP chapter about bias and response time in the reference manual for details.

biasProg

uint32_t ACMP_CapsenseInit_TypeDef::biasProg

Bias current.

See the ACMP chapter about bias and response time in the reference manual for details.

warmTime

ACMP_WarmTime_TypeDef ACMP_CapsenseInit_TypeDef::warmTime

Warmup time, which is measured in HFPERCLK / HFPERCCLK cycles and should be about 10 us in wall clock time.

hysteresisLevel

ACMP_HysteresisLevel_TypeDef ACMP_CapsenseInit_TypeDef::hysteresisLevel

Hysteresis level.

resistor

ACMP_CapsenseResistor_TypeDef ACMP_CapsenseInit_TypeDef::resistor

A resistor used in the capacitive sensing circuit.

For values see the device data sheet.

lowPowerReferenceEnabled

bool ACMP_CapsenseInit_TypeDef::lowPowerReferenceEnabled

Low-power reference enabled.

This setting, if enabled, reduces the power used by VDD and bandgap references.

vddLevel

uint32_t ACMP_CapsenseInit_TypeDef::vddLevel

VDD reference value.

VDD_SCALED = (VDD * VDDLEVEL) / 63. Valid values are in the 0-63 range.

enable

bool ACMP_CapsenseInit_TypeDef::enable

If true, ACMP is enabled after configuration.