#include <CanandcolorDigoutSlot.h>
Class representing the state of the Canandcolor digital outputs and the individual condition slots contributing to the outputs.
◆ DigoutSlotState()
constexpr redux::sensors::canandcolor::digout::DigoutSlotState::DigoutSlotState |
( |
uint64_t |
field = 0 | ) |
|
|
inlineconstexpr |
Constructor – used by the Canandcolor class to populate this object.
- Parameters
-
field | Digital output bit set from the CAN message |
◆ GetDigoutConditionSlotValue()
constexpr bool redux::sensors::canandcolor::digout::DigoutSlotState::GetDigoutConditionSlotValue |
( |
CanandcolorDigout |
digout, |
|
|
uint8_t |
slot |
|
) |
| |
|
inlineconstexpr |
Gets the output value of a specific condition slot contributing to a digital output.
For more information about condition slots, see the Canandcolor CAN spec.
- Parameters
-
digout | the digital output associated with the condition slot |
slot | the condition slot index |
- Returns
- Whether or not that specific condition slot is returning true or not.
◆ GetDigoutValue()
constexpr bool redux::sensors::canandcolor::digout::DigoutSlotState::GetDigoutValue |
( |
CanandcolorDigout |
digout | ) |
|
|
inlineconstexpr |
Gets the output value of either digital output, which corresponds to what the Canandcolor is outputting on those pads. Note that this ignores things like normally open/normally connected, so even if the board output is high electrically, the digital output state may be false.
- Parameters
-
digout | The digital output whose value is to be returned |
- Returns
- the boolean state of that digital output
The documentation for this class was generated from the following file: