Z-Wave Protocol Controller Reference
ZPC Datastore Fixture

ZPC specific functions using the unify_datastore. More...

Macros

#define ZPC_DATASTORE_VERSION   (DATASTORE_VERSION_LAST - 1)
 Current datastore version used by the ZPC. More...
 

Typedefs

typedef enum zpc_datastore_version zpc_datastore_version_t
 Versioning of the ZPC datastore. Each datastore version identifies the unique schema of the attribute store The version number should be bumped up when new schema is introduced in datastore which is no more compatible with current or old schemas. More...
 

Enumerations

enum  zpc_datastore_version { DATASTORE_VERSION_V1 = 1 , DATASTORE_VERSION_V2 , DATASTORE_VERSION_V3 , DATASTORE_VERSION_LAST }
 Versioning of the ZPC datastore. Each datastore version identifies the unique schema of the attribute store The version number should be bumped up when new schema is introduced in datastore which is no more compatible with current or old schemas. More...
 

Functions

sl_status_t zpc_datastore_fixt_setup ()
 Fixture for setting up the zpc_datastore component. More...
 

Detailed Description

ZPC specific functions using the unify_datastore.

Fixture to initialize the zpc_datastore from uic_main, to be used in zpc_datastore

Macro Definition Documentation

◆ ZPC_DATASTORE_VERSION

#define ZPC_DATASTORE_VERSION   (DATASTORE_VERSION_LAST - 1)

Current datastore version used by the ZPC.

Typedef Documentation

◆ zpc_datastore_version_t

Versioning of the ZPC datastore. Each datastore version identifies the unique schema of the attribute store The version number should be bumped up when new schema is introduced in datastore which is no more compatible with current or old schemas.

Enumeration Type Documentation

◆ zpc_datastore_version

Versioning of the ZPC datastore. Each datastore version identifies the unique schema of the attribute store The version number should be bumped up when new schema is introduced in datastore which is no more compatible with current or old schemas.

Enumerator
DATASTORE_VERSION_V1 

Initial ZPC datastore revision at first release.

DATASTORE_VERSION_V2 

Version 2 of datastore database. Changes from v1:

  • Wake Up Command Class attribute tree was updated in a non-compatible way
  • Assocation Group ID ATTRIBUTE_COMMAND_CLASS_ASSOCIATION_GROUP_ID is now uint8_t instead of uint32_t
DATASTORE_VERSION_V3 

Version 3 of datastore database. Changes from v2:

  • ATTRIBUTE_COMMAND_CLASS_THERMOSTAT_SUPPORTED_MODES & ATTRIBUTE_COMMAND_CLASS_THERMOSTAT_SETPOINT_SUPPORTED_SETPOINT_TYPES are now uint32_t instead of array to easier mapping to uam
  • THERMOSTAT_SETPOINT scales attributes are now uint8 instead of uint32_t
  • Added precision for THERMOSTAT_SETPOINT attributes and moving their id so that their value are always in the same order matching (+1 for scale and +2 for precision)
  • Set precision attribute to 3 by default to keep compatibility with previous versions
DATASTORE_VERSION_LAST 

Keep this value after the latest version to detect what is the latest.

Function Documentation

◆ zpc_datastore_fixt_setup()

sl_status_t zpc_datastore_fixt_setup ( )

Fixture for setting up the zpc_datastore component.

Returns
SL_STATUS_OK for success, SL_STATUS_FAIL if an error occurred
Here is the call graph for this function: