23 Off = CoprocStat_ButtonsEnum_BOFF,
24 On = CoprocStat_ButtonsEnum_BON,
26 B1 = CoprocStat_ButtonsEnum_B1,
27 B2 = CoprocStat_ButtonsEnum_B2,
28 B3 = CoprocStat_ButtonsEnum_B3,
29 B4 = CoprocStat_ButtonsEnum_B4,
45 static constexpr uint32_t Count = 6;
48 inline bool byId(
ButtonId id)
const {
return (m_buttonsSet &
id) != 0; };
61 void onChange(callback_t callback);
68 void setState(
const CoprocStat_ButtonsStat& msg);
70 std::vector<callback_t> m_callbacks;
71 std::recursive_mutex m_mutex;
#define RBCX_ENUM_IMPL_MASK_OPERATORS(T)
Definition: RBCXUtil.h:33
The main library class for working with the RBCX board. Call the install() method at the start of you...
Definition: RBCXManager.h:61
Definition: RBCXAngle.cpp:3
ButtonId
Helper class for controlling the LEDs connected to the expander.
Definition: RBCXButtons.h:22
@ B4
Definition: RBCXButtons.h:29
@ B3
Definition: RBCXButtons.h:28
@ Off
Definition: RBCXButtons.h:23
@ B1
Definition: RBCXButtons.h:26
@ Left
Definition: RBCXButtons.h:33
@ Right
Definition: RBCXButtons.h:34
@ Down
Definition: RBCXButtons.h:32
@ B2
Definition: RBCXButtons.h:27
@ On
Definition: RBCXButtons.h:24
@ Up
Definition: RBCXButtons.h:31