skm

Dependencies:   FXOS8700Q mbed

Fork of Hello_FXOS8700Q by Jim Carver

cli.h

Committer:
marcus255
Date:
2015-06-18
Revision:
7:4c834e4dad1f

File content as of revision 7:4c834e4dad1f:

#ifndef CLI_H
#define CLI_H

#include <string>
#include "mbed.h"

extern int msDelay;
extern int threshold;
extern Serial pc;

struct command { 
    string commandName;
    string commandArg;
    string commandValue;
};

void commandService (command *commandStruct);   // gets text line from user and places strings in 'command' structure
void commandValidate(command *commandStruct);   // validates if keywords are correct and performs proper actions
void clearConsole(void);                        // clears line using spaces and carriage return character

#endif