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@0:c64e1194230b, 2014-07-09 (annotated)
- Committer:
- rebonatto
- Date:
- Wed Jul 09 21:16:23 2014 +0000
- Revision:
- 0:c64e1194230b
Vers?o do Protegemed com calculo de tempo de fuga, overflow, underflow e novo valor m?dio (manual).
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rebonatto | 0:c64e1194230b | 1 | #include "mbed.h" |
rebonatto | 0:c64e1194230b | 2 | #include "rtos.h" |
rebonatto | 0:c64e1194230b | 3 | |
rebonatto | 0:c64e1194230b | 4 | #include "EthernetInterface.h" |
rebonatto | 0:c64e1194230b | 5 | |
rebonatto | 0:c64e1194230b | 6 | typedef int(*cmd_function)(TCPSocketConnection *conn,char**,int); |
rebonatto | 0:c64e1194230b | 7 | |
rebonatto | 0:c64e1194230b | 8 | struct telnet_cmd_handler { |
rebonatto | 0:c64e1194230b | 9 | char* command_name; |
rebonatto | 0:c64e1194230b | 10 | cmd_function pfn; |
rebonatto | 0:c64e1194230b | 11 | }; |
rebonatto | 0:c64e1194230b | 12 | |
rebonatto | 0:c64e1194230b | 13 | |
rebonatto | 0:c64e1194230b | 14 | class TelnetServer |
rebonatto | 0:c64e1194230b | 15 | { |
rebonatto | 0:c64e1194230b | 16 | static const struct telnet_cmd_handler cmds[]; |
rebonatto | 0:c64e1194230b | 17 | |
rebonatto | 0:c64e1194230b | 18 | public: |
rebonatto | 0:c64e1194230b | 19 | static void TelnetServer_Thread(void const* arg); |
rebonatto | 0:c64e1194230b | 20 | static void TelnetSession(TCPSocketConnection *conn); |
rebonatto | 0:c64e1194230b | 21 | static void option_negotiator(TCPSocketConnection *conn,unsigned char opt_cmd,unsigned char opt_param); |
rebonatto | 0:c64e1194230b | 22 | static int HelpCommand(TCPSocketConnection *conn,char** argv,int argc); |
rebonatto | 0:c64e1194230b | 23 | static int ListParamCommand(TCPSocketConnection *conn,char** argv,int argc); |
rebonatto | 0:c64e1194230b | 24 | static int GetParamCommand(TCPSocketConnection *conn,char** argv,int argc); |
rebonatto | 0:c64e1194230b | 25 | static int SetParamCommand(TCPSocketConnection *conn,char** argv,int argc); |
rebonatto | 0:c64e1194230b | 26 | static int ResetCommand(TCPSocketConnection *conn,char** argv,int argc); |
rebonatto | 0:c64e1194230b | 27 | static int RemoveCommand(TCPSocketConnection *conn,char** argv,int argc); |
rebonatto | 0:c64e1194230b | 28 | static int VersionCommand(TCPSocketConnection *conn,char** argv,int argc); |
rebonatto | 0:c64e1194230b | 29 | static int UpdateCommand(TCPSocketConnection *conn,char** argv,int argc); |
rebonatto | 0:c64e1194230b | 30 | |
rebonatto | 0:c64e1194230b | 31 | }; |