WIP: New BLE

This commit is contained in:
Joe Kearney 2025-02-03 20:49:54 -06:00
parent 4fe072f2d3
commit a9212c5a3a
12 changed files with 191 additions and 56 deletions

View file

@ -21,6 +21,8 @@
#ifndef SETTINGS_INTERFACE_H
#define SETTINGS_INTERFACE_H
#define SYSTEMK_MAX_CHARS_IN_DEVICE_NAME 15
typedef enum
{
@ -29,13 +31,16 @@ typedef enum
SYSTEMK_SETTING_TEAMID,
SYSTEMK_SETTING_PLAYERID,
SYSTEMK_SETTING_WEAPONID,
SYSTEMK_SETTING_T_START_GAME_in_ms
SYSTEMK_SETTING_T_START_GAME_in_ms,
SYSTEMK_SETTING_DEVICE_TYPE,
} SystemKSettingID_T;
SystemKResult_T SETTINGS_get_uint8_t(SystemKSettingID_T id, uint8_t * value);
SystemKResult_T SETTINGS_set_uint8_t(SystemKSettingID_T id, uint8_t value);
SystemKResult_T SETTINGS_get_uint32_t(SystemKSettingID_T id, uint32_t * value);
SystemKResult_T SETTINGS_set_uint32_t(SystemKSettingID_T id, uint32_t value);
SystemKResult_T SETTINGS_get_device_name(char* name);
SystemKResult_T SETTINGS_set_device_name(char* name);
SystemKResult_T SETTINGS_Save(void);
#endif // SETTINGS_INTERFACE_H