PingPong
Dependencies: EthernetInterface_pm mbed-rtos mbed
Headers/CommTCP.h@0:c8f056a185d0, 2014-03-27 (annotated)
- Committer:
- rebonatto
- Date:
- Thu Mar 27 17:39:23 2014 +0000
- Revision:
- 0:c8f056a185d0
Para testar a rede.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rebonatto | 0:c8f056a185d0 | 1 | /* |
rebonatto | 0:c8f056a185d0 | 2 | * CommTCP.h |
rebonatto | 0:c8f056a185d0 | 3 | * |
rebonatto | 0:c8f056a185d0 | 4 | * Created on: 07/07/2013 |
rebonatto | 0:c8f056a185d0 | 5 | * Author: Rebonatto |
rebonatto | 0:c8f056a185d0 | 6 | */ |
rebonatto | 0:c8f056a185d0 | 7 | #ifndef COMM_TCP_H |
rebonatto | 0:c8f056a185d0 | 8 | #define COMM_TCP_H |
rebonatto | 0:c8f056a185d0 | 9 | |
rebonatto | 0:c8f056a185d0 | 10 | #include <mbed.h> |
rebonatto | 0:c8f056a185d0 | 11 | #include <rtos.h> |
rebonatto | 0:c8f056a185d0 | 12 | |
rebonatto | 0:c8f056a185d0 | 13 | #include "EthernetInterface.h" |
rebonatto | 0:c8f056a185d0 | 14 | |
rebonatto | 0:c8f056a185d0 | 15 | #include "Configuracoes.h" |
rebonatto | 0:c8f056a185d0 | 16 | |
rebonatto | 0:c8f056a185d0 | 17 | //extern void CommTCP_Thread(void const *arg); |
rebonatto | 0:c8f056a185d0 | 18 | |
rebonatto | 0:c8f056a185d0 | 19 | class CommTCP |
rebonatto | 0:c8f056a185d0 | 20 | { |
rebonatto | 0:c8f056a185d0 | 21 | public: |
rebonatto | 0:c8f056a185d0 | 22 | |
rebonatto | 0:c8f056a185d0 | 23 | static void CommTCP_Thread(void const *arg); |
rebonatto | 0:c8f056a185d0 | 24 | static int getCountCnt() ; |
rebonatto | 0:c8f056a185d0 | 25 | static int getCountSnd() ; |
rebonatto | 0:c8f056a185d0 | 26 | static int getCont() ; |
rebonatto | 0:c8f056a185d0 | 27 | /* |
rebonatto | 0:c8f056a185d0 | 28 | static void RequestAcom(); |
rebonatto | 0:c8f056a185d0 | 29 | static void SendAcom(int tipo,int tomada); |
rebonatto | 0:c8f056a185d0 | 30 | */ |
rebonatto | 0:c8f056a185d0 | 31 | }; |
rebonatto | 0:c8f056a185d0 | 32 | |
rebonatto | 0:c8f056a185d0 | 33 | #endif //#ifndef COMM_TCP_H |