38 #ifndef SERIAL_HANDLER_MODELS_H__ 39 #define SERIAL_HANDLER_MODELS_H__ 41 #include "serial_packet.h" 42 #include "serial_cmd.h" uint16_t access_model_handle_t
Access layer handle type.
void serial_handler_models_rx(const serial_packet_t *p_cmd)
Handle model specific serial commands.
serial_handler_models_model_init_cb_t model_initialize
Initializer callback of the model registered.
access_model_id_t model_id
Model ID of the model to be registered.
Used for initializing one of the available models.
Command response to SERIAL_OPCODE_CMD_MODEL_SPECIFIC_COMMAND from the model addressed.
serial_handler_models_model_command_cb_t model_command
Command parser for the model registered.
uint32_t(* serial_handler_models_model_init_cb_t)(const serial_cmd_model_specific_init_t *p_init_params, access_model_handle_t *p_model_handle)
Initializer callback prototype used by the serial handler to forward init calls to each model...
uint32_t serial_handler_models_register(const serial_handler_models_info_t *p_model_info)
Registers a model with the serial handler so that the models presence can be seen via serial and comm...
Used for sending commands to one of the initialized models.
Information struct for registering a model with the serial handler to make it available over serial...
uint32_t(* serial_handler_models_model_command_cb_t)(const serial_cmd_model_specific_command_t *p_command_params, serial_evt_cmd_rsp_data_model_cmd_t *p_cmd_rsp)
Command callback prototype for processing model specific commands.