Trident IoT Z-Wave SDK
Loading...
Searching...
No Matches
association_plus_base.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 Silicon Laboratories Inc. <https://www.silabs.com/>
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
13
14#ifndef _ASSOCIATION_PLUS_BASE_H_
15#define _ASSOCIATION_PLUS_BASE_H_
16
17/****************************************************************************/
18/* INCLUDE FILES */
19/****************************************************************************/
20
21#include "ZAF_types.h"
24
25/****************************************************************************/
26/* EXPORTED TYPES and DEFINITIONS */
27/****************************************************************************/
28
35
36#define FREE_VALUE 0x00FF // Valid for both Classic and LR variants!
37
38/*
39 * GroupID related definitions.
40 */
41#define NOT_VALID_GROUP_ID 0
42#define LIFELINE_GROUP_ID 1
43#define LIFELINE_ENDPOINT_ALLOWED 0
44
64
65/****************************************************************************/
66/* EXPORTED DATA */
67/****************************************************************************/
68
69// Nothing here.
70
71/****************************************************************************/
72/* EXPORTED FUNCTIONS */
73/****************************************************************************/
74
79void
80CC_Association_Init(void);
81
86void
87CC_Association_Reset(void);
88
98 uint8_t groupId,
99 uint8_t ep,
100 destination_info_t ** ppListOfNodes,
101 uint8_t * pListLen);
102
114AssociationRemove(
115 uint8_t groupId,
116 uint8_t ep,
117 ZW_MULTI_CHANNEL_ASSOCIATION_REMOVE_1BYTE_V2_FRAME* pCmd,
118 uint8_t cmdLength);
119
129void
130AssociationGet(
131 uint8_t endpoint,
132 uint8_t * incomingFrame,
133 uint8_t * outgoingFrame,
134 uint8_t * outgoingFrameLength);
135
150bool AssociationAddNode(
151 uint8_t groupID,
152 uint8_t endpoint,
154 bool multiChannelAssociation);
155
156/***********************************************************************************
157 * Functions used while doing transmission to association groups.
158 **********************************************************************************/
159
172
243 uint8_t * pListLength,
244 destination_info_t * pNode);
245
254
274
283
289uint8_t ApplicationGetLastActiveGroupId(void);
290
303 AGI_PROFILE const * const pProfile,
304 cc_group_t const * const pCurrentCmdGrp,
305 const uint8_t sourceEndpoint);
306
311
312#endif /* _ASSOCIATION_PLUS_BASE_H_ */
Transport layer for Multi Channel endpoint functionality.
NODE_LIST_STATUS
Definition association_plus_base.h:51
void AssociationGetDestinationInit(destination_info_t *pFirstDestination)
destination_info_t * AssociationGetNextSinglecastDestination(void)
bool AssociationGetBitAdressingDestination(destination_info_t **ppNodeList, uint8_t *pListLength, destination_info_t *pNode)
NODE_LIST_STATUS handleAssociationGetnodeList(uint8_t groupId, uint8_t ep, destination_info_t **ppListOfNodes, uint8_t *pListLen)
uint32_t AssociationGetSinglecastNodeCount(void)
TRANSMIT_OPTIONS_TYPE_EX * ReqNodeList(AGI_PROFILE const *const pProfile, cc_group_t const *const pCurrentCmdGrp, const uint8_t sourceEndpoint)
uint8_t AssociationGetSinglecastEndpointDestinationCount(void)
@ NODE_LIST_STATUS_SUCCESS
Definition association_plus_base.h:52
@ NODE_LIST_STATUS_NO_MORE_NODES
Definition association_plus_base.h:53
@ NODE_LIST_STATUS_ERR_LIFELINE_SUPPORT_NOT_CC_BASIC
Definition association_plus_base.h:61
@ NODE_LIST_STATUS_ASSOCIATION_LIST_EMPTY
Definition association_plus_base.h:54
@ NODE_LIST_STATUS_ERR_ENDPOINT_OUT_OF_RANGE
Definition association_plus_base.h:58
@ NODE_LIST_STATUS_ERR_NO_TABLE_ENDPOINT
Definition association_plus_base.h:56
@ NODE_LIST_STATUS_ERROR_LIST
Definition association_plus_base.h:55
@ NODE_LIST_STATUS_ERR_GROUP_NBR_NOT_LEGAL
Definition association_plus_base.h:59
@ NODE_LIST_STATUS_ERR_LIFELINE_PROFILE_NOT_SUPPORTED
Definition association_plus_base.h:60
@ NODE_LIST_STATUS_ERR_PROFILE_LIFELINE_ONLY_SUPPORT_IN_GRP_1
Definition association_plus_base.h:62
@ NODE_LIST_STATUS_ERR_UNKNOWN_PROFILE
Definition association_plus_base.h:57
ccc_pair_t cc_group_t
Definition ZAF_types.h:120
agi_profile_t AGI_PROFILE
Definition ZAF_types.h:134
e_cmd_handler_return_code_t
Definition ZAF_types.h:89
struct _MULTICHAN_DEST_NODE_ID_ MULTICHAN_DEST_NODE_ID
struct _TRANSMIT_OPTIONS_TYPE_EX_ TRANSMIT_OPTIONS_TYPE_EX
Definition ZW_TransportEndpoint.h:59