Association Data Store#
Modules#
s_ZAF_ADS_SecurityHighestClass_t
Enumerations#
Defines the states of a highest security class discovery.
Defines the states of a command class discovery.
Defines the list of command classes for which the support can be stored.
Typedefs#
Type to use when defining a handle for the ADS functions.
Functions#
Initializes the Association Data Store.
Removes all information related to a NodeID in the data store.
Returns the highest security class for a given NodeID.
Sets the highest security class of a node.
Returns whether a node supports a given CC or not.
Sets whether a given node supports a given CC.
Macros#
Allocates storage at a word boundary (or any other boundary if needed)
Enumeration Documentation#
e_ZAF_ADS_SecurityHighestClassState_t#
e_ZAF_ADS_SecurityHighestClassState_t
Defines the states of a highest security class discovery.
Enumerator | |
---|---|
SECURITY_HIGHEST_CLASS_NOT_DISCOVERED | Not discovered yet. |
SECURITY_HIGHEST_CLASS_DISCOVERED_NOT_GRANTED_TO_ME | The security class has been discovered but was not granted to me. |
SECURITY_HIGHEST_CLASS_DISCOVERED | The Security class has been discovered and is granted to me. |
51
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_AssociationDataStore.h
e_ZAF_ADS_CC_Capability_t#
e_ZAF_ADS_CC_Capability_t
Defines the states of a command class discovery.
Enumerator | |
---|---|
CC_CAPABILITY_NOT_DISCOVERED | Support of the CC has not yet been discovered. |
CC_CAPABILITY_SUPPORTED | The CC is supported. |
CC_CAPABILITY_NOT_SUPPORTED | The CC is NOT supported. |
70
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_AssociationDataStore.h
e_ZAF_ADS_CommandClass_t#
e_ZAF_ADS_CommandClass_t
Defines the list of command classes for which the support can be stored.
Enumerator | |
---|---|
ZAF_ADS_CC_SUPERVISION | Command Class Supervision. |
ZAF_ADS_CC_MULTI_COMMAND | Command Class Multi Command. |
ZAF_ADS_MAX_CC | Must be the last element in this enum. |
80
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_AssociationDataStore.h
Typedef Documentation#
ZAF_ADS_Handle_t#
typedef void* ZAF_ADS_Handle_t
Type to use when defining a handle for the ADS functions.
The handle is assigned by calling ZAF_ADS_Init.
32
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_AssociationDataStore.h
Function Documentation#
ZAF_ADS_Init#
ZAF_ADS_Handle_t ZAF_ADS_Init (void * pStorage, uint8_t MaxNodeCount)
Initializes the Association Data Store.
N/A | pStorage | Pointer to allocated storage by ZAF_ADS_STORAGE. The name given in ZAF_ADS_STORAGE is what must be supplied as this argument. |
N/A | MaxNodeCount | MaxNodeCount should be set to the max number of nodes that can be associated in controlling association groups. A controlling group is one that can transmit set or get commands. If an application has one controlling group that sends Basic Set, and the group can contain 5 associations, the MaxNodeCount should be set to 5. |
This function must be invoked before all the other ADS functions.
This value must match the number of elements given in ZAF_ADS_STORAGE. Returns
Returns a handle to the allocated Association Data Store.
103
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_AssociationDataStore.h
ZAF_ADS_Delete#
bool ZAF_ADS_Delete (ZAF_ADS_Handle_t handle, uint8_t NodeID)
Removes all information related to a NodeID in the data store.
N/A | handle | ADS handle returned from ZAF_ADS_Init. |
N/A | NodeID | Node ID to remove. |
Returns
Returns true if the node was removed, and false otherwise.
111
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_AssociationDataStore.h
ZAF_ADS_GetNodeHighestSecurityClass#
e_ZAF_ADS_SecurityHighestClassState_t ZAF_ADS_GetNodeHighestSecurityClass (ZAF_ADS_Handle_t handle, uint8_t NodeID, security_key_t * pHighestClass)
Returns the highest security class for a given NodeID.
N/A | handle | ADS handle returned from ZAF_ADS_Init. |
N/A | NodeID | Node ID of which the highest security class must be read. |
N/A | pHighestClass | Pointer to variable where the highest security class must be written. |
Returns
Returns the state of the discovery for the given node ID.
120
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_AssociationDataStore.h
ZAF_ADS_SetNodeHighestSecurityClass#
bool ZAF_ADS_SetNodeHighestSecurityClass (ZAF_ADS_Handle_t handle, uint8_t NodeID, security_key_t HighestClass)
Sets the highest security class of a node.
N/A | handle | ADS handle returned from ZAF_ADS_Init. |
N/A | NodeID | Node ID of which the highest security class must be set. |
N/A | HighestClass | Security class to be set as the highest. |
Returns
Returns true if the class was set and false if there were no free slots in the ADS (increase the MaxNodeCount for the storage space used with ZAF_ADS_Init)
134
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_AssociationDataStore.h
ZAF_ADS_IsNodeSupportingCC#
e_ZAF_ADS_CC_Capability_t ZAF_ADS_IsNodeSupportingCC (ZAF_ADS_Handle_t handle, uint8_t NodeID, e_ZAF_ADS_CommandClass_t commandClass)
Returns whether a node supports a given CC or not.
N/A | handle | ADS handle returned from ZAF_ADS_Init. |
N/A | NodeID | Node ID of which the check is made. |
N/A | commandClass | Command class to check support for. |
Returns
Returns the state of the CC support discovery.
146
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_AssociationDataStore.h
ZAF_ADS_SetNodeIsSupportingCC#
bool ZAF_ADS_SetNodeIsSupportingCC (ZAF_ADS_Handle_t handle, uint8_t NodeID, e_ZAF_ADS_CommandClass_t commandClass, e_ZAF_ADS_CC_Capability_t CC_Capability)
Sets whether a given node supports a given CC.
N/A | handle | ADS handle returned from ZAF_ADS_Init. |
N/A | NodeID | Node ID of which the given CC must be set. |
N/A | commandClass | CC that is discovered. |
N/A | CC_Capability | State of the support. |
Returns
Returns true if the state was set and false if there were no free slots in the ADS (increase the MaxNodeCount for the storage space used with ZAF_ADS_Init)
161
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_AssociationDataStore.h
Macro Definition Documentation#
ZAF_ADS_HEADER_SIZE#
#define ZAF_ADS_HEADER_SIZEValue:
4
36
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_AssociationDataStore.h
ZAF_ADS_ELEMENT_SIZE#
#define ZAF_ADS_ELEMENT_SIZEValue:
20
37
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_AssociationDataStore.h
ZAF_ADS_STORAGE_SIZE#
#define ZAF_ADS_STORAGE_SIZEValue:
(num_elements)
40
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_AssociationDataStore.h
ZAF_ADS_STORAGE#
#define ZAF_ADS_STORAGEValue:
(name, num_elements)
Allocates storage at a word boundary (or any other boundary if needed)
Please see ZAF_ADS_Init.
46
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_AssociationDataStore.h