LESENSE_AltExDesc_TypeDef Struct Reference

Alternate excitation descriptor structure.

#include <em_lesense.h>

Data Fields

bool enablePin
Configure alternate excitation pins.
LESENSE_AltExPinIdle_TypeDef idleConf
Configure idle phase setup of alternate excitation pins.
bool alwaysEx
Configure how to control external alternate excitation pins.

Alternate excitation descriptor structure.

Field Documentation

enablePin

bool LESENSE_AltExDesc_TypeDef::enablePin

Configure alternate excitation pins.

If set, the corresponding alternate excitation pin/signal is enabled.

idleConf

LESENSE_AltExPinIdle_TypeDef LESENSE_AltExDesc_TypeDef::idleConf

Configure idle phase setup of alternate excitation pins.

The idleConf parameter is not valid when altExMap==lesenseAltExMapACMP.

alwaysEx

bool LESENSE_AltExDesc_TypeDef::alwaysEx

Configure how to control external alternate excitation pins.

Only applies if altExMap has been set to lesenseAltExMapALTEX. If true, excitation happens on the corresponding alternate excitation pin during excitation periods of all the enabled channels. If false, excitation happens on the corresponding alternate excitation pin ONLY during excitation period of the corresponding channel. The alwaysEx parameter is not valid when altExMap==lesenseAltExMapACMP.