Structure for mapping a command opcode to the command processing function. More...
#include <serial_handler_common.h>
Data Fields | |
uint8_t | opcode |
Serial command opcode. More... | |
uint8_t | payload_minlen |
Expected minimum payload for this serial command (can be 0). More... | |
uint8_t | payload_optional_extra_bytes |
Additonal payload bytes: can also be 0. More... | |
serial_handler_common_cmd_cb_t | callback |
Command processing function. | |
Structure for mapping a command opcode to the command processing function.
Definition at line 65 of file serial_handler_common.h.
uint8_t serial_handler_common_opcode_to_fp_map_t::opcode |
Serial command opcode.
Definition at line 67 of file serial_handler_common.h.
uint8_t serial_handler_common_opcode_to_fp_map_t::payload_minlen |
Expected minimum payload for this serial command (can be 0).
Definition at line 68 of file serial_handler_common.h.
uint8_t serial_handler_common_opcode_to_fp_map_t::payload_optional_extra_bytes |
Additonal payload bytes: can also be 0.
Definition at line 69 of file serial_handler_common.h.