Header-File for cmd_interface.c. More...
#include <avr\io.h>
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | cmd_interface_command_table_t |
Defines | |
#define | _cmd_interface_max_length 80 |
#define | _cmd_interface_max_operand_length 12 |
#define | _cmd_interface_max_no_operands 5 |
#define | _cmd_interface_no_of_commands 5 |
#define | _cmd_interface_operand_split_sign _ASCII_COMMA |
#define | _cmd_interface_command_split_sign _ASCII_SPACE |
#define | _cmd_interface_EOL _ASCII_CR |
#define | _ASCII_BEL 0x07 |
#define | _ASCII_BS 0x08 |
#define | _ASCII_CR 0x0D |
#define | _ASCII_LF 0x0A |
#define | _ASCII_ESC 0x1B |
#define | _ASCII_DEL 0x7F |
#define | _ASCII_SPACE 0x20 |
#define | _ASCII_COMMA 0x2C |
#define | _CMD_INTERFACE_ERR_MASK 0xF8 |
#define | _CMD_INTERFACE_ERR_OP_CHAR 0x84 |
#define | _CMD_INTERFACE_ERR_OP_2_MANY 0x90 |
#define | _CMD_INTERFACE_ERR_NO_CMD 0xA0 |
#define | _CMD_INTERFACE_ERR_CMD_LINE 0xB0 |
Functions | |
int8_t | execute_cmd_interface (char *string) |
routine called to execute command interface | |
void | cmd_interface_init () |
initialisation routine for command interface variables | |
Variables | |
volatile cmd_interface_command_table_t | cmd_interface_table [_cmd_interface_no_of_commands] |
Header-File for cmd_interface.c.
Simple implementation of an command-interface Target/Compiler: AVR_MEGA / GCC(WinAVR)
\
void cmd_interface_init | ( | ) |
initialisation routine for command interface variables
none |
int8_t execute_cmd_interface | ( | char * | string | ) |
routine called to execute command interface
*string | - to attach at the actual command_line buffer |
This routine has to be called to execute the command-interface It attaches the forwarded string to the internal command-line buffer and its sub-functions interprets the line before it executes the corresponding command-function given by the user