Channel descriptor structure.
Public Attributes#
Set to enable scan channel CHx.
Set to enable CHx pin.
Enable/disable channel interrupts after configuring all the sensor channel parameters.
Configure channel pin mode for the excitation phase of the scan sequence.
Configure channel pin idle setup in LESENSE idle phase.
Set to use alternate excite pin for excitation.
Set to enable result from this channel being shifted into the decoder register.
Set to invert result bit stored in the SCANRES register.
Set to store counter value in the RAM (accessible via RESDATA) and make the comparison result available in the SCANRES register.
Select clock used for the excitation timing.
Select clock used for the sample delay timing.
Configure the excitation time.
Configure the sample delay.
Configure the measure delay.
Configure the ACMP threshold or the DAC data.
Select if the ACMP output, the ADC output or the counter output should be used in comparison.
Configure the interrupt generation mode for the CHx interrupt flag.
Configure the decision threshold for the sensor data comparison.
Select the mode for counter comparison.
Select the sensor evaluation mode.
Offset for IADC/ACMP interaction.
Public Attribute Documentation#
enaScanCh#
bool LESENSE_ChDesc_TypeDef::enaScanCh
Set to enable scan channel CHx.
1014
of file platform/emlib/inc/em_lesense.h
enaPin#
bool LESENSE_ChDesc_TypeDef::enaPin
Set to enable CHx pin.
1017
of file platform/emlib/inc/em_lesense.h
enaInt#
bool LESENSE_ChDesc_TypeDef::enaInt
Enable/disable channel interrupts after configuring all the sensor channel parameters.
1021
of file platform/emlib/inc/em_lesense.h
chPinExMode#
LESENSE_ChPinExMode_TypeDef LESENSE_ChDesc_TypeDef::chPinExMode
Configure channel pin mode for the excitation phase of the scan sequence.
Note: OPAOUT is only available on channels 2, 3, 4, and 5.
1025
of file platform/emlib/inc/em_lesense.h
chPinIdleMode#
LESENSE_ChPinIdleMode_TypeDef LESENSE_ChDesc_TypeDef::chPinIdleMode
Configure channel pin idle setup in LESENSE idle phase.
1028
of file platform/emlib/inc/em_lesense.h
useAltEx#
bool LESENSE_ChDesc_TypeDef::useAltEx
Set to use alternate excite pin for excitation.
1031
of file platform/emlib/inc/em_lesense.h
shiftRes#
bool LESENSE_ChDesc_TypeDef::shiftRes
Set to enable result from this channel being shifted into the decoder register.
1035
of file platform/emlib/inc/em_lesense.h
invRes#
bool LESENSE_ChDesc_TypeDef::invRes
Set to invert result bit stored in the SCANRES register.
1038
of file platform/emlib/inc/em_lesense.h
storeCntRes#
LESENSE_StoreSample_TypeDef LESENSE_ChDesc_TypeDef::storeCntRes
Set to store counter value in the RAM (accessible via RESDATA) and make the comparison result available in the SCANRES register.
1042
of file platform/emlib/inc/em_lesense.h
exClk#
LESENSE_ChClk_TypeDef LESENSE_ChDesc_TypeDef::exClk
Select clock used for the excitation timing.
1045
of file platform/emlib/inc/em_lesense.h
sampleClk#
LESENSE_ChClk_TypeDef LESENSE_ChDesc_TypeDef::sampleClk
Select clock used for the sample delay timing.
1048
of file platform/emlib/inc/em_lesense.h
exTime#
uint8_t LESENSE_ChDesc_TypeDef::exTime
Configure the excitation time.
Excitation will last exTime+1 excitation clock cycles. Valid range: 0-63 (6 bits).
1052
of file platform/emlib/inc/em_lesense.h
sampleDelay#
uint8_t LESENSE_ChDesc_TypeDef::sampleDelay
Configure the sample delay.
Sampling will occur after sampleDelay+1 sample clock cycles. Valid range: 0-127 (7 bits) or 0-255 (8 bits) depending on device.
1057
of file platform/emlib/inc/em_lesense.h
measDelay#
uint16_t LESENSE_ChDesc_TypeDef::measDelay
Configure the measure delay.
Sensor measuring is delayed for measDelay excitation clock cycles. Valid range: 0-127 (7 bits) or 0-1023 (10 bits) depending on device.
1062
of file platform/emlib/inc/em_lesense.h
acmpThres#
uint16_t LESENSE_ChDesc_TypeDef::acmpThres
Configure the ACMP threshold or the DAC data.
If perCtrl.dacCh0Data or perCtrl.dacCh1Data is set to lesenseDACIfData, acmpThres defines the 12-bit DAC data in the corresponding data register of DAC interface (DACn_CH0DATA and DACn_CH1DATA). In this case, the valid range is: 0-4095 (12 bits). If perCtrl.dacCh0Data or perCtrl.dacCh1Data is set to lesenseACMPThres, acmpThres defines the 6-bit Vdd scaling factor of ACMP negative input (VDDLEVEL in ACMP_INPUTSEL register). In this case, the valid range is: 0-63 (6 bits).
1073
of file platform/emlib/inc/em_lesense.h
sampleMode#
LESENSE_ChSampleMode_TypeDef LESENSE_ChDesc_TypeDef::sampleMode
Select if the ACMP output, the ADC output or the counter output should be used in comparison.
1077
of file platform/emlib/inc/em_lesense.h
intMode#
LESENSE_ChIntMode_TypeDef LESENSE_ChDesc_TypeDef::intMode
Configure the interrupt generation mode for the CHx interrupt flag.
1080
of file platform/emlib/inc/em_lesense.h
cntThres#
uint16_t LESENSE_ChDesc_TypeDef::cntThres
Configure the decision threshold for the sensor data comparison.
Valid range: 0-65535 (16 bits).
1084
of file platform/emlib/inc/em_lesense.h
compMode#
LESENSE_ChCompMode_TypeDef LESENSE_ChDesc_TypeDef::compMode
Select the mode for counter comparison.
1087
of file platform/emlib/inc/em_lesense.h
evalMode#
LESENSE_ChEvalMode_TypeDef LESENSE_ChDesc_TypeDef::evalMode
Select the sensor evaluation mode.
1091
of file platform/emlib/inc/em_lesense.h
offset#
uint8_t LESENSE_ChDesc_TypeDef::offset
Offset for IADC/ACMP interaction.
ACMP: offset determines which of the port I/O pins on the external override interface to access. IADC: offset determines which of the IADC scanner channels is sampled.
1098
of file platform/emlib/inc/em_lesense.h