uMIDI
The swiss army knife for quick and easy developement of MIDI applications.
|
Command specification. More...
#include <serial_communication.h>
Data Fields | |
PGM_P | cmd_string |
The command as typed in the console. More... | |
PGM_P | help_string |
cmd_handler_t | handler |
Command specification.
Note: The strings must be placed in program space. Unfortunately this is a two-step process: First you have to define the string in program space:
You can then reference this string in the definition of a command struct. Please look at the USB-ready application template for an examplary command definition.
PGM_P serial_command::cmd_string |
The command as typed in the console.
cmd_handler_t serial_command::handler |
Handler to call when cmd_string is recognized
cmd | the full command line |
true
if command execution succeeded, false
otherwise PGM_P serial_command::help_string |
Description of the command (used by the help
command)
The description may contain newline characters, which will be automatically followed by white space in the help message output to ensure nice formatting. The first line specifies command parameters or options, which are printed directly after the cmd_string, so if your command does not take any, but the description does not fit in one line, you should specify an empty first line.