Functions
The following IAS ACE cluster functions are provided in the NXP implementation of the ZCL:
eCLD_IASACECreateIASACE
teZCL_Status eCLD_IASACECreateIASACE(
tsZCL_ClusterInstance *psClusterInstance,
bool_t bIsServer,
tsZCL_ClusterDefinition *psClusterDefinition,
void *pvEndPointSharedStructPtr,
tsCLD_IASACECustomDataStructure
*psCustomDataStructure);
Description
This function creates an instance of the IAS ACE cluster on an endpoint. The cluster instance is created on the endpoint which is associated with the supplied tsZCL_ClusterInstance structure and can act as a server or a client, as specified.
The function should only be called when setting up a custom endpoint containing one or more selected clusters (rather than the whole set of clusters supported by a standard ZigBee device). This function will create an IAS ACE cluster instance on the endpoint, but instances of other clusters may also be created on the same endpoint by calling their corresponding creation functions.
Note: This function must not be called for an endpoint on which a standard ZigBee device is used. In this case, the device and its supported clusters must be registered on the endpoint using the relevant device registration function.
When used, this function must be called after the stack has been started and after the ZCL has been initialized.
Parameters
psClusterInstance: Pointer to structure containing information about the cluster instance to be created (see Section 6.1.16). This structure is updated by the function by initializing individual structure fields.
bIsServer: Type of cluster instance (server or client) to be created: TRUE - server, FALSE - client
psClusterDefinition: Pointer to structure indicating the type of cluster to be created (see Section 6.1.2). In this case, this structure must contain the details of the IAS ACE cluster.
pvEndPointSharedStructPtr: Set this pointer to NULL for this cluster
psCustomDataStructure: Pointer to a structure containing the storage for internal functions of the cluster (see Section 38.7.1)
Returns
E_ZCL_SUCCESS
E_ZCL_FAIL
E_ZCL_ERR_PARAMETER_NULL
E_ZCL_ERR_INVALID_VALUE
Parent topic:Functions
eCLD_IASACEAddZoneEntry
teZCL_CommandStatus eCLD_IASACEAddZoneEntry(
uint8 u8SourceEndPointId,
uint16 u16ZoneType,
uint64 u64IeeeAddress,
uint8 *pu8ZoneID);
Description
This function can be used on an IAS ACE cluster server to create an entry in the local Zone table - that is, to add the details of a zone to the table after receiving a Zone Enrollment Request (and before sending a Zone Enrollment Response).
The details of the zone are provided in the function parameters. The function checks that the supplied pointer to the Zone ID is not NULL and that the supplied IEEE address is valid. The function can then add the zone details to the Zone table, provided that there is a free entry in the table.
Parameters
u8SourceEndPointId: Number of the endpoint on which the IAS ACE cluster resides
u16ZoneType: Value indicating the type of zone to be added to the table (for the possible values, refer to the description of the attribute
e``16ZoneTypeof the IAS Zone cluster in Section 37.2)u64IeeeAddress: IEEE address of the device which hosts the zone
pu8ZoneID: Pointer to an identifier of the zone to be added to the table
Returns
E_ZCL_CMDS_SUCCESS (zone successfully added to Zone table)
E_ZCL_CMDS_FAILURE (cluster instance not found)
E_ZCL_CMDS_INVALID_FIELD (pointer to Zone ID is NULL)
E_ZCL_CMDS_INVALID_VALUE (IEEE address is invalid)
E_ZCL_CMDS_INSUFFICIENT_SPACE (no free entry in Zone table)
Parent topic:Functions
eCLD_IASACERemoveZoneEntry
teZCL_CommandStatus eCLD_IASACERemoveZoneEntry(
uint8 u8SourceEndPointId,
uint8 u8ZoneID,
uint64 *pu64IeeeAddress);
Description
This function can be used on an IAS ACE cluster server to remove an existing entry from the local Zone table - that is, to delete the details of a zone in the table and release the table entry for re-use. Thus, this function can be used to unenroll a zone.
The zone to be removed is specified by means of the Zone ID. The function checks that the supplied pointer to a location to receive the IEEE address is not NULL. The function then searches for the relevant table entry using the supplied Zone ID and, if found, returns its IEEE address via the supplied location and frees the table entry by setting the IEEE address in the table entry to zero. The returned IEEE address can be used by a (local) CIE device application to send a request to the relevant Zone device to set its IAS Zone cluster attribute u64IASCIEAddress to all zeros (writing to remote attributes is described in Section 2.3.3.1).
Parameters
u8SourceEndPointId: Number of the endpoint on which the IAS ACE cluster resides
u8ZoneID: Zone ID of zone to be removed from table
pu64IeeeAddress: Pointer to location to receive the IEEE address found in the table entry to be removed
Returns
E_ZCL_CMDS_SUCCESS (zone successfully removed from Zone table)
E_ZCL_CMDS_FAILURE (cluster instance not found)
E_ZCL_CMDS_INVALID_FIELD (pointer to IEEE address location is NULL)
E_ZCL_CMDS_NOT_FOUND (entry with specified Zone ID not found in table)
Parent topic:Functions
eCLD_IASACEGetZoneTableEntry
teZCL_CommandStatus eCLD_IASACEGetZoneTableEntry(
uint8 u8SourceEndPointId,
uint8 u8ZoneID,
tsCLD_IASACE_ZoneTable **ppsZoneTable);
Description
This function can be used on an IAS ACE cluster server to obtain the details of a specified zone from the local Zone table.
The zone of interest is specified by means of its Zone ID. The function searches for the relevant table entry using the supplied Zone ID and, if found, returns the zone information from the table entry via the supplied structure (see Section 38.7.2).
Parameters
u8SourceEndPointId: Number of the endpoint on which the IAS ACE cluster resides
u8ZoneID: Zone ID of zone for which details required from table
ppsZoneTable: Pointer to a pointer to a structure to receive obtained zone information (see Section 38.7.2)
Returns
E_ZCL_CMDS_SUCCESS (zone details successfully obtained from Zone table)
E_ZCL_CMDS_FAILURE (cluster instance not found)
E_ZCL_CMDS_NOT_FOUND (entry with specified Zone ID not found in table)
Parent topic:Functions
eCLD_IASACEGetEnrolledZones
teZCL_CommandStatus eCLD_IASACEGetEnrolledZones(
uint8 u8SourceEndPointId,
uint8 *pu8ZoneID,
uint8 *pu8NumOfEnrolledZones);
Description
This function can be used on an IAS ACE cluster server to obtain a list of the enrolled zones from the local Zone table.
The function searches the Zone table and returns a list of the Zone IDs of all the enrolled zones (for which there are table entries). The number of enrolled zones is also returned.
Parameters
u8SourceEndPointId: Number of the endpoint on which the IAS ACE cluster resides
pu8ZoneID: Pointer to a location to receive the first Zone ID in the reported list of enrolled zones
pu8NumOfEnrolledZones: Pointer to a location to receive the number of enrolled zones reported in the above list
Returns
E_ZCL_CMDS_SUCCESS (zone list successfully obtained from Zone table)
E_ZCL_CMDS_FAILURE (cluster instance not found)
E_ZCL_CMDS_INVALID_FIELD (a supplied pointer is NULL)
Parent topic:Functions
eCLD_IASACESetPanelParameter
teZCL_Status eCLD_IASACESetPanelParameter(
uint8 u8SourceEndPointId,
teCLD_IASACE_PanelParameterID eParameterId,
uint8 u8ParameterValue);
Description
This function can be used on an IAS ACE cluster server to set the value of a Panel parameter. The Panel parameters are held on the server in a tsCLD_IASACE_PanelParameter structure (see Section 38.7.4) and this function can be used to write a value to one parameter in the structure. The function verifies that the specified parameter identifier is valid before attempting the write.
If this function is used to set the Panel parameter ePanelStatus, an IAS ACE Panel Status Changed command is automatically sent to all bound clients.
Parameters
u8SourceEndPointId: Number of the endpoint on which the IAS ACE cluster resides
eParameterId: Enumeration identifying the Panel parameter to be set, one of:
E_CLD_IASACE_PANEL_PARAMETER_PANEL_STATUS
E_CLD_IASACE_PANEL_PARAMETER_SECONDS_REMAINING
E_CLD_IASACE_PANEL_PARAMETER_AUDIBLE_NOTIFICATION
E_CLD_IASACE_PANEL_PARAMETER_ALARM_STATUS
u8ParameterValue: Value to be written to the parameter
Returns
E_ZCL_SUCCESS (Panel parameter successfully set)
E_ZCL_ERR_CLUSTER_NOT_FOUND (cluster instance not found)
E_ZCL_ERR_ATTRIBUTE_NOT_FOUND (Panel parameter identifier invalid)
Parent topic:Functions
eCLD_IASACEGetPanelParameter
teZCL_Status eCLD_IASACEGetPanelParameter(
uint8 u8SourceEndPointId,
teCLD_IASACE_PanelParameterID eParameterId,
uint8 *pu8ParameterValue);
Description
This function can be used on an IAS ACE cluster server to obtain the value of a Panel parameter. The Panel parameters are held on the server in a tsCLD_IASACE_PanelParameter structure (see Section 38.7.4) and this function can be used to read the value of one parameter in the structure. The function verifies that the specified parameter identifier is valid before attempting the read.
Parameters
u8SourceEndPointId: Number of the endpoint on which the IAS ACE cluster resides
eParameterId : Enumeration identifying the Panel parameter to be read, one of:
E_CLD_IASACE_PANEL_PARAMETER_PANEL_STATUS
E_CLD_IASACE_PANEL_PARAMETER_SECONDS_REMAINING
E_CLD_IASACE_PANEL_PARAMETER_AUDIBLE_NOTIFICATION
E_CLD_IASACE_PANEL_PARAMETER_ALARM_STATUS
pu8ParameterValue: Pointer to location to receive read parameter value
Returns
E_ZCL_SUCCESS (Panel parameter successfully read)
E_ZCL_ERR_CLUSTER_NOT_FOUND (cluster instance not found)
E_ZCL_ERR_PARAMETER_NULL (specfied pointer is NULL)
E_ZCL_ERR_ATTRIBUTE_NOT_FOUND (Panel parameter identifier invalid)
Parent topic:Functions
eCLD_IASACESetZoneParameter
teZCL_Status eCLD_IASACESetZoneParameter(
uint8 u8SourceEndPointId,
teCLD_IASACE_ZoneParameterID eParameterId,
uint8 u8ZoneID,
uint8 u8ParameterLength,
uint8 *pu8ParameterValue);
Description
This function can be used on an IAS ACE cluster server to set the value of a Zone parameter. The Zone parameters for a particular Zone ID are held on the server in a tsCLD_IASACE_ZoneParameter structure (see Section 38.7.3) and this function can be used to write a value to one parameter in the structure. The specified zone must have been enrolled in the local Zone table. Before attempting the write, the function verifies that the specified Zone ID is present in the Zone table and that the specified parameter identifier is valid.
If this function is used to set the Zone parameter eZoneStatus, an IAS ACE Zone Status Changed command is automatically sent to all bound clients.
The function requires the parameter value to be provided as a uint8 array. This is to allow one of the array parameters, au8ZoneLabel[] or au8ArmDisarmCode[], to be set - the corresponding string parameter, sZoneLabel or sArmDisarmCode, will be set automatically. The function eCLD_IASACESetZoneParameterValue() provides an easier way of setting one of the non-array/non-string parameters.
Parameters
u8SourceEndPointId: Number of the endpoint on which the IAS ACE cluster resides
eParameterId : Enumeration identifying the Zone parameter to be set, one of:
: E_CLD_IASACE_ZONE_PARAMETER_ZONE_CONFIG_FLAG
E_CLD_IASACE_ZONE_PARAMETER_ZONE_STATUS_FLAG
E_CLD_IASACE_ZONE_PARAMETER_ZONE_STATUS
E_CLD_IASACE_ZONE_PARAMETER_AUDIBLE_NOTIFICATION
E_CLD_IASACE_ZONE_PARAMETER_ZONE_LABEL
E_CLD_IASACE_ZONE_PARAMETER_ARM_DISARM_CODE
u8ZoneID: Zone ID of zone information to be updated
u8ParameterLength: Number of uint8 elements in the array containing the parameter value to be set
pu8ParameterValue: Pointer to a location containing the first element of the array containing the parameter value to be set
Returns
E_ZCL_SUCCESS (Zone parameter successfully set)
E_ZCL_ERR_CLUSTER_NOT_FOUND (cluster instance not found)
E_ZCL_ERR_ATTRIBUTE_NOT_FOUND (Zone parameter identifier invalid)
E_ZCL_ERR_NO_REPORT_ENTRIES (Zone ID not found in Zone table)
E_ZCL_ERR_PARAMETER_NULL (Pointer to location containing value is NULL)
E_ZCL_ERR_PARAMETER_RANGE (specified array length too long to be stored)
Parent topic:Functions
eCLD_IASACESetZoneParameterValue
teZCL_Status eCLD_IASACESetZoneParameterValue(
uint8 u8SourceEndPointId,
teCLD_IASACE_ZoneParameterID eParameterId,
uint8 u8ZoneID,
uint16 u16ParameterValue);
Description
This function can be used on an IAS ACE cluster server to set the value of a Zone parameter. The Zone parameters for a particular Zone ID are held on the server in a tsCLD_IASACE_ZoneParameter structure (see Section 38.7.3) and this function can be used to write a value to one of the non-string/non-array parameters in the structure. The specified zone must have been enrolled in the local Zone table. Before attempting the write, the function verifies that the specified Zone ID is present in the Zone table and that the specified parameter identifier is valid.
If this function is used to set the Zone parameter eZoneStatus, an IAS ACE Zone Status Changed command is automatically sent to all bound clients.
This function cannot be used to set the string parameters sZoneLabel and sArmDisarmCode or the array parameters au8ZoneLabel[] and au8ArmDisarmCode[]. The function eCLD_IASACESetZoneParameter() must be used to set the string and array parameters.
Parameters
u8SourceEndPointId: Number of the endpoint on which the IAS ACE cluster resides
eParameterId : Enumeration identifying the Zone parameter to be set, one of:
E_CLD_IASACE_ZONE_PARAMETER_ZONE_CONFIG_FLAG
E_CLD_IASACE_ZONE_PARAMETER_ZONE_STATUS_FLAG
E_CLD_IASACE_ZONE_PARAMETER_ZONE_STATUS
E_CLD_IASACE_ZONE_PARAMETER_AUDIBLE_NOTIFICATION
u8ZoneID: Zone ID of zone information to be updated
u16ParameterValue: Value to be written to the parameter
Returns
E_ZCL_SUCCESS (Zone parameter successfully set)
E_ZCL_ERR_CLUSTER_NOT_FOUND (cluster instance not found)
E_ZCL_ERR_ATTRIBUTE_NOT_FOUND (Zone parameter identifier invalid)
E_ZCL_ERR_NO_REPORT_ENTRIES (Zone ID not found in Zone table)
Parent topic:Functions
eCLD_IASACEGetZoneParameter
teZCL_Status eCLD_IASACEGetZoneParameter(
uint8 u8SourceEndPointId,
teCLD_IASACE_ZoneParameterID eParameterId,
uint8 u8ZoneID,
uint8 *pu8ParameterLength,
uint8 *pu8ParameterValue);
Description
This function can be used on an IAS ACE cluster server to obtain the value of a Zone parameter. The Zone parameters for a particular Zone ID are held on the server in a tsCLD_IASACE_ZoneParameter structure (see Section 38.7.3) and this function can be used to read the value of one parameter in the structure. Before attempting the read, the function verifies that the specified Zone ID is present in the Zone table and that the specified parameter identifier is valid.
The function expects the read parameter value to be returned as a uint8 array.
Parameters
u8SourceEndPointId: Number of the endpoint on which the IAS ACE cluster resides
eParameterId: Enumeration identifying the Zone parameter to be read, one of:
E_CLD_IASACE_ZONE_PARAMETER_ZONE_CONFIG_FLAG
E_CLD_IASACE_ZONE_PARAMETER_ZONE_STATUS_FLAG
E_CLD_IASACE_ZONE_PARAMETER_ZONE_STATUS
E_CLD_IASACE_ZONE_PARAMETER_AUDIBLE_NOTIFICATION
E_CLD_IASACE_ZONE_PARAMETER_ZONE_LABEL
E_CLD_IASACE_ZONE_PARAMETER_ARM_DISARM_CODE
u8ZoneID: Zone ID of zone information to be accessed
*pu8ParameterLength: Pointer to location to receive the number of uint8 elements in the array containing the parameter value obtained
*pu8ParameterValue: Pointer to location to receive the first element of the array containing the parameter value obtained
Returns
E_ZCL_SUCCESS (Zone parameter successfully read)
E_ZCL_ERR_CLUSTER_NOT_FOUND (cluster instance not found)
E_ZCL_ERR_PARAMETER_NULL (a specified pointer is NULL)
E_ZCL_ERR_NO_REPORT_ENTRIES (Zone ID not found in Zone table)
E_ZCL_ERR_ATTRIBUTE_NOT_FOUND (Zone parameter identifier invalid)
E_ZCL_ERR_PARAMETER_RANGE (returned array too long to be stored)
Parent topic:Functions
eCLD_IASACE_ArmSend
teZCL_Status eCLD_IASACE_ArmSend(
uint8 u8SourceEndPointId,
uint8 u8DestinationEndPointId,
tsZCL_Address *psDestinationAddress,
uint8 *pu8TransactionSequenceNumber,
tsCLD_IASACE_ArmPayload *psPayload);
Description
This function can be used on an IAS ACE cluster client to send an IAS ACE Arm command to an IAS ACE server. This command instructs the server to put all or certain enrolled zones into the ‘armed’ state or put all of them into the ‘disarmed’ state, according to the command payload (see Section 38.7.5).
The outcome of the request will be returned by the server in a response which will generate an E_CLD_IASACE_CMD_ARM_RESP event when received on the client.
You are required to provide a pointer to a location to receive a Transaction Sequence Number (TSN) for the request. The TSN in the response is set to match the TSN in the request, allowing an incoming response to be paired with a request. This is useful when sending more than one request to the same destination endpoint.
Parameters
u8SourceEndPointId: Number of the local endpoint through which to send the request. This parameter is used both to send the command and to identify the instance of the shared structure holding the required attribute values
u8DestinationEndPointId: Number of the endpoint on the remote node to which the request is sent. This parameter is ignored when sending to address types eZCL_AMBOUND and eZCL_AMGROUP
psDestinationAddress: Pointer to a structure holding the address of the node to which the request is sent
pu8TransactionSequenceNumber: Pointer to a location to receive the Transaction Sequence Number (TSN) of the request
psPayload: Pointer to a structure containing the payload for the command (see Section 38.7.5)
Returns
E_ZCL_SUCCESS
E_ZCL_ERR_PARAMETER_NULL
E_ZCL_ERR_EP_RANGE
E_ZCL_ERR_EP_UNKNOWN
E_ZCL_ERR_CLUSTER_NOT_FOUND
E_ZCL_ERR_ZBUFFER_FAIL
E_ZCL_ERR_ZTRANSMIT_FAIL
If an error is returned by the ZigBee PRO stack function which is invoked by this function to transmit the data, this error may be obtained by calling eZCL_GetLastZpsError().
Parent topic:Functions
eCLD_IASACE_BypassSend
teZCL_Status eCLD_IASACE_BypassSend(
uint8 u8SourceEndPointId,
uint8 u8DestinationEndPointId,
tsZCL_Address *psDestinationAddress,
uint8 *pu8TransactionSequenceNumber,
tsCLD_IASACE_BypassPayload *psPayload);
Description
This function can be used on an IAS ACE cluster client to send an IAS ACE Bypass command to an IAS ACE server. This command instructs the server to take one or more specified zones out of the system for the current activation.
Note: The bypassed zones will be reinstated the next time the system is disarmed. To exclude them again the next time the system is armed, the Bypass command must be re-sent before sending the Arm command.
The outcome of the request will be returned by the server in a response which will generate an E_CLD_IASACE_CMD_BYPASS_RESP event when received on the client.
You are required to provide a pointer to a location to receive a Transaction Sequence Number (TSN) for the request. The TSN in the response is set to match the TSN in the request, allowing an incoming response to be paired with a request. This is useful when sending more than one request to the same destination endpoint.
Parameters
u8SourceEndPointId: Number of the local endpoint through which to send the request. This parameter is used both to send the command and to identify the instance of the shared structure holding the required attribute values
u8DestinationEndPointId: Number of the endpoint on the remote node to which the request is sent. This parameter is ignored when sending to address types eZCL_AMBOUND and eZCL_AMGROUP
psDestinationAddress: Pointer to a structure holding the address of the node to which the request is sent
pu8TransactionSequenceNumber: Pointer to a location to receive the Transaction Sequence Number (TSN) of the request
psPayload: Pointer to a structure containing the payload for the command (see Section 38.7.5)
Returns
E_ZCL_SUCCESS
E_ZCL_ERR_PARAMETER_NULL
E_ZCL_ERR_EP_RANGE
E_ZCL_ERR_EP_UNKNOWN
E_ZCL_ERR_CLUSTER_NOT_FOUND
E_ZCL_ERR_ZBUFFER_FAIL
E_ZCL_ERR_ZTRANSMIT_FAIL
If an error is returned by the ZigBee PRO stack function which is invoked by this function to transmit the data, this error may be obtained by calling eZCL_GetLastZpsError().
Parent topic:Functions
eCLD_IASACE_EmergencySend
teZCL_Status eCLD_IASACE_EmergencySend(
uint8 u8SourceEndPointId,
uint8 u8DestinationEndPointId,
tsZCL_Address *psDestinationAddress,
uint8 *pu8TransactionSequenceNumber);
Description
This function can be used on an IAS ACE cluster client to send an IAS ACE Emergency command to an IAS ACE server. This command instructs the server to put the alarm in the ‘Emergency’ state.
You are required to provide a pointer to a location to receive a Transaction Sequence Number (TSN) for the request. The TSN in the response is set to match the TSN in the request, allowing an incoming response to be paired with a request. This is useful when sending more than one request to the same destination endpoint.
Parameters
u8SourceEndPointId: Number of the local endpoint through which to send the request. This parameter is used both to send the command and to identify the instance of the shared structure holding the required attribute values
u8DestinationEndPointId: Number of the endpoint on the remote node to which the request is sent. This parameter is ignored when sending to address types eZCL_AMBOUND and eZCL_AMGROUP
psDestinationAddress: Pointer to a structure holding the address of the node to which the request is sent
pu8TransactionSequenceNumber: Pointer to a location to receive the Transaction Sequence Number (TSN) of the request
Returns
E_ZCL_SUCCESS
E_ZCL_ERR_PARAMETER_NULL
E_ZCL_ERR_EP_RANGE
E_ZCL_ERR_EP_UNKNOWN
E_ZCL_ERR_CLUSTER_NOT_FOUND
E_ZCL_ERR_ZBUFFER_FAIL
E_ZCL_ERR_ZTRANSMIT_FAIL
If an error is returned by the ZigBee PRO stack function which is invoked by this function to transmit the data, this error may be obtained by calling eZCL_GetLastZpsError().
Parent topic:Functions
eCLD_IASACE_FireSend
teZCL_Status eCLD_IASACE_FireSend(
uint8 u8SourceEndPointId,
uint8 u8DestinationEndPointId,
tsZCL_Address *psDestinationAddress,
uint8 *pu8TransactionSequenceNumber);
Description
This function can be used on an IAS ACE cluster client to send an IAS ACE Fire command to an IAS ACE server. This command instructs the server to put the alarm in the ‘Fire’ state.
You are required to provide a pointer to a location to receive a Transaction Sequence Number (TSN) for the request. The TSN in the response is set to match the TSN in the request, allowing an incoming response to be paired with a request. This is useful when sending more than one request to the same destination endpoint.
Parameters
u8SourceEndPointId: Number of the local endpoint through which to send the request. This parameter is used both to send the command and to identify the instance of the shared structure holding the required attribute values
u8DestinationEndPointId: Number of the endpoint on the remote node to which the request is sent. This parameter is ignored when sending to address types eZCL_AMBOUND and eZCL_AMGROUP
psDestinationAddress: Pointer to a structure holding the address of the node to which the request is sent
pu8TransactionSequenceNumber: Pointer to a location to receive the Transaction Sequence Number (TSN) of the request
Returns
E_ZCL_SUCCESS
E_ZCL_ERR_PARAMETER_NULL
E_ZCL_ERR_EP_RANGE
E_ZCL_ERR_EP_UNKNOWN
E_ZCL_ERR_CLUSTER_NOT_FOUND
E_ZCL_ERR_ZBUFFER_FAIL
E_ZCL_ERR_ZTRANSMIT_FAIL
If an error is returned by the ZigBee PRO stack function which is invoked by this function to transmit the data, this error may be obtained by calling eZCL_GetLastZpsError().
Parent topic:Functions
eCLD_IASACE_PanicSend
teZCL_Status eCLD_IASACE_PanicSend(
uint8 u8SourceEndPointId,
uint8 u8DestinationEndPointId,
tsZCL_Address *psDestinationAddress,
uint8 *pu8TransactionSequenceNumber);
Description
This function can be used on an IAS ACE cluster client to send an IAS ACE Panic command to an IAS ACE server. This command instructs the server to put the alarm in the ‘Panic’ state.
You are required to provide a pointer to a location to receive a Transaction Sequence Number (TSN) for the request. The TSN in the response is set to match the TSN in the request, allowing an incoming response to be paired with a request. This is useful when sending more than one request to the same destination endpoint.
Parameters
u8SourceEndPointId: Number of the local endpoint through which to send the request. This parameter is used both to send the command and to identify the instance of the shared structure holding the required attribute values
u8DestinationEndPointId: Number of the endpoint on the remote node to which the request is sent. This parameter is ignored when sending to address types eZCL_AMBOUND and eZCL_AMGROUP
psDestinationAddress: Pointer to a structure holding the address of the node to which the request is sent
pu8TransactionSequenceNumber: Pointer to a location to receive the Transaction Sequence Number (TSN) of the request
Returns
E_ZCL_SUCCESS
E_ZCL_ERR_PARAMETER_NULL
E_ZCL_ERR_EP_RANGE
E_ZCL_ERR_EP_UNKNOWN
E_ZCL_ERR_CLUSTER_NOT_FOUND
E_ZCL_ERR_ZBUFFER_FAIL
E_ZCL_ERR_ZTRANSMIT_FAIL
If an error is returned by the ZigBee PRO stack function which is invoked by this function to transmit the data, this error may be obtained by calling eZCL_GetLastZpsError().
Parent topic:Functions
eCLD_IASACE_GetZoneIDMapSend
teZCL_Status eCLD_IASACE_GetZoneIDMapSend(
uint8 u8SourceEndPointId,
uint8 u8DestinationEndPointId,
tsZCL_Address *psDestinationAddress,
uint8 *pu8TransactionSequenceNumber);
Description
This function can be used on an IAS ACE cluster client to send an IAS ACE Get Zone ID Map command to an IAS ACE server. This command requests the Zone IDs that have been allocated to zones.
The requested information is returned by the server in a response which generates an E_CLD_IASACE_CMD_GET_ZONE_ID_MAP_RESP event when received on the client.
You are required to provide a pointer to a location to receive a Transaction Sequence Number (TSN) for the request. The TSN in the response is set to match the TSN in the request, allowing an incoming response to be paired with a request. This is useful when sending more than one request to the same destination endpoint.
Parameters
u8SourceEndPointId: Number of the local endpoint through which to send the request. This parameter is used both to send the command and to identify the instance of the shared structure holding the required attribute values
u8DestinationEndPointId: Number of the endpoint on the remote node to which the request is sent. This parameter is ignored when sending to address types eZCL_AMBOUND and eZCL_AMGROUP
psDestinationAddress: Pointer to a structure holding the address of the node to which the request is sent
pu8TransactionSequenceNumber: Pointer to a location to receive the Transaction Sequence Number (TSN) of the request
Returns
E_ZCL_SUCCESS
E_ZCL_ERR_PARAMETER_NULL
E_ZCL_ERR_EP_RANGE
E_ZCL_ERR_EP_UNKNOWN
E_ZCL_ERR_CLUSTER_NOT_FOUND
E_ZCL_ERR_ZBUFFER_FAIL
E_ZCL_ERR_ZTRANSMIT_FAIL
If an error is returned by the ZigBee PRO stack function which is invoked by this function to transmit the data, this error may be obtained by calling eZCL_GetLastZpsError().
Parent topic:Functions
eCLD_IASACE_GetZoneInfoSend
teZCL_Status eCLD_IASACE_GetZoneInfoSend(
uint8 u8SourceEndPointId,
uint8 u8DestinationEndPointId,
tsZCL_Address *psDestinationAddress,
uint8 *pu8TransactionSequenceNumber,
tsCLD_IASACE_GetZoneInfoPayload *psPayload);
Description
This function can be used on an IAS ACE cluster client to send an IAS ACE Get Zone Information command to an IAS ACE server. This command requests information on the zone specified in the command payload.
The requested information will be returned by the server in a response which will generate an E_CLD_IASACE_CMD_GET_ZONE_INFO_RESP event when received on the client.
You are required to provide a pointer to a location to receive a Transaction Sequence Number (TSN) for the request. The TSN in the response is set to match the TSN in the request, allowing an incoming response to be paired with a request. This is useful when sending more than one request to the same destination endpoint.
Parameters
u8SourceEndPointId: Number of the local endpoint through which to send the request. This parameter is used both to send the command and to identify the instance of the shared structure holding the required attribute values
u8DestinationEndPointId: Number of the endpoint on the remote node to which the request is sent. This parameter is ignored when sending to address types eZCL_AMBOUND and eZCL_AMGROUP
psDestinationAddress: Pointer to a structure holding the address of the node to which the request is sent
pu8TransactionSequenceNumber: Pointer to a location to receive the Transaction Sequence Number (TSN) of the request
psPayload: Pointer to a structure containing the payload for the command (see Section 38.7.5)
Returns
E_ZCL_SUCCESS
E_ZCL_ERR_PARAMETER_NULL
E_ZCL_ERR_EP_RANGE
E_ZCL_ERR_EP_UNKNOWN
E_ZCL_ERR_CLUSTER_NOT_FOUND
E_ZCL_ERR_ZBUFFER_FAIL
E_ZCL_ERR_ZTRANSMIT_FAIL
If an error is returned by the ZigBee PRO stack function which is invoked by this function to transmit the data, this error may be obtained by calling eZCL_GetLastZpsError().
Parent topic:Functions
eCLD_IASACE_GetPanelStatusSend
teZCL_Status eCLD_IASACE_GetPanelStatusSend(
uint8 u8SourceEndPointId,
uint8 u8DestinationEndPointId,
tsZCL_Address *psDestinationAddress,
uint8 *pu8TransactionSequenceNumber);
Description
This function can be used on an IAS ACE cluster client to send an IAS ACE Get Panel Status command to an IAS ACE server. This command requests the current status of the (display) panel.
The requested information will be returned by the server in a response which will generate an E_CLD_IASACE_CMD_GET_PANEL_STATUS_RESP event when received on the client.
You are required to provide a pointer to a location to receive a Transaction Sequence Number (TSN) for the request. The TSN in the response is set to match the TSN in the request, allowing an incoming response to be paired with a request. This is useful when sending more than one request to the same destination endpoint.
Parameters
u8SourceEndPointId: Number of the local endpoint through which to send the request. This parameter is used both to send the command and to identify the instance of the shared structure holding the required attribute values
u8DestinationEndPointId: Number of the endpoint on the remote node to which the request is sent. This parameter is ignored when sending to address types eZCL_AMBOUND and eZCL_AMGROUP
psDestinationAddress: Pointer to a structure holding the address of the node to which the request is sent
pu8TransactionSequenceNumber: Pointer to a location to receive the Transaction Sequence Number (TSN) of the request
Returns
E_ZCL_SUCCESS
E_ZCL_ERR_PARAMETER_NULL
E_ZCL_ERR_EP_RANGE
E_ZCL_ERR_EP_UNKNOWN
E_ZCL_ERR_CLUSTER_NOT_FOUND
E_ZCL_ERR_ZBUFFER_FAIL
E_ZCL_ERR_ZTRANSMIT_FAIL
If an error is returned by the ZigBee PRO stack function which is invoked by this function to transmit the data, this error may be obtained by calling eZCL_GetLastZpsError().
Parent topic:Functions
eCLD_IASACE_SetBypassedZoneListSend
teZCL_Status eCLD_IASACE_SetBypassedZoneListSend(
uint8 u8SourceEndPointId,
uint8 u8DestinationEndPointId,
tsZCL_Address *psDestinationAddress,
uint8 *pu8TransactionSequenceNumber,
tsCLD_IASACE_SetBypassedZonelistPayload *psPayload);
Description
This function can be used on an IAS ACE cluster server to send an IAS ACE Set Bypassed Zone List command to an IAS ACE client. This command informs the client which zones are currently bypassed - the zones are specified in the command payload.
You are required to provide a pointer to a location to receive a Transaction Sequence Number (TSN) for the request. The TSN in the response is set to match the TSN in the request, allowing an incoming response to be paired with a request. This is useful when sending more than one request to the same destination endpoint.
Parameters
u8SourceEndPointId: Number of the local endpoint through which to send the request. This parameter is used both to send the command and to identify the instance of the shared structure holding the required attribute values
u8DestinationEndPointId: Number of the endpoint on the remote node to which the request is sent. This parameter is ignored when sending to address types eZCL_AMBOUND and eZCL_AMGROUP
psDestinationAddress: Pointer to a structure holding the address of the node to which the request is sent
pu8TransactionSequenceNumber: Pointer to a location to receive the Transaction Sequence Number (TSN) of the request
psPayload: Pointer to a structure containing the payload for the command (see Section 38.7.5)
Returns
E_ZCL_SUCCESS
E_ZCL_ERR_PARAMETER_NULL
E_ZCL_ERR_EP_RANGE
E_ZCL_ERR_EP_UNKNOWN
E_ZCL_ERR_CLUSTER_NOT_FOUND
E_ZCL_ERR_ZBUFFER_FAIL
E_ZCL_ERR_ZTRANSMIT_FAIL
If an error is returned by the ZigBee PRO stack function which is invoked by this function to transmit the data, this error may be obtained by calling eZCL_GetLastZpsError().
Parent topic:Functions
eCLD_IASACE_GetBypassedZoneListSend
teZCL_Status eCLD_IASACE_GetBypassedZoneListSend(
uint8 u8SourceEndPointId,
uint8 u8DestinationEndPointId,
tsZCL_Address *psDestinationAddress,
uint8 *pu8TransactionSequenceNumber);
Description
This function can be used on an IAS ACE cluster client to send an IAS ACE Get Bypassed Zone List command to an IAS ACE server. This command requests a list of the currently bypassed zones.
The requested information will be returned by the server in a response which will generate an E_CLD_IASACE_CMD_SET_BYPASSED_ZONE_LIST event when received on the client.
You are required to provide a pointer to a location to receive a Transaction Sequence Number (TSN) for the request. The TSN in the response is set to match the TSN in the request, allowing an incoming response to be paired with a request. This is useful when sending more than one request to the same destination endpoint.
Parameters
u8SourceEndPointId: Number of the local endpoint through which to send the request. This parameter is used both to send the command and to identify the instance of the shared structure holding the required attribute values
u8DestinationEndPointId: Number of the endpoint on the remote node to which the request is sent. This parameter is ignored when sending to address types eZCL_AMBOUND and eZCL_AMGROUP
psDestinationAddress: Pointer to a structure holding the address of the node to which the request is sent
pu8TransactionSequenceNumber: Pointer to a location to receive the Transaction Sequence Number (TSN) of the request
Returns
E_ZCL_SUCCESS
E_ZCL_ERR_PARAMETER_NULL
E_ZCL_ERR_EP_RANGE
E_ZCL_ERR_EP_UNKNOWN
E_ZCL_ERR_CLUSTER_NOT_FOUND
E_ZCL_ERR_ZBUFFER_FAIL
E_ZCL_ERR_ZTRANSMIT_FAIL
If an error is returned by the ZigBee PRO stack function which is invoked by this function to transmit the data, this error may be obtained by calling eZCL_GetLastZpsError().
Parent topic:Functions
eCLD_IASACE_GetZoneStatusSend
teZCL_Status eCLD_IASACE_GetZoneStatusSend(
uint8 u8SourceEndPointId,
uint8 u8DestinationEndPointId,
tsZCL_Address *psDestinationAddress,
uint8 *pu8TransactionSequenceNumber,
tsCLD_IASACE_GetZoneStatusPayload *psPayload);
Description
This function can be used on an IAS ACE cluster client to send an IAS ACE Get Zone Status command to an IAS ACE server. This command requests either of the following:
a list of all enrolled zones with their status
a list of those zones with a particular status (that is, all zones with the
b16ZoneStatusattribute of the IAS Zone cluster having a certain value)
The list required is specified in the bZoneStatusMaskFlag field of the command payload (see Section 38.7.5). If the second of the above lists is required, the status to look for is also specified in the payload.
The requested information is returned by the server in a response which generates an E_CLD_IASACE_CMD_GET_ZONE_STATUS_RESP event when received on the client. A single response may not be able to carry all the zone status information to be returned and more than one request (and associated response) would be needed. For this reason, the request allows a starting zone and the number of zones to be included in the response to be specified (in the request payload).
You are required to provide a pointer to a location to receive a Transaction Sequence Number (TSN) for the request. The TSN in the response is set to match the TSN in the request, allowing an incoming response to be paired with a request. This is useful when sending more than one request to the same destination endpoint.
Parameters
u8SourceEndPointId: Number of the local endpoint through which to send the request. This parameter is used both to send the command and to identify the instance of the shared structure holding the required attribute values
u8DestinationEndPointId: Number of the endpoint on the remote node to which the request is sent. This parameter is ignored when sending to address types eZCL_AMBOUND and eZCL_AMGROUP
psDestinationAddress: Pointer to a structure holding the address of the node to which the request is sent
pu8TransactionSequenceNumber: Pointer to a location to receive the Transaction Sequence Number (TSN) of the request
psPayload: Pointer to a structure containing the payload for the command (see Section 38.7.5)
Returns
E_ZCL_SUCCESS
E_ZCL_ERR_PARAMETER_NULL
E_ZCL_ERR_EP_RANGE
E_ZCL_ERR_EP_UNKNOWN
E_ZCL_ERR_CLUSTER_NOT_FOUND
E_ZCL_ERR_ZBUFFER_FAIL
E_ZCL_ERR_ZTRANSMIT_FAIL
If an error is returned by the ZigBee PRO stack function which is invoked by this function to transmit the data, this error may be obtained by calling eZCL_GetLastZpsError().
Parent topic:Functions
eCLD_IASACE_ZoneStatusChangedSend
teZCL_Status eCLD_IASACE_ZoneStatusChangedSend(
uint8 u8SourceEndPointId,
uint8 u8DestinationEndPointId,
tsZCL_Address *psDestinationAddress,
uint8 *pu8TransactionSequenceNumber,
tsCLD_IASACE_ZoneStatusChangedPayload *psPayload);
Description
This function can be used on an IAS ACE cluster server to send an IAS ACE Zone Status Changed command to an IAS ACE client. This command informs the client that the status of the specified zone has changed - that is, the value of the b16ZoneStatus attribute of the IAS Zone cluster for the zone has changed.
Note: This command is sent automatically when the function eCLD_IASACESetZoneParameter() is called on the server to update the u16ZoneStatus attribute for all the bound clients.
You are required to provide a pointer to a location to receive a Transaction Sequence Number (TSN) for the request. The TSN in the response is set to match the TSN in the request, allowing an incoming response to be paired with a request. This is useful when sending more than one request to the same destination endpoint.
Parameters
u8SourceEndPointId: Number of the local endpoint through which to send the request. This parameter is used both to send the command and to identify the instance of the shared structure holding the required attribute values
u8DestinationEndPointId: Number of the endpoint on the remote node to which the request is sent. This parameter is ignored when sending to address types eZCL_AMBOUND and eZCL_AMGROUP
psDestinationAddress: Pointer to a structure holding the address of the node to which the request is sent
pu8TransactionSequenceNumber: Pointer to a location to receive the Transaction Sequence Number (TSN) of the request
psPayload: Pointer to a structure containing the payload for the command (see Section 38.7.5)
Returns
E_ZCL_SUCCESS
E_ZCL_ERR_PARAMETER_NULL
E_ZCL_ERR_EP_RANGE
E_ZCL_ERR_EP_UNKNOWN
E_ZCL_ERR_CLUSTER_NOT_FOUND
E_ZCL_ERR_ZBUFFER_FAIL
E_ZCL_ERR_ZTRANSMIT_FAIL
If an error is returned by the ZigBee PRO stack function which is invoked by this function to transmit the data, this error may be obtained by calling eZCL_GetLastZpsError().
Parent topic:Functions
eCLD_IASACE_PanelStatusChanged
teZCL_Status eCLD_IASACE_PanelStatusChanged(
uint8 u8SourceEndPointId,
uint8 u8DestinationEndPointId,
tsZCL_Address *psDestinationAddress,
uint8 *pu8TransactionSequenceNumber,
teCLD_IASACE_ServerCmdId eCommandId,
tsCLD_IASACE_PanelStatusChangedOrGetPanelStatusRespPayload
*psPayload);
Description
This function can be used on an IAS ACE cluster server to send an IAS ACE Panel Status Changed command to an IAS ACE client. This command informs the client that the value of the panel parameter ePanelStatus (see Section 38.7.4) on the (local) CIE device has changed.
Note:
The IAS ACE Panel Status Changed command is sent automatically when the function eCLD_IASACESetPanelParameter() is called to update the
ePanelStatusparameter.The function alternatively provides the option of sending an IAS ACE Get Panel Status Response but, in practice, this response is sent automatically when a Get Panel Status Request is received.
You are required to provide a pointer to a location to receive a Transaction Sequence Number (TSN) for the request. The TSN in the response is set to match the TSN in the request, allowing an incoming response to be paired with a request. This is useful when sending more than one request to the same destination endpoint.
Parameters
u8SourceEndPointId: Number of the local endpoint through which to send the request. This parameter is used both to send the command and to identify the instance of the shared structure holding the required attribute values
u8DestinationEndPointId: Number of the endpoint on the remote node to which the request is sent. This parameter is ignored when sending to address types eZCL_AMBOUND and eZCL_AMGROUP
psDestinationAddress: Pointer to a structure holding the address of the node to which the request is sent
pu8TransactionSequenceNumber: Pointer to a location to receive the Transaction Sequence Number (TSN) of the request
eCommandId: Identifier of command to be sent - for Panel Status Changed command, always set to:: E_CLD_IASACE_CMD_PANEL_STATUS_CHANGED
psPayload: Pointer to a structure containing the payload for the command (see Section 38.7.5)
Returns
E_ZCL_SUCCESS
E_ZCL_ERR_PARAMETER_NULL
E_ZCL_ERR_EP_RANGE
E_ZCL_ERR_EP_UNKNOWN
E_ZCL_ERR_CLUSTER_NOT_FOUND
E_ZCL_ERR_ZBUFFER_FAIL
E_ZCL_ERR_ZTRANSMIT_FAIL
If an error is returned by the ZigBee PRO stack function which is invoked by this function to transmit the data, this error may be obtained by calling eZCL_GetLastZpsError().
Parent topic:Functions
Parent topic:IAS Ancillary Control Equipment Cluster