LCC Fusion Project 1.0
LCC Automation
Loading...
Searching...
No Matches
TextCommand Struct Reference

#include <TextCommand.h>

Static Public Member Functions

static bool parse (char *com)
 
static void process ()
 

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 31 of file TextCommand.h.

Member Function Documentation

◆ parse()

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.
Here is the caller graph for this function:

◆ process()

void TextCommand::process ( )
static

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

Definition at line 54 of file TextCommand.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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