TYPES#
Modules#
Enumerations#
Status on incoming frame.
Callback status used on framework API for request/response-job.
Indicates whether all transmissions are done.
Typedefs#
Properties of the received frame.
For backwards compatibility.
For backwards compatibility.
For backwards compatibility.
For backwards compatibility.
Basic Set mapper function type.
Basic Get mapper function type.
A lifeline report function must take an array of CC pairs as input and return the number of CC pairs being added to the array.
Defines a type for the latest available CC handle type.
Callback function triggered after completed transmission.
Callback function triggered after ZW_SendDataMulti_Bridge completed transmission.
Generic Callback function type.
Eases the upgrade to future versions of the CC config struct.
Variables#
This is the first of the registered app handlers.
This marks the end of the handlers.
Macros#
This marks the version of the command class handlers used by ZAF_CC_Invoker.
Registers a given command class with version, handler, etc.
Registers a given command class with version, handler, etc.
Registers a given command class with version, handler, etc.
Registers a given command class with version, handler, etc.
Registers a given command class with version, handler, etc.
Registers a given command class with version, handler, etc.
Registers a given command class configuration.
Enumeration Documentation#
e_cmd_handler_return_code_t#
e_cmd_handler_return_code_t
Enumerator | |
---|---|
E_CMD_HANDLER_RETURN_CODE_FAIL | Not accepted or accepted but failed to execute. Command class returns FAIL. |
E_CMD_HANDLER_RETURN_CODE_HANDLED | Accepted and executed by the command handler. Command class returns SUCCESS. |
E_CMD_HANDLER_RETURN_CODE_WORKING | Accepted but is not fully executed. Command class returns WORKING. |
E_CMD_HANDLER_RETURN_CODE_NOT_SUPPORTED | Command handler does not support this command. Command class returns NO_SUPPORT. |
E_CMD_HANDLER_RETURN_CODE_NO_CHANGE | Accepted but device was already in final state, so no change was made. Command class returns SUCCESS. |
received_frame_status_t#
received_frame_status_t
Status on incoming frame.
Use same values as cc_supervision_status_t
Enumerator | |
---|---|
RECEIVED_FRAME_STATUS_NO_SUPPORT | Frame not supported. |
RECEIVED_FRAME_STATUS_WORKING | Frame received successfully and timed change started. |
RECEIVED_FRAME_STATUS_FAIL | Could not handle incoming frame. |
RECEIVED_FRAME_STATUS_CANCEL | Don't care about status. CC or App will send the report. |
RECEIVED_FRAME_STATUS_CC_NOT_FOUND | CC handler was not found in CC handler map. |
RECEIVED_FRAME_STATUS_SUCCESS | Frame received successfully. |
zaf_job_status_t#
zaf_job_status_t
Callback status used on framework API for request/response-job.
Enumerator | |
---|---|
JOB_STATUS_SUCCESS | Job has been started. |
JOB_STATUS_BUSY | Job couldn't start. |
JOB_STATUS_NO_DESTINATIONS | Job couldn't start because there is no destinations. |
TRANSMISSION_RESULT_FINISH_STATUS#
TRANSMISSION_RESULT_FINISH_STATUS
Indicates whether all transmissions are done.
Used by TRANSMISSION_RESULT.
Enumerator | |
---|---|
TRANSMISSION_RESULT_NOT_FINISHED | Still transmitting. |
TRANSMISSION_RESULT_FINISHED | Done transmitting to all nodes. |
TRANSMISSION_RESULT_UNKNOWN | Reserved for callbacks from the stack as the stack supplies no valid value for the finish field. |
Typedef Documentation#
RECEIVE_OPTIONS_TYPE_EX#
typedef struct _RECEIVE_OPTIONS_TYPE_EX_ RECEIVE_OPTIONS_TYPE_EX
Properties of the received frame.
Used mostly by command classes to prepare response to a command.
cc_handler_v1_t#
typedef received_frame_status_t(* cc_handler_v1_t) (RECEIVE_OPTIONS_TYPE_EX *, ZW_APPLICATION_TX_BUFFER *, uint8_t) )(RECEIVE_OPTIONS_TYPE_EX *, ZW_APPLICATION_TX_BUFFER *, uint8_t)
cc_handler_v2_t#
typedef received_frame_status_t(* cc_handler_v2_t) (RECEIVE_OPTIONS_TYPE_EX *, ZW_APPLICATION_TX_BUFFER *, uint8_t, ZW_APPLICATION_TX_BUFFER *, uint8_t *) )(RECEIVE_OPTIONS_TYPE_EX *, ZW_APPLICATION_TX_BUFFER *, uint8_t, ZW_APPLICATION_TX_BUFFER *, uint8_t *)
cc_handler_v3_t#
typedef received_frame_status_t(* cc_handler_v3_t) (cc_handler_input_t *, cc_handler_output_t *) )(cc_handler_input_t *, cc_handler_output_t *)
basic_set_mapper_t#
typedef void(* basic_set_mapper_t) (ZW_APPLICATION_TX_BUFFER *p_frame) )(ZW_APPLICATION_TX_BUFFER *p_frame)
Basic Set mapper function type.
Type | Direction | Argument Name | Description |
---|---|---|---|
[out] | p_frame | The frame that must have command class and command replaced by the command class that defines the Basic Set mapping function. |
Use this type when defining a function for Basic Set mapping.
basic_get_mapper_t#
typedef void(* basic_get_mapper_t) (uint8_t endpoint, uint8_t *p_current_value, uint8_t *p_target_value, uint8_t *p_duration) )(uint8_t endpoint, uint8_t *p_current_value, uint8_t *p_target_value, uint8_t *p_duration)
Basic Get mapper function type.
Type | Direction | Argument Name | Description |
---|---|---|---|
[in] | endpoint | The endpoint that received the Basic Get command. | |
[out] | p_current_value | Pointer to variable where the current value can be written. | |
[out] | p_target_value | Pointer to variable where the target value can be written. | |
[out] | p_duration | Pointer to variable where the duration can be written. |
Use this type when defining a function for Basic Get mapping.
lifeline_report_get_t#
typedef uint8_t(* lifeline_report_get_t) (cc_group_t *p_cc_pair) )(cc_group_t *p_cc_pair)
A lifeline report function must take an array of CC pairs as input and return the number of CC pairs being added to the array.
CC_handler_map_latest_t#
typedef CC_handler_map_v5_t CC_handler_map_latest_t
Defines a type for the latest available CC handle type.
Users of the CC handle must use this type to avoid changes caused by a future handle version.
ZAF_TX_Callback_t#
typedef void(* ZAF_TX_Callback_t) (transmission_result_t *pTxResult) )(transmission_result_t *pTxResult)
ZW_TX_Callback_t#
typedef void(* ZW_TX_Callback_t) (uint8_t txStatus, TX_STATUS_TYPE *extendedTxStatus) )(uint8_t txStatus, TX_STATUS_TYPE *extendedTxStatus)
Callback function triggered after completed transmission.
Type | Direction | Argument Name | Description |
---|---|---|---|
N/A | txStatus | Transmit complete codes | |
N/A | extendedTxStatus | Extended Tx Status |
ZW_TX_Multi_Callback_t#
typedef void(* ZW_TX_Multi_Callback_t) (uint8_t txStatus) )(uint8_t txStatus)
Callback function triggered after ZW_SendDataMulti_Bridge completed transmission.
Type | Direction | Argument Name | Description |
---|---|---|---|
N/A | txStatus | Transmit complete codes |
zaf_cc_config_entry_latest_t#
typedef zaf_cc_config_entry_v1_t zaf_cc_config_entry_latest_t
Eases the upgrade to future versions of the CC config struct.
Variable Documentation#
__start_zw_cc_handlers_v5#
const CC_handler_map_latest_t __start_zw_cc_handlers_v5
This is the first of the registered app handlers.
__stop_zw_cc_handlers_v5#
const CC_handler_map_latest_t __stop_zw_cc_handlers_v5
This marks the end of the handlers.
The element after the last element. This means that this element is not valid.