ian rau / Mbed 2 deprecated ProjectVLC

Dependencies:   EthernetInterface mbed-rto mbed

Fork of ProjectVLC by Klaas Govaerts

Embed: (wiki syntax)

« Back to documentation index

Interpreter Class Reference

Interpreter Class Reference

Class used to interpret text commands. More...

#include <Interpreter.h>

Public Member Functions

 Interpreter (Queue< int, 8 > *queue)
void executeCommand (char *command)
 Interprets a text command, and push the result on the queue.

Detailed Description

Class used to interpret text commands.

Definition at line 10 of file Interpreter.h.


Constructor & Destructor Documentation

Interpreter ( Queue< int, 8 > *  queue )
Parameters:
queueA pointer to the queue where the results will be written.

Definition at line 5 of file Interpreter.cpp.


Member Function Documentation

void executeCommand ( char *  command )

Interprets a text command, and push the result on the queue.

Syntax: The number of the LED Dash (-) The orientation (left,right,up,down or ignore). Multiple LEDS can be set up in one command, by using a whitespace. Example: 0-left 1-right 2-up

Parameters:
commandA character array representing the command.

Definition at line 9 of file Interpreter.cpp.