diff options
| author | Robin Howard <robin@rhoward.id.au> | 2023-11-07 15:46:07 +1100 |
|---|---|---|
| committer | Robin Howard <robin@rhoward.id.au> | 2023-11-07 16:31:55 +1100 |
| commit | 135185f12ba07dea8568b06c0a65a00a8af7deb7 (patch) | |
| tree | 19724b4caf02c6127766be4e9bfd33d006cfdd25 /src/system_fsm/include/system_events.hpp | |
| parent | 3abf599c4f8b04bed4ed67084588204f65a644d0 (diff) | |
| download | tangara-fw-135185f12ba07dea8568b06c0a65a00a8af7deb7.tar.gz | |
haptics: adds a wrapper for the DRV2605L haptic motor driver
... with facilities to trigger effects via the system fsm.
Diffstat (limited to 'src/system_fsm/include/system_events.hpp')
| -rw-r--r-- | src/system_fsm/include/system_events.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/system_fsm/include/system_events.hpp b/src/system_fsm/include/system_events.hpp index 4db9beb0..2722fa80 100644 --- a/src/system_fsm/include/system_events.hpp +++ b/src/system_fsm/include/system_events.hpp @@ -10,6 +10,7 @@ #include "battery.hpp" #include "database.hpp" +#include "haptics.hpp" #include "service_locator.hpp" #include "tinyfsm.hpp" @@ -55,6 +56,10 @@ struct BatteryStateChanged : tinyfsm::Event { struct BluetoothDevicesChanged : tinyfsm::Event {}; +struct HapticTrigger : tinyfsm::Event { + drivers::Haptics::Effect effect; +}; + namespace internal { struct GpioInterrupt : tinyfsm::Event {}; |
