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 compare_value.
Configure which PRS action to perform when the sensor state equals to compare_value.
If enabled, interrupt flag is set when sensor state equals to compare_value.
Public Attribute Documentation#
compare_value#
uint8_t sl_hal_lesense_transition_arc_t::compare_value
Configure compare value.
State transition is triggered when the sensor state equals to this value. Valid range: 0-15 (4 bits).
compare_mask#
uint8_t sl_hal_lesense_transition_arc_t::compare_mask
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.
current_state#
uint8_t sl_hal_lesense_transition_arc_t::current_state
Configure index of the current state when evaluation is done.
Valid range: 0-15 (4 bits).
next_state#
uint8_t sl_hal_lesense_transition_arc_t::next_state
Configure index of state to be entered if the sensor state equals to compare_value.
Valid range: 0-15 (4 bits).
prs_action#
sl_hal_lesense_transition_action_t sl_hal_lesense_transition_arc_t::prs_action
Configure which PRS action to perform when the sensor state equals to compare_value.
set_interrupt#
bool sl_hal_lesense_transition_arc_t::set_interrupt
If enabled, interrupt flag is set when sensor state equals to compare_value.