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_ControlACMP_TypeDef acmp0Mode
Configure how LESENSE controls ACMP 0.
LESENSE_ControlACMP_TypeDef acmp1Mode
Configure how LESENSE controls ACMP 1.
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.

LESENSE peripheral control descriptor structure.

Field Documentation

dacCh0Data

LESENSE_ControlDACData_TypeDef LESENSE_PerCtrlDesc_TypeDef::dacCh0Data

Configure DAC channel 0 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.

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.