diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-05-29 17:41:41 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-05-29 17:41:41 +0200 |
commit | a9a38d387f98b29b68f97b8a9c6858d2b399caf0 (patch) | |
tree | a981e8d195d1743f2b218c02aef12b8809978912 /shared/puzbus.h | |
parent | 439859f1133fb88e64df31acaa1b2845e36ba348 (diff) |
WIP puzzle bus driver rework
Diffstat (limited to 'shared/puzbus.h')
-rw-r--r-- | shared/puzbus.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/shared/puzbus.h b/shared/puzbus.h deleted file mode 100644 index 59a8867..0000000 --- a/shared/puzbus.h +++ /dev/null @@ -1,39 +0,0 @@ -#pragma once - -/** \file bus address reference */ - -// Adafruit NeoTrellis modules -#define BUSADDR_ADA_NEO_1 0x2E -#define BUSADDR_ADA_NEO_2 0x2F -#define BUSADDR_ADA_NEO_3 0x30 -#define BUSADDR_ADA_NEO_4 0x32 - -// TODO: ??? -#define BUSADDR_MOD_NEOTRELLIS 0 -#define BUSADDR_MOD_SOFTWARE 0 -#define BUSADDR_MOD_HARDWARE 0 -#define BUSADDR_MOD_VAULT 0 -#define BUSADDR_MOD_AUTOMATION 0 - -// main controller -#define BUSADDR_MAIN 0x00 - -/** - * \brief puzzle bus command types - * - * The first byte of a puzzle bus message's data indicates the command type. - */ -enum pb_cmd { - PB_CMD_READ, //!< read a puzzle module property - PB_CMD_WRITE, //!< write to a puzzle module property - // PB_CMD_UPDATE, //!< request an update -}; - -/** \brief Puzzle bus global states */ -enum pb_global_state { - PB_GS_NOINIT, //!< uninitialized (only used by puzzle modules) - PB_GS_IDLE, //!< puzzle not started yet - PB_GS_PLAYING, //!< puzzle actively being solved - PB_GS_SOLVED, //!< puzzle completed -}; - |