#include <em_lesense.h>
Data Fields | |
bool | enaScanCh |
bool | enaPin |
bool | enaInt |
LESENSE_ChPinExMode_TypeDef | chPinExMode |
LESENSE_ChPinIdleMode_TypeDef | chPinIdleMode |
bool | useAltEx |
bool | shiftRes |
bool | invRes |
bool | storeCntRes |
LESENSE_ChClk_TypeDef | exClk |
LESENSE_ChClk_TypeDef | sampleClk |
uint8_t | exTime |
uint8_t | sampleDelay |
uint8_t | measDelay |
uint16_t | acmpThres |
LESENSE_ChSampleMode_TypeDef | sampleMode |
LESENSE_ChIntMode_TypeDef | intMode |
uint16_t | cntThres |
LESENSE_ChCompMode_TypeDef | compMode |
Channel descriptor structure.
Definition at line 703 of file em_lesense.h.
uint16_t LESENSE_ChDesc_TypeDef::acmpThres |
Configure ACMP threshold. If perCtrl.dacCh0Data or perCtrl.dacCh1Data is set to lesenseDACIfData, acmpThres defines the 12-bit DAC data in the corresponding data register of the 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).
Definition at line 763 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
Configure channel pin mode for the excitation phase of the scan sequence. Note: OPAOUT is only available on channels 2, 3, 4, and 5.
Definition at line 717 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
Configure channel pin idle setup in LESENSE idle phase.
Definition at line 720 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
uint16_t LESENSE_ChDesc_TypeDef::cntThres |
Configure decision threshold for counter comparison. Valid range: 0-65535 (16 bits).
Definition at line 773 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
Select mode for counter comparison.
Definition at line 776 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
Enable/disable channel interrupts after configuring all the sensor channel parameters.
Definition at line 713 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
Set to enable CHx pin.
Definition at line 709 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
Set to enable scan channel CHx.
Definition at line 706 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
Select clock used for excitation timing.
Definition at line 737 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
uint8_t LESENSE_ChDesc_TypeDef::exTime |
Configure excitation time. Excitation will last exTime+1 excitation clock cycles. Valid range: 0-63 (6 bits).
Definition at line 744 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
Configure interrupt generation mode for CHx interrupt flag.
Definition at line 769 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
Set to invert the result bit stored in SCANRES register.
Definition at line 730 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
Configure measure delay. Sensor measuring is delayed for measDelay excitation clock cycles. Valid range: 0-127 (7 bits).
Definition at line 752 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
Select clock used for sample delay timing.
Definition at line 740 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
Configure sample delay. Sampling will occur after sampleDelay+1 sample clock cycles. Valid range: 0-127 (7 bits).
Definition at line 748 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
Select if ACMP output or counter output should be used in comparison.
Definition at line 766 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
Set to enable the result from this channel being shifted into the decoder register.
Definition at line 727 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
Set to store the counter value in RAM (accessible via RESDATA) and make the comparison result available in the SCANRES register.
Definition at line 734 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().
Set to use alternate excite pin for excitation.
Definition at line 723 of file em_lesense.h.
Referenced by LESENSE_ChannelConfig().