Data Structures | |
union | cc_config_parameter_value_t |
struct | _cc_config_parameter_attributes_t |
struct | cc_config_parameter_metadata_t |
struct | cc_config_parameter_buffer_t |
struct | cc_configuration_t |
struct | cc_configuration_io_interface_t |
Typedefs | |
typedef struct _cc_config_parameter_attributes_t | cc_config_parameter_attributes_t |
typedef struct cc_config_parameter_buffer_t | cc_config_parameter_buffer_t |
typedef void * | cc_configuration_handle_t |
Enumerations | |
enum | cc_config_parameter_size_t { CC_CONFIG_PARAMETER_SIZE_8_BIT = 1 , CC_CONFIG_PARAMETER_SIZE_16_BIT = 2 , CC_CONFIG_PARAMETER_SIZE_32_BIT = 4 , CC_CONFIG_PARAMETER_SIZE_NOT_SPECIFIED = 0xFF } |
enum | cc_config_parameter_format_t { CC_CONFIG_PARAMETER_FORMAT_SIGNED_INTEGER = CONFIGURATION_PROPERTIES_REPORT_FORMAT_SIGNED_INTEGER_V3 , CC_CONFIG_PARAMETER_FORMAT_UNSIGNED_INTEGER = CONFIGURATION_PROPERTIES_REPORT_FORMAT_UNSIGNED_INTEGER_V3 , CC_CONFIG_PARAMETER_FORMAT_ENUMERATED = CONFIGURATION_PROPERTIES_REPORT_FORMAT_ENUMERATED_V3 , CC_CONFIG_PARAMETER_FORMAT_BIT_FIELD = CONFIGURATION_PROPERTIES_REPORT_FORMAT_BIT_FIELD_V3 } |
enum | cc_config_configuration_set_return_value { CC_CONFIG_RETURN_CODE_NOT_SUPPORTED , CC_CONFIG_RETURN_CODE_IO_FAIL , CC_CONFIG_RETURN_CODE_OK } |
Functions | |
bool | CC_Configuration_SetValue (cc_configuration_handle_t handle, uint16_t number, cc_config_parameter_value_t value) |
bool | cc_configuration_get (uint16_t parameter_number, cc_config_parameter_buffer_t *parameter_buffer) |
void | cc_configuration_set_interface (cc_configuration_io_interface_t const *interface) |
void | cc_configuration_set_default_configuration (cc_configuration_t const *configuration) |
bool | cc_configuration_limit_value (cc_config_parameter_buffer_t const *parameter_buffer, cc_config_parameter_value_t *pNewValue) |
const cc_configuration_t * | cc_configuration_get_configuration (void) |
bool | cc_configuration_io_write (zpal_nvm_object_key_t file_id, uint8_t const *data, size_t size) |
bool | cc_configuration_io_read (zpal_nvm_object_key_t file_id, uint8_t *data, size_t size) |
typedef struct cc_config_parameter_buffer_t cc_config_parameter_buffer_t |
typedef void* cc_configuration_handle_t |
Defines a handle type for the Configuration CC.
Defines the format options of a value.
Defines the size options of a value.
bool cc_configuration_get | ( | uint16_t | parameter_number, |
cc_config_parameter_buffer_t * | parameter_buffer ) |
Initialize the configuration Command Class
[in] | parameter_number | number of the parameter. |
[out] | parameter_buffer | pointer to a parameter buffer which will holds the metadata and current value of a parameter |
const cc_configuration_t * cc_configuration_get_configuration | ( | void | ) |
bool cc_configuration_io_read | ( | zpal_nvm_object_key_t | file_id, |
uint8_t * | data, | ||
size_t | size ) |
Read a specific amount data to nvm
[in] | file_id | Object key |
[in] | data | pointer to the buffer where the data will be read into |
[in] | size | wanted amount of data in byte dimension |
bool cc_configuration_io_write | ( | zpal_nvm_object_key_t | file_id, |
uint8_t const * | data, | ||
size_t | size ) |
Write a specific amount data to nvm
[in] | file_id | Object key |
[in] | data | pointer to the data to be written |
[in] | size | amount of data in byte dimension |
bool cc_configuration_limit_value | ( | cc_config_parameter_buffer_t const * | parameter_buffer, |
cc_config_parameter_value_t * | pNewValue ) |
Limit a value by the parameter's limits
[in] | parameter_buffer | pointer to the parameter buffer which holds the limit values |
[out] | pNewValue | the new value to be limited |
void cc_configuration_set_default_configuration | ( | cc_configuration_t const * | configuration | ) |
Sets default configuration in the Command Class
[in] | configuration | pointer to a configuration set |
void cc_configuration_set_interface | ( | cc_configuration_io_interface_t const * | interface | ) |
Sets new interface set to manipulate non volatile memory to store and read configuration values
[in] | interface | pointer to the new interface set |
bool CC_Configuration_SetValue | ( | cc_configuration_handle_t | handle, |
uint16_t | number, | ||
cc_config_parameter_value_t | value ) |
Sets a configuration parameter with the given number to the given value.
[in] | handle | CC Configuration handle. |
[in] | number | The number of the parameter to be set. |
[in] | value | The value that the parameter must be set to. |