EFM32 Pearl Gecko Software Documentation  efm32pg1-doc-4.2.1
ACMP_CapsenseInit_TypeDef Struct Reference

#include <em_acmp.h>

Data Fields

bool fullBias
 
uint32_t biasProg
 
ACMP_HysteresisLevel_TypeDef hysteresisLevel_0
 
ACMP_HysteresisLevel_TypeDef hysteresisLevel_1
 
ACMP_CapsenseResistor_TypeDef resistor
 
uint32_t vddLevelHigh
 
uint32_t vddLevelLow
 
bool enable
 

Detailed Description

Capsense initialization structure.

Definition at line 472 of file em_acmp.h.

Field Documentation

bool ACMP_CapsenseInit_TypeDef::fullBias

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

Definition at line 476 of file em_acmp.h.

Referenced by ACMP_CapsenseInit(), and CAPLESENSE_setupACMP().

uint32_t ACMP_CapsenseInit_TypeDef::biasProg

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

Definition at line 486 of file em_acmp.h.

Referenced by ACMP_CapsenseInit().

ACMP_HysteresisLevel_TypeDef ACMP_CapsenseInit_TypeDef::hysteresisLevel_0

Hysteresis level when ACMP output is 0

Definition at line 499 of file em_acmp.h.

Referenced by ACMP_CapsenseInit().

ACMP_HysteresisLevel_TypeDef ACMP_CapsenseInit_TypeDef::hysteresisLevel_1

Hysteresis level when ACMP output is 1

Definition at line 502 of file em_acmp.h.

Referenced by ACMP_CapsenseInit().

ACMP_CapsenseResistor_TypeDef ACMP_CapsenseInit_TypeDef::resistor

Resistor used in the capacative sensing circuit. For values see your device datasheet.

Definition at line 507 of file em_acmp.h.

Referenced by ACMP_CapsenseInit().

uint32_t ACMP_CapsenseInit_TypeDef::vddLevelHigh

This value configures the upper voltage threshold of the capsense oscillation rail.

The voltage threshold is calculated as Vdd * (vddLevelHigh + 1) / 64

Definition at line 527 of file em_acmp.h.

Referenced by ACMP_CapsenseInit().

uint32_t ACMP_CapsenseInit_TypeDef::vddLevelLow

This value configures the lower voltage threshold of the capsense oscillation rail.

The voltage threshold is calculated as Vdd * (vddLevelLow + 1) / 64

Definition at line 536 of file em_acmp.h.

Referenced by ACMP_CapsenseInit().

bool ACMP_CapsenseInit_TypeDef::enable

If true, ACMP is being enabled after configuration.

Definition at line 540 of file em_acmp.h.

Referenced by ACMP_CapsenseInit().


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