(Multi Channel) Association#
CC Association and CC Multi Channel Association enable application level control of other devices.
For instance, a wall switch can control an LED bulb if an association to the LED bulb is created in the wall switch. Another example could be a motion sensor that turns on an LED bulb when motion is detected. Such associations can be created using either Association Set or Multi Channel Association Set.
Both CCs share a common module that stores the actual associations.
The specifications of CC Association and CC Multi Channel Association can be found in https://github.com/Z-Wave-Alliance/AWG/tree/main/source/management_command_classes/command_class_definitions
Modules#
Enumerations#
Enum type NODE_LIST_STATUS is used for return status on API call AGI_NodeIdListGetNext.
Typedefs#
Functions#
Delivers a list of nodes in a given association group corresponding to a given endpoint.
Removes all nodes or given node(s) from all groups or a given group.
Handles an incoming (Multi Channel) Association Get command and composes a (Multi Channel) Association Report.
Associates a given node in the given group for a given endpoint.
Initializes the fetching of nodes before e.g.
Outputs a node where associations to multiple endpoints of that node exist.
Returns the number of associations after the bit addressing destinations are removed.
Returns the address of the next association like an iterator.
Returns the number of endpoint destinations in the active node association list.
Returns the latest used association group.
Returns TX options containing a list of nodes found in the association group that matches the given AGI profile, command class / command pair and source endpoint.
Handler for Association Set command.
Macros#
Invalid group ID.
LIFELINE group ID.
The only allowed endpoint of the Lifeline group!
Enumeration Documentation#
NODE_LIST_STATUS#
NODE_LIST_STATUS
Enum type NODE_LIST_STATUS is used for return status on API call AGI_NodeIdListGetNext.
Enum types from NODE_LIST_STATUS_SUCCESS to NODE_LIST_STATUS_ERROR_LIST deliver status on the call and after NODE_LIST_STATUS_ERROR_LIST deliver an error identifiers pointing to a problem in application AGI/association configuarion.
Enumerator | |
---|---|
NODE_LIST_STATUS_SUCCESS | |
NODE_LIST_STATUS_NO_MORE_NODES | |
NODE_LIST_STATUS_ASSOCIATION_LIST_EMPTY | |
NODE_LIST_STATUS_ERROR_LIST | enum values higher than this is error identifiers |
NODE_LIST_STATUS_ERR_NO_TABLE_ENDPOINT | |
NODE_LIST_STATUS_ERR_UNKNOWN_PROFILE | |
NODE_LIST_STATUS_ERR_ENDPOINT_OUT_OF_RANGE | |
NODE_LIST_STATUS_ERR_GROUP_NBR_NOT_LEGAL | |
NODE_LIST_STATUS_ERR_LIFELINE_PROFILE_NOT_SUPPORTED | |
NODE_LIST_STATUS_ERR_LIFELINE_SUPPORT_NOT_CC_BASIC | |
NODE_LIST_STATUS_ERR_PROFILE_LIFELINE_ONLY_SUPPORT_IN_GRP_1 |
44
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/Association/inc/association_plus_base.h
Typedef Documentation#
SAssociationInfo#
typedef struct SAssociationInfo SAssociationInfo
35
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/Association/inc/association_plus_file.h
Function Documentation#
CC_Association_Init#
void CC_Association_Init (void )
N/A |
Remarks
Must be invoked by CC_Association.c only
74
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/Association/inc/association_plus_base.h
CC_Association_Reset#
void CC_Association_Reset (void )
N/A |
Remarks
Must be invoked by CC_Association.c only
81
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/Association/inc/association_plus_base.h
handleAssociationGetnodeList#
NODE_LIST_STATUS handleAssociationGetnodeList (uint8_t groupId, uint8_t ep, destination_info_t ** ppListOfNodes, uint8_t * pListLen)
Delivers a list of nodes in a given association group corresponding to a given endpoint.
[in] | groupId | Association group ID. |
[in] | ep | Endpoint. |
[out] | ppListOfNodes | is out double-pointer of type MULTICHAN_ |