Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
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 |
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.
|
inline |
|
inline |
|
inline |
cs_state_id_t cs_state_data_t::id = 0 |
size16_t cs_state_data_t::size = 0 |
CS_TYPE cs_state_data_t::type = CS_TYPE::CONFIG_DO_NOT_USE |
uint8_t* cs_state_data_t::value = NULL |