Versão do protegemed que calcula o tempo em ms da fuga, calcula o numero de onverflow (valores muito baixo) e underflow (valores muito altos). Além disso, calcula um valor médio a partir dos valores capturados e não apenas pela fft.

Dependencies:   EthernetInterface mbed-rtos mbed

Headers/TelnetServer.h

Committer:
rebonatto
Date:
2014-07-09
Revision:
0:c64e1194230b

File content as of revision 0:c64e1194230b:

#include "mbed.h"
#include "rtos.h"

#include "EthernetInterface.h"

typedef int(*cmd_function)(TCPSocketConnection *conn,char**,int);

struct telnet_cmd_handler {
    char* command_name;
    cmd_function pfn;
};


class TelnetServer
{
    static const struct telnet_cmd_handler cmds[];
    
public:
    static void TelnetServer_Thread(void const* arg);    
    static void TelnetSession(TCPSocketConnection *conn);    
    static void option_negotiator(TCPSocketConnection *conn,unsigned char opt_cmd,unsigned char opt_param);    
    static int HelpCommand(TCPSocketConnection     *conn,char** argv,int argc);
    static int ListParamCommand(TCPSocketConnection *conn,char** argv,int argc);
    static int GetParamCommand(TCPSocketConnection *conn,char** argv,int argc);
    static int SetParamCommand(TCPSocketConnection *conn,char** argv,int argc);
    static int ResetCommand(TCPSocketConnection    *conn,char** argv,int argc);
    static int RemoveCommand(TCPSocketConnection   *conn,char** argv,int argc);
    static int VersionCommand(TCPSocketConnection  *conn,char** argv,int argc);
    static int UpdateCommand(TCPSocketConnection   *conn,char** argv,int argc);    
    
};