mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-27 03:49:58 -07:00
BLE Spam refactor random/set/custom mode handling
This commit is contained in:
@@ -5,11 +5,19 @@
|
||||
#include "easysetup.h"
|
||||
#include "swiftpair.h"
|
||||
|
||||
union ProtocolCfg {
|
||||
ContinuityCfg continuity;
|
||||
FastpairCfg fastpair;
|
||||
EasysetupCfg easysetup;
|
||||
SwiftpairCfg swiftpair;
|
||||
typedef enum {
|
||||
ProtocolModeRandom,
|
||||
ProtocolModeValue,
|
||||
} ProtocolMode;
|
||||
|
||||
struct ProtocolCfg {
|
||||
ProtocolMode mode;
|
||||
union {
|
||||
ContinuityCfg continuity;
|
||||
FastpairCfg fastpair;
|
||||
EasysetupCfg easysetup;
|
||||
SwiftpairCfg swiftpair;
|
||||
} specific;
|
||||
};
|
||||
|
||||
extern const Protocol* protocols[];
|
||||
|
||||
Reference in New Issue
Block a user