LESENSE_PerCtrlDesc_TypeDef Struct Reference

LESENSE peripheral control descriptor structure.

#include <em_lesense.h>

Data Fields

LESENSE_ControlDACData_TypeDef dacCh0Data
Configure DAC channel 0 data control.
LESENSE_ControlDACData_TypeDef dacCh1Data
Configure DAC channel 1 data control.
LESENSE_ControlACMP_TypeDef acmp0Mode
Configure how LESENSE controls ACMP 0.
LESENSE_ControlACMP_TypeDef acmp1Mode
Configure how LESENSE controls ACMP 1.
LESENSE_WarmupMode_TypeDef warmupMode
Configure how LESENSE controls ACMPs and DAC in idle mode.
bool dacScan
When set to true the DAC is only enabled once for each scan.
bool dacStartupHalf
When set to true the DAC is started a half clock cycle before sensor interaction starts.
bool dacCh0En
When set to true, LESENSE controls DAC channel 0.
bool dacCh1En
When set to true, LESENSE controls DAC channel 1.

LESENSE peripheral control descriptor structure.

Field Documentation

dacCh0Data

LESENSE_ControlDACData_TypeDef LESENSE_PerCtrlDesc_TypeDef::dacCh0Data

Configure DAC channel 0 data control.

dacCh1Data

LESENSE_ControlDACData_TypeDef LESENSE_PerCtrlDesc_TypeDef::dacCh1Data

Configure DAC channel 1 data control.

acmp0Mode

LESENSE_ControlACMP_TypeDef LESENSE_PerCtrlDesc_TypeDef::acmp0Mode

Configure how LESENSE controls ACMP 0.

acmp1Mode

LESENSE_ControlACMP_TypeDef LESENSE_PerCtrlDesc_TypeDef::acmp1Mode

Configure how LESENSE controls ACMP 1.

warmupMode

LESENSE_WarmupMode_TypeDef LESENSE_PerCtrlDesc_TypeDef::warmupMode

Configure how LESENSE controls ACMPs and DAC in idle mode.

dacScan

bool LESENSE_PerCtrlDesc_TypeDef::dacScan

When set to true the DAC is only enabled once for each scan.

When set to false the DAC is enabled before every channel measurement.

dacStartupHalf

bool LESENSE_PerCtrlDesc_TypeDef::dacStartupHalf

When set to true the DAC is started a half clock cycle before sensor interaction starts.

When set to false, a full clock cycle is used.

dacCh0En

bool LESENSE_PerCtrlDesc_TypeDef::dacCh0En

When set to true, LESENSE controls DAC channel 0.

dacCh1En

bool LESENSE_PerCtrlDesc_TypeDef::dacCh1En

When set to true, LESENSE controls DAC channel 1.