Blueprint for a single setting. More...
#include <settings.h>
Data Fields | |
| SettingId | id |
| Known id for typed reads. SETTING_COUNT or higher means face-only. | |
| const uint32_t * | message_key |
| The MESSAGE_KEY_* this field rides on, filled in by the SDK at runtime. | |
| SettingType | type |
| Drives both the wire encoding and the cleanup pass. | |
| uint16_t | offset |
| Where this field sits in the owning face's struct. | |
| uint16_t | size |
| Buffer size, for SETTING_CSTRING only. | |
| uint8_t | enum_count |
| How many values are allowed, so the highest is one less, for SETTING_ENUM_U8 only. | |
| uint32_t | default_num |
| Default on a fresh install for BOOL and ENUM_U8, and the 0xRRGGBB colour for COLOR. | |
| const char * | default_str |
| Default on a fresh install for CSTRING. | |
| bool | affects_layout |
| A change re-renders the clock, for the date and time formats. | |
| bool | affects_weather |
| A change asks for fresh weather, for the temperature unit. | |
Blueprint for a single setting.