Decoder state condition descriptor structure.
Public Attributes#
Configure compare value.
Configure compare mask.
Configure index of the current state when evaluation is done.
Configure index of state to be entered if the sensor state equals to compVal.
Configure which PRS action to perform when the sensor state equals to compVal.
If enabled, interrupt flag is set when sensor state equals to compVal.
Public Attribute Documentation#
compVal#
uint8_t LESENSE_DecStCond_TypeDef::compVal
Configure compare value.
State transition is triggered when the sensor state equals to this value. Valid range: 0-15 (4 bits).
1342
of file platform/emlib/inc/em_lesense.h
compMask#
uint8_t LESENSE_DecStCond_TypeDef::compMask
Configure compare mask.
Set bit X to exclude sensor X from evaluation. Note: decoder can handle sensor inputs from up to 4 sensors; therefore, this mask is 4 bit long.
1347
of file platform/emlib/inc/em_lesense.h
curState#
uint8_t LESENSE_DecStCond_TypeDef::curState
Configure index of the current state when evaluation is done.
Valid range: 0-15 (4 bits).
1352
of file platform/emlib/inc/em_lesense.h
nextState#
uint8_t LESENSE_DecStCond_TypeDef::nextState
Configure index of state to be entered if the sensor state equals to compVal.
Valid range: 0-15 (4 bits).
1357
of file platform/emlib/inc/em_lesense.h
prsAct#
LESENSE_StTransAct_TypeDef LESENSE_DecStCond_TypeDef::prsAct
Configure which PRS action to perform when the sensor state equals to compVal.
1361
of file platform/emlib/inc/em_lesense.h
setInt#
bool LESENSE_DecStCond_TypeDef::setInt
If enabled, interrupt flag is set when sensor state equals to compVal.
1364
of file platform/emlib/inc/em_lesense.h