CC_Invoker#
Typedefs#
Callback type for ZAF_CC_foreach().
Callback type for ZAF_CC_config_foreach().
Functions#
Invokes the handler with the correct arguments for a given command class entry.
Invokes a handler based on the command class in the given frame.
Initializes a specific command class.
Resets specific command class.
Invokes callback for each registered CC.
Returns the size of the handler map.
Invokes callback for each registered CC configuration.
Returns the size of the config entry.
Typedef Documentation#
zaf_cc_context_t#
typedef void* zaf_cc_context_t
72
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_CC_Invoker.h
zaf_cc_invoker_callback_t#
typedef bool(* zaf_cc_invoker_callback_t) (CC_handler_map_latest_t const *const p_cc_entry, zaf_cc_context_t context) )(CC_handler_map_latest_t const *const p_cc_entry, zaf_cc_context_t context)
Callback type for ZAF_CC_foreach().
The CC handler map must always be the latest available version.
79
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_CC_Invoker.h
zaf_cc_config_invoker_callback_t#
typedef bool(* zaf_cc_config_invoker_callback_t) (zaf_cc_config_entry_latest_t const *const p_cc_config_entry, void *context) )(zaf_cc_config_entry_latest_t const *const p_cc_config_entry, void *context)
Callback type for ZAF_CC_config_foreach().
The CC handler map must always be the latest available version.
86
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_CC_Invoker.h
Function Documentation#
ZAF_CC_invoke_specific#
received_frame_status_t ZAF_CC_invoke_specific (CC_handler_map_latest_t const *const p_cc_entry, cc_handler_input_t * input, cc_handler_output_t * output)
Invokes the handler with the correct arguments for a given command class entry.
[in] | p_cc_entry | Pointer to command class entry. |
[in] | input | Input data. See cc_handler_input_t for details |
[out] | output | Output data. See cc_handler_output_t for details |
Command class handlers can be implemented in different versions having different parameters. This function will invoke the handler with the correct set of arguments based on the handler version.
Returns
Returns RECEIVED_FRAME_STATUS_CC_NOT_FOUND if the handler version is not supported. Otherwise, the return value from the handler is passed through.
37
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_CC_Invoker.h
invoke_cc_handler#
received_frame_status_t invoke_cc_handler (cc_handler_input_t * input, cc_handler_output_t * output)
Invokes a handler based on the command class in the given frame.
[in] | input | Input data. See cc_handler_input_t for details |
[out] | output | Output data. See cc_handler_output_t for details |
This function is effectively a wrapper of ZAF_CC_invoke_specific() since it finds the corresponding CC entry and invokes ZAF_CC_invoke_specific().
Returns
Returns RECEIVED_FRAME_STATUS_CC_NOT_FOUND if the CC entry is not found or of the handler version is not supported. Otherwise, the return value from the handler is passed through.
55
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_CC_Invoker.h
ZAF_CC_init_specific#
void ZAF_CC_init_specific (uint8_t cmdClass)
Initializes a specific command class.
N/A | cmdClass | The CC to initialize |
63
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_CC_Invoker.h
ZAF_CC_reset_specific#
void ZAF_CC_reset_specific (uint8_t cmdClass)
Resets specific command class.
N/A | cmdClass | The CC to reset |
70
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_CC_Invoker.h
ZAF_CC_foreach#
void ZAF_CC_foreach (zaf_cc_invoker_callback_t callback, zaf_cc_context_t context)
Invokes callback for each registered CC.
N/A | callback | Callback function to invoke. |
N/A | context | Context to pass on to the callback function. |
Will stop if the callback returns true.
96
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_CC_Invoker.h
ZAF_CC_handler_map_size#
size_t ZAF_CC_handler_map_size (void )
Returns the size of the handler map.
N/A |
Returns
size_t Handler map size
103
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_CC_Invoker.h
ZAF_CC_config_foreach#
void ZAF_CC_config_foreach (zaf_cc_config_invoker_callback_t callback, void * context)
Invokes callback for each registered CC configuration.
N/A | callback | Callback function to invoke. |
N/A | context | Context to pass on to the callback function. |
Will stop if the callback returns true.
113
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_CC_Invoker.h
ZAF_CC_config_entry_size#
size_t ZAF_CC_config_entry_size (void )
Returns the size of the config entry.
N/A |
Returns
size_t Config entry size
120
of file /mnt/raid/workspaces/ws.WH1KakGoP/overlay/gsdk/protocol/z-wave/ZAF/ApplicationUtilities/ZAF_CC_Invoker.h