DCCpp
This is the library version of a program for Arduino to control railroading DCC devices.
TextCommand Struct Reference

#include "TextCommand.h"

Static Public Member Functions

static void init (volatile RegisterList *, volatile RegisterList *, CurrentMonitor *)
 
static bool parse (char *com)
 
static void process ()
 

Static Public Attributes

static char commandString [MAX_COMMAND_LENGTH+1]
 

Detailed Description

DCC++ BASE STATION COMMUNICATES VIA THE SERIAL PORT USING SINGLE-CHARACTER TEXT COMMANDS WITH OPTIONAL PARAMETERS, AND BRACKETED BY < AND > SYMBOLS. SPACES BETWEEN PARAMETERS ARE REQUIRED. SPACES ANYWHERE ELSE ARE IGNORED. A SPACE BETWEEN THE SINGLE-CHARACTER COMMAND AND THE FIRST PARAMETER IS ALSO NOT REQUIRED.

Definition at line 29 of file TextCommand.h.

Member Function Documentation

static bool TextCommand::parse ( char *  com)
static

Analyze text messages and translate them in DCC commands.

Parameters
comText command. The syntax of a command is '1>' for instance to start DCC signal on the tracks. The starting '<' character must be removed.
Returns
False if the syntax of the command is not conform.
void TextCommand::process ( )
static

Receive text messages from external interfaces : Serial or Ethernet..

Definition at line 37 of file TextCommand.cpp.


The documentation for this struct was generated from the following files: