Versão sem FFT e aquisição por DMA. 256 amostras.
Dependencies: EthernetInterface NTPClient mbed-rtos mbed
Headers/TelnetServer.h@0:e57bc370d339, 2016-01-05 (annotated)
- Committer:
- rebonatto
- Date:
- Tue Jan 05 11:45:44 2016 +0000
- Revision:
- 0:e57bc370d339
Vers?o est?vel sem calculo de FFT. Aquisi??o por DMA. Usa 256 amostras.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rebonatto | 0:e57bc370d339 | 1 | #include "mbed.h" |
rebonatto | 0:e57bc370d339 | 2 | #include "rtos.h" |
rebonatto | 0:e57bc370d339 | 3 | |
rebonatto | 0:e57bc370d339 | 4 | #include "EthernetInterface.h" |
rebonatto | 0:e57bc370d339 | 5 | |
rebonatto | 0:e57bc370d339 | 6 | typedef int(*cmd_function)(TCPSocketConnection *conn,char**,int); |
rebonatto | 0:e57bc370d339 | 7 | |
rebonatto | 0:e57bc370d339 | 8 | struct telnet_cmd_handler { |
rebonatto | 0:e57bc370d339 | 9 | char* command_name; |
rebonatto | 0:e57bc370d339 | 10 | cmd_function pfn; |
rebonatto | 0:e57bc370d339 | 11 | }; |
rebonatto | 0:e57bc370d339 | 12 | |
rebonatto | 0:e57bc370d339 | 13 | |
rebonatto | 0:e57bc370d339 | 14 | class TelnetServer |
rebonatto | 0:e57bc370d339 | 15 | { |
rebonatto | 0:e57bc370d339 | 16 | static const struct telnet_cmd_handler cmds[]; |
rebonatto | 0:e57bc370d339 | 17 | |
rebonatto | 0:e57bc370d339 | 18 | public: |
rebonatto | 0:e57bc370d339 | 19 | static void TelnetServer_Thread(void const* arg); |
rebonatto | 0:e57bc370d339 | 20 | static void TelnetSession(TCPSocketConnection *conn); |
rebonatto | 0:e57bc370d339 | 21 | static void option_negotiator(TCPSocketConnection *conn,unsigned char opt_cmd,unsigned char opt_param); |
rebonatto | 0:e57bc370d339 | 22 | static int HelpCommand(TCPSocketConnection *conn,char** argv,int argc); |
rebonatto | 0:e57bc370d339 | 23 | static int ListParamCommand(TCPSocketConnection *conn,char** argv,int argc); |
rebonatto | 0:e57bc370d339 | 24 | static int GetParamCommand(TCPSocketConnection *conn,char** argv,int argc); |
rebonatto | 0:e57bc370d339 | 25 | static int SetParamCommand(TCPSocketConnection *conn,char** argv,int argc); |
rebonatto | 0:e57bc370d339 | 26 | static int ResetCommand(TCPSocketConnection *conn,char** argv,int argc); |
rebonatto | 0:e57bc370d339 | 27 | static int RemoveCommand(TCPSocketConnection *conn,char** argv,int argc); |
rebonatto | 0:e57bc370d339 | 28 | static int VersionCommand(TCPSocketConnection *conn,char** argv,int argc); |
rebonatto | 0:e57bc370d339 | 29 | static int UpdateCommand(TCPSocketConnection *conn,char** argv,int argc); |
rebonatto | 0:e57bc370d339 | 30 | |
rebonatto | 0:e57bc370d339 | 31 | }; |