Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cs_state_data_t Struct Reference

Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Oct 9, 2019 License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed) More...

#include <cs_StateData.h>

Public Member Functions

 cs_state_data_t ()
 
 cs_state_data_t (CS_TYPE type, uint8_t *value, size16_t size)
 
 cs_state_data_t (CS_TYPE type, cs_state_id_t id, uint8_t *value, size16_t size)
 

Public Attributes

CS_TYPE type = CS_TYPE::CONFIG_DO_NOT_USE
 
cs_state_id_t id = 0
 
uint8_t * value = NULL
 
size16_t size = 0
 

Detailed Description

Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Oct 9, 2019 License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)

Struct to communicate state variables.

type The state type. id Multiple value per state type can exist, they all have a unique id. Default is 0. value Pointer to the state value. size Size of the state value. When getting a state, this should be set to available size of value pointer. Afterwards, it will be set to the size of the state value.

Constructor & Destructor Documentation

◆ cs_state_data_t() [1/3]

◆ cs_state_data_t() [2/3]

cs_state_data_t::cs_state_data_t ( CS_TYPE  type,
uint8_t *  value,
size16_t  size 
)
inline

◆ cs_state_data_t() [3/3]

cs_state_data_t::cs_state_data_t ( CS_TYPE  type,
cs_state_id_t  id,
uint8_t *  value,
size16_t  size 
)
inline

Member Data Documentation

◆ id

cs_state_id_t cs_state_data_t::id = 0

◆ size

size16_t cs_state_data_t::size = 0

◆ type

CS_TYPE cs_state_data_t::type = CS_TYPE::CONFIG_DO_NOT_USE

◆ value

uint8_t* cs_state_data_t::value = NULL

The documentation for this struct was generated from the following file: