More compact tick events implementation

This commit is contained in:
dario
2025-03-24 19:58:41 +01:00
parent 1479e75365
commit 93c70de8d7
2 changed files with 37 additions and 51 deletions

View File

@@ -37,17 +37,16 @@ namespace sta
{
enum class Types : uint32_t
{
STARTUP = 0x01,
TICK_100Hz = 0x02,
TOCK_100Hz = 0x03,
TICK_50Hz = 0x04,
TOCK_50Hz = 0x05,
TICK_20Hz = 0x06,
TOCK_20Hz = 0x07,
TICK_10Hz = 0x08,
TOCK_10Hz = 0x09,
TICK_1Hz = 0x0A,
TOCK_1Hz = 0x0B
STARTUP = (0x01 << 0x00),
TICK_100Hz = (0x01 << 0x01),
TICK_50Hz = (0x01 << 0x02),
TOCK_50Hz = (0x01 << 0x03),
TICK_20Hz = (0x01 << 0x04),
TOCK_20Hz = (0x01 << 0x05),
TICK_10Hz = (0x01 << 0x06),
TOCK_10Hz = (0x01 << 0x07),
TICK_1Hz = (0x01 << 0x08),
TOCK_1Hz = (0x01 << 0x09)
};
/**