Typedefs | |
typedef void * | zaf_cc_context_t |
typedef bool(* | zaf_cc_invoker_callback_t) (CC_handler_map_latest_t const *const p_cc_entry, zaf_cc_context_t context) |
typedef bool(* | zaf_cc_config_invoker_callback_t) (zaf_cc_config_entry_latest_t const *const p_cc_config_entry, void *context) |
Functions | |
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) |
received_frame_status_t | invoke_cc_handler (cc_handler_input_t *input, cc_handler_output_t *output) |
void | ZAF_CC_init_specific (uint8_t cmdClass) |
void | ZAF_CC_reset_specific (uint8_t cmdClass) |
void | ZAF_CC_foreach (zaf_cc_invoker_callback_t callback, zaf_cc_context_t context) |
size_t | ZAF_CC_handler_map_size (void) |
void | ZAF_CC_config_foreach (zaf_cc_config_invoker_callback_t callback, void *context) |
size_t | ZAF_CC_config_entry_size (void) |
typedef bool(* zaf_cc_config_invoker_callback_t) (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.
typedef void* zaf_cc_context_t |
typedef bool(* zaf_cc_invoker_callback_t) (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.
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.
This function is effectively a wrapper of ZAF_CC_invoke_specific() since it finds the corresponding CC entry and invokes ZAF_CC_invoke_specific().
[in] | input | Input data. See cc_handler_input_t for details |
[out] | output | Output data. See cc_handler_output_t for details |
size_t ZAF_CC_config_entry_size | ( | void | ) |
Returns the size of the config entry
void ZAF_CC_config_foreach | ( | zaf_cc_config_invoker_callback_t | callback, |
void * | context ) |
Invokes callback for each registered CC configuration.
Will stop if the callback returns true.
callback | Callback function to invoke. |
context | Context to pass on to the callback function. |
void ZAF_CC_foreach | ( | zaf_cc_invoker_callback_t | callback, |
zaf_cc_context_t | context ) |
Invokes callback for each registered CC.
Will stop if the callback returns true.
callback | Callback function to invoke. |
context | Context to pass on to the callback function. |
size_t ZAF_CC_handler_map_size | ( | void | ) |
Returns the size of the handler map
void ZAF_CC_init_specific | ( | uint8_t | cmdClass | ) |
Initializes a specific command class.
cmdClass | The CC to initialize |
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.
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.
[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 |
void ZAF_CC_reset_specific | ( | uint8_t | cmdClass | ) |
Resets specific command class.
cmdClass | The CC to reset |