|
#define | HANDLER_SECTION "zw_cc_handlers_v3" |
|
#define | cc_handlers_start __start_zw_cc_handlers_v3 |
|
#define | cc_handlers_stop __stop_zw_cc_handlers_v3 |
|
#define | REGISTER_CC_V5(cc, version, handler, basic_set_mapper, basic_get_mapper, lifeline_report_cb, flags, init_cb, reset_cb) |
|
#define | REGISTER_CC_V4(cc, version, handler, basic_set_mapper, basic_get_mapper, lifeline_report_cb, flags, init_cb, reset_cb) |
|
#define | REGISTER_CC_V3(cc, version, handler, basic_set_mapper, basic_get_mapper, lifeline_report_cb, flags) |
|
#define | REGISTER_CC_V2(cc, version, handler) |
|
#define | REGISTER_CC(cc, version, handler) |
|
#define | ZAF_CC_CONFIG_SECTION "zw_zaf_cc_config" |
|
#define | ZAF_CC_REGISTER_CONFIG(cc, config, index) |
|
|
typedef struct _MULTICHAN_SOURCE_NODE_ID_ | MULTICHAN_SOURCE_NODE_ID |
|
typedef struct _MULTICHAN_DEST_NODE_ID_ | MULTICHAN_DEST_NODE_ID |
|
typedef struct _RECEIVE_OPTIONS_TYPE_EX_ | RECEIVE_OPTIONS_TYPE_EX |
|
typedef ccc_pair_t | cc_group_t |
|
typedef cc_group_t | CMD_CLASS_GRP |
|
typedef agi_profile_t | AGI_PROFILE |
|
typedef zaf_job_status_t | job_status_t |
|
typedef job_status_t | JOB_STATUS |
|
typedef transmission_result_t | TRANSMISSION_RESULT |
|
typedef void(* | cc_handler_t) (void) |
| Defines a type for the generic command class handler.
|
|
typedef received_frame_status_t(* | cc_handler_v1_t) (RECEIVE_OPTIONS_TYPE_EX *, ZW_APPLICATION_TX_BUFFER *, uint8_t) |
| Defines a type for version 1 of the command class handler.
|
|
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 *) |
| Defines a type for version 2 of the command class handler.
|
|
typedef struct _cc_handler_input_t | cc_handler_input_t |
| Defines the input parameters of a command class handler.
|
|
typedef struct _cc_handler_output_t | cc_handler_output_t |
| Defines the output parameters of a command class handler.
|
|
typedef received_frame_status_t(* | cc_handler_v3_t) (cc_handler_input_t *, cc_handler_output_t *) |
| Defines a type for version 3 of the command class handler.
|
|
typedef void(* | basic_set_mapper_t) (ZW_APPLICATION_TX_BUFFER *p_frame) |
|
typedef void(* | basic_get_mapper_t) (uint8_t endpoint, uint8_t *p_current_value, uint8_t *p_target_value, uint8_t *p_duration) |
|
typedef void(* | cc_init_function_t) (void) |
|
typedef void(* | cc_reset_function_t) (void) |
|
typedef uint8_t(* | lifeline_report_get_t) (cc_group_t *p_cc_pair) |
|
typedef CC_handler_map_v4_t | CC_handler_map_latest_t |
|
typedef void(* | ZAF_TX_Callback_t) (transmission_result_t *pTxResult) |
|
typedef void(* | ZW_TX_Callback_t) (uint8_t txStatus, TX_STATUS_TYPE *extendedTxStatus) |
|
typedef void(* | ZW_TX_Multi_Callback_t) (uint8_t txStatus) |
|
typedef void(* | ZW_Void_Callback_t) (void) |
|
typedef zaf_cc_config_entry_v1_t | zaf_cc_config_entry_latest_t |
|
#define REGISTER_CC_V3 |
( |
| cc, |
|
|
| version, |
|
|
| handler, |
|
|
| basic_set_mapper, |
|
|
| basic_get_mapper, |
|
|
| lifeline_report_cb, |
|
|
| flags ) |
Value: static const CC_handler_map_latest_t thisHandler##cc __attribute__((aligned(4), __used__, __section__(
HANDLER_SECTION ))) = {2,cc,version,(
cc_handler_t)handler,basic_set_mapper,basic_get_mapper,lifeline_report_cb,flags,
NULL,
NULL}; \
void * dummy##cc
Registers a given command class with version, handler, etc.
Every CC must register itself using the latest REGISTER_CC macro. Doing so will enable ZAF to process certain parts without the need for additional handling in the application. One example being the dispatching of command class frames to the correct command class.
Using this macro will make the linker place a variable in a specific linker section which effectively will create an array of registered command classes. ZAF uses this array to look up different information about the supported command classes.
Please see existing command classes for examples of usage.
- Parameters
-
[in] | cc | The command class number, e.g. COMMAND_CLASS_VERSION. |
[in] | version | The version of the command class the the implementation covers. |
[in] | handler | Address of the handler function. |
[in] | basic_set_mapper | Address of the Basic Set mapper function. |
[in] | basic_get_mapper | Address of the Basic Get mapper function. |
[in] | lifeline_report_cb | Pointer to a function that will set one or more command class / command pairs. Some command classes are required to report via Lifeline and each Lifeline report callback will populate the list of command class / command pairs for the Association Group Command List Report. The list of mandatory command class / command pairs can be found under "Lifeline Reports" in https://sdomembers.z-wavealliance.org/wg/AWG/document/120. |
[in] | flags | Reserved for future use. |
#define REGISTER_CC_V4 |
( |
| cc, |
|
|
| version, |
|
|
| handler, |
|
|
| basic_set_mapper, |
|
|
| basic_get_mapper, |
|
|
| lifeline_report_cb, |
|
|
| flags, |
|
|
| init_cb, |
|
|
| reset_cb ) |
Value: static const CC_handler_map_latest_t thisHandler##cc __attribute__((aligned(4), __used__, __section__(
HANDLER_SECTION ))) = {2,cc,version,(
cc_handler_t)handler,basic_set_mapper,basic_get_mapper,lifeline_report_cb,flags,init_cb,reset_cb}; \
void * dummy##cc
Registers a given command class with version, handler, etc.
Every CC must register itself using the latest REGISTER_CC macro. Doing so will enable ZAF to process certain parts without the need for additional handling in the application. One example being the dispatching of command class frames to the correct command class.
Using this macro will make the linker place a variable in a specific linker section which effectively will create an array of registered command classes. ZAF uses this array to look up different information about the supported command classes.
Please see existing command classes for examples of usage.
- Parameters
-
[in] | cc | The command class number, e.g. COMMAND_CLASS_VERSION. |
[in] | version | The version of the command class the the implementation covers. |
[in] | handler | Address of the handler function. |
[in] | basic_set_mapper | Address of the Basic Set mapper function. |
[in] | basic_get_mapper | Address of the Basic Get mapper function. |
[in] | lifeline_report_cb | Pointer to a function that will set one or more command class / command pairs. Some command classes are required to report via Lifeline and each Lifeline report callback will populate the list of command class / command pairs for the Association Group Command List Report. The list of mandatory command class / command pairs can be found under "Lifeline Reports" in https://sdomembers.z-wavealliance.org/wg/AWG/document/120. |
[in] | flags | Reserved for future use. |
[in] | init_cb | The CC init function to be invoked by ZAF_Init(). |
[in] | reset_cb | The CC reset function to be invoked on factory reset. |
#define REGISTER_CC_V5 |
( |
| cc, |
|
|
| version, |
|
|
| handler, |
|
|
| basic_set_mapper, |
|
|
| basic_get_mapper, |
|
|
| lifeline_report_cb, |
|
|
| flags, |
|
|
| init_cb, |
|
|
| reset_cb ) |
Value: static const CC_handler_map_latest_t thisHandler##cc __attribute__((aligned(4), __used__, __section__(
HANDLER_SECTION ))) = {3,cc,version,(
cc_handler_t)handler,basic_set_mapper,basic_get_mapper,lifeline_report_cb,flags,init_cb,reset_cb}; \
void * dummy##cc
Registers a given command class with version, handler, etc.
Every CC must register itself using the latest REGISTER_CC macro. Doing so will enable ZAF to process certain parts without the need for additional handling in the application. One example being the dispatching of command class frames to the correct command class.
Using this macro will make the linker place a variable in a specific linker section which effectively will create an array of registered command classes. ZAF uses this array to look up different information about the supported command classes.
Please see existing command classes for examples of usage.
- Parameters
-
[in] | cc | The command class number, e.g. COMMAND_CLASS_VERSION. |
[in] | version | The version of the command class the the implementation covers. |
[in] | handler | Address of the handler function. |
[in] | basic_set_mapper | Address of the Basic Set mapper function. |
[in] | basic_get_mapper | Address of the Basic Get mapper function. |
[in] | lifeline_report_cb | Pointer to a function that will set one or more command class / command pairs. Some command classes are required to report via Lifeline and each Lifeline report callback will populate the list of command class / command pairs for the Association Group Command List Report. The list of mandatory command class / command pairs can be found under "Lifeline Reports" in https://sdomembers.z-wavealliance.org/wg/AWG/document/120. |
[in] | flags | Reserved for future use. |
[in] | init_cb | The CC init function to be invoked by ZAF_Init(). |
[in] | reset_cb | The CC reset function to be invoked on factory reset. |