36#define SETUP_CONFIG_MASK_ALL ((1 << SETUP_CONFIG_NUM_BITS) - 1)
54 static Setup instance;
Event listener.
Definition: cs_EventListener.h:17
Setup class.
Definition: cs_Setup.h:50
void setWithCheck(const CS_TYPE &type, void *value, const size16_t size)
static Setup & getInstance()
Definition: cs_Setup.h:53
cs_ret_code_t handleCommand(cs_data_t data)
void finalize()
Finalize the setup.
void onStorageDone(const CS_TYPE &type)
OperationMode getPersistedOperationMode()
void resolveAsyncResult(ErrorCodesGeneral errCode)
void handleEvent(event_t &event)
Handle events.
uint32_t _successfullyStoredBitmask
Definition: cs_Setup.h:67
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Oct 9,...
Definition: cs_Event.h:26
ErrorCodesGeneral
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Jun 17,...
Definition: cs_ErrorCodes.h:9
SetupConfigBit
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Apr 9,...
Definition: cs_Setup.h:19
@ SETUP_CONFIG_BIT_SWITCH
Definition: cs_Setup.h:33
@ SETUP_CONFIG_BIT_BASIC_KEY
Definition: cs_Setup.h:24
@ SETUP_CONFIG_BIT_LOCALIZATION_KEY
Definition: cs_Setup.h:26
@ SETUP_CONFIG_BIT_MEMBER_KEY
Definition: cs_Setup.h:23
@ SETUP_CONFIG_BIT_IBEACON_MAJOR
Definition: cs_Setup.h:31
@ SETUP_CONFIG_BIT_IBEACON_MINOR
Definition: cs_Setup.h:32
@ SETUP_CONFIG_NUM_BITS
Definition: cs_Setup.h:34
@ SETUP_CONFIG_BIT_STONE_ID
Definition: cs_Setup.h:20
@ SETUP_CONFIG_BIT_ADMIN_KEY
Definition: cs_Setup.h:22
@ SETUP_CONFIG_BIT_IBEACON_UUID
Definition: cs_Setup.h:30
@ SETUP_CONFIG_BIT_MESH_APP_KEY
Definition: cs_Setup.h:28
@ SETUP_CONFIG_BIT_MESH_NET_KEY
Definition: cs_Setup.h:29
@ SETUP_CONFIG_BIT_SPHERE_ID
Definition: cs_Setup.h:21
@ SETUP_CONFIG_BIT_MESH_DEVICE_KEY
Definition: cs_Setup.h:27
@ SETUP_CONFIG_BIT_SERVICE_DATA_KEY
Definition: cs_Setup.h:25
uint16_t size16_t
Definition: cs_Typedefs.h:25
uint16_t cs_ret_code_t
Definition: cs_Typedefs.h:21
OperationMode
Definition: cs_Types.h:440
CS_TYPE
Types:
Definition: cs_Types.h:79
Packets (structs) that are used internally in the firmware, and can be changed freely.
Definition: cs_PacketsInternal.h:27