The function table entry for a particular responder model.
This can be registered with the RDMHandler by calling RDMHandler_AddModel().
Data Fields | |
| uint16_t | model_id |
| The model ID. | |
| void(* | activate_fn )() |
| Activate function. More... | |
| void(* | deactivate_fn )() |
| The function used to deactivate an RDM Model. More... | |
| int(* | ioctl_fn )(ModelIoctl command, uint8_t *data, unsigned int length) |
| The generic catch-all function. More... | |
| int(* | request_fn )(const RDMHeader *header, const uint8_t *param_data) |
| The function used to handle an RDM request. More... | |
| void(* | tasks_fn )() |
| The tasks function. More... | |
| void(* ModelEntry::activate_fn)() |
Activate function.
Called when the model is activated via RDMHandler_SetActiveModel().Activate function.
| void(* ModelEntry::deactivate_fn)() |
The function used to deactivate an RDM Model.
The deactivate function is called if this model is active, and another model becomes active via a call to RDMHandler_SetActiveModel().
| int(* ModelEntry::ioctl_fn)(ModelIoctl command, uint8_t *data, unsigned int length) |
The generic catch-all function.
| command | The ioctl command to run. |
| data | arbitrary data, depends on the ModelIoctl. |
| length | the size of the data. |
| int(* ModelEntry::request_fn)(const RDMHeader *header, const uint8_t *param_data) |
The function used to handle an RDM request.
| header | The RDM request header. |
| param_data | The RDM parameter data, or NULL if there wasn't any. |
| void(* ModelEntry::tasks_fn)() |
The tasks function.
This is called periodically by RDMHandler_Tasks().