* @fn zclGeneral_SendGroupResponse * * @brief Send Group Response (not Group View Response) * * @param srcEP - Sending application's endpoint * @param dstAddr - where you want the message to go * @param cmd - either COMMAND_GROUP_ADD_RSP or COMMAND_GROUP_REMOVE_RSP * @param status - group command status * @param groupID - what group * * @return ZStatus_t */ ZStatus_t zclGeneral_SendGroupResponse( uint8 srcEP, afAddrType_t *dstAddr, uint8 cmd, uint8 status, uint16 groupID, uint8 disableDefaultRsp, uint8 seqNum ) */ #define zclGeneral_SendGroupAddResponse(a,b,c,d,e,f) zclGeneral_SendGroupResponse( (a), (b), COMMAND_GROUP_ADD_RSP, (c), (d), (e), (f) )
/********************************************************************* * @fn zclGeneral_SendGroupGetMembershipRequest * * @brief Send a Get Group Membership (Resposne) Command to a device * * @param srcEP - Sending Apps endpoint * @param dstAddr - where to send the request * @param cmd - one of the following: * COMMAND_GROUP_GET_MEMBERSHIP * COMMAND_GROUP_GET_MEMBERSHIP_RSP * @param groupID - pointer to the group structure * @param groupName - pointer to Group Name. This is a Zigbee * string data type, so the first byte is the length of the * name (in bytes), then the name. * * @return ZStatus_t */ ZStatus_t zclGeneral_SendGroupGetMembershipRequest( uint8 srcEP, afAddrType_t *dstAddr, uint8 cmd, uint8 rspCmd, uint8 direction, uint8 capacity, uint8 grpCnt, uint16 *grpList, uint8 disableDefaultRsp, uint8 seqNum ) */ #define zclGeneral_SendGroupGetMembershipResponse(a,b,c,d,e,f,g) zclGeneral_SendGroupGetMembershipRequest( (a), (b), COMMAND_GROUP_GET_MEMBERSHIP_RSP, TRUE, ZCL_FRAME_SERVER_CLIENT_DIR, (c), (d), (e), (f), (g) )
/********************************************************************* * @fn zclGeneral_SendGroupResponse * * @brief Send Group Response (not Group View Response) * * @param srcEP - Sending application's endpoint * @param dstAddr - where you want the message to go * @param cmd - either COMMAND_GROUP_ADD_RSP or COMMAND_GROUP_REMOVE_RSP * @param status - group command status * @param groupID - what group * * @return ZStatus_t */ ZStatus_t zclGeneral_SendGroupResponse( uint8 srcEP, afAddrType_t *dstAddr, uint8 cmd, uint8 status, uint16 groupID, uint8 disableDefaultRsp, uint8 seqNum ) */ #define zclGeneral_SendGroupRemoveResponse(a,b,c,d,e,f) zclGeneral_SendGroupResponse( (a), (b), COMMAND_GROUP_REMOVE_RSP, (c), (d), (e), (f) ) #endif // ZCL_GROUPS
#ifdef ZCL_SCENES /********************************************************************* * @fn zclGeneral_SendAddScene * * @brief Send the Add Scene Request to a device * * @param srcEP - Sending Apps endpoint * @param dstAddr - where to send the request * @param scene - pointer to the scene structure * * @return ZStatus_t */ ZStatus_t zclGeneral_SendAddScene( uint8 srcEP, afAddrType_t *dstAddr, zclGeneral_Scene_t *scene, uint8 disableDefaultRsp, uint8 seqNum )
/********************************************************************* * @fn zclGeneral_SendSceneRequest * @brief Send a Scene Request to a device. You can also use the * appropriate macro. * @param srcEP - Sending Apps endpoint * @param dstAddr - where to send the request * @param cmd - one of the following: * COMMAND_SCENE_VIEW * COMMAND_SCENE_REMOVE * COMMAND_SCENE_REMOVE_ALL * COMMAND_SCENE_STORE * COMMAND_SCENE_RECALL * COMMAND_SCENE_GET_MEMBERSHIP * @param groupID - group ID * @param sceneID - scene ID (not applicable to COMMAND_SCENE_REMOVE_ALL and * COMMAND_SCENE_GET_MEMBERSHIP) * @return ZStatus_t */ ZStatus_t zclGeneral_SendSceneRequest( uint8 srcEP, afAddrType_t *dstAddr, uint8 cmd, uint16 groupID, uint8 sceneID, uint8 disableDefaultRsp, uint8 seqNum )*/ #define zclGeneral_SendSceneView(a,b,c,d,e,f) zclGeneral_SendSceneRequest( (a), (b), COMMAND_SCENE_VIEW, (c), (d), (e), (f) )
/* * Send a Scene Remove Command * Use like: * ZStatus_t zclGeneral_SendSceneRemove( uint8 srcEP, afAddrType_t *dstAddr, uint16 groupID, uint8 sceneID, uint8 disableDefaultRsp, uint8 seqNum ); */ #define zclGeneral_SendSceneRemove(a,b,c,d,e,f) zclGeneral_SendSceneRequest( (a), (b), COMMAND_SCENE_REMOVE, (c), (d), (e), (f) )
/* * Send a Scene Store Command * Use like: * ZStatus_t zclGeneral_SendSceneStore( uint8 srcEP, afAddrType_t *dstAddr, uint16 groupID, uint8 sceneID, uint8 disableDefaultRsp, uint8 seqNum ); */ #define zclGeneral_SendSceneStore(a,b,c,d,e,f) zclGeneral_SendSceneRequest( (a), (b), COMMAND_SCENE_STORE, (c), (d), (e), (f) )
/* * Send a Scene Recall Command * Use like: * ZStatus_t zclGeneral_SendSceneRecall( uint8 srcEP, afAddrType_t *dstAddr, uint16 groupID, uint8 sceneID, uint8 disableDefaultRsp, uint8 seqNum ); */ #define zclGeneral_SendSceneRecall(a,b,c,d,e,f) zclGeneral_SendSceneRequest( (a), (b), COMMAND_SCENE_RECALL, (c), (d), (e), (f) )
/* * Send a Scene Remove ALL Command - COMMAND_SCENE_REMOVE_ALL * Use like: * ZStatus_t zclGeneral_SendSceneRemoveAll( uint16 srcEP, afAddrType_t *dstAddr, uint16 groupID, uint8 disableDefaultRsp, uint8 seqNum ); */ #define zclGeneral_SendSceneRemoveAll(a,b,c,d,e) zclGeneral_SendSceneRequest( (a), (b), COMMAND_SCENE_REMOVE_ALL, (c), 0, (d), (e) )
/* * Send a Scene Get Membership Command - COMMAND_SCENE_GET_MEMBERSHIPSHIP * Use like: * ZStatus_t zclGeneral_SendSceneGetMembership( uint16 srcEP, afAddrType_t *dstAddr, uint16 groupID, uint8 disableDefaultRsp, uint8 seqNum ); */ #define zclGeneral_SendSceneGetMembership(a,b,c,d,e) zclGeneral_SendSceneRequest( (a), (b), COMMAND_SCENE_GET_MEMBERSHIP, (c), 0, (d), (e) )
|