Helps implement model specific serial handler functionality.
More...
Helps implement model specific serial handler functionality.
◆ serial_handler_models_model_init_cb_t
Initializer callback prototype used by the serial handler to forward init calls to each model.
- Parameters
-
[in] | p_init_params | The model initializer parameters |
[out] | p_model_handle | The pointer to a valid model handle strucure, by which the allocated model handle is returned. |
- Return values
-
NRF_SUCCESS | Command executed successfully. |
Definition at line 61 of file serial_handler_models.h.
◆ serial_handler_models_model_command_cb_t
Command callback prototype for processing model specific commands.
- Parameters
-
[in] | p_command_params | The command parameters |
[out] | p_cmd_rsp | The pointer to a valid command response strucure, to be filled out by the model handler. |
- Return values
-
NRF_SUCCESS | Command executed successfully. |
Definition at line 72 of file serial_handler_models.h.
◆ serial_handler_models_rx()
Handle model specific serial commands.
- Parameters
-
[in] | p_cmd | Serial command to handle. |
◆ serial_handler_models_register()
Registers a model with the serial handler so that the models presence can be seen via serial and commands can be forwarded to the model.
- Parameters
-
[in] | p_model_info | The model information required to register the model with the serial handler. |
- Return values
-
NRF_SUCCESS | The model is successfully registered. |
NRF_ERROR_NULL | The callbacks must be valid function pointers. |