Modified for W5500 Ethernet initialize Added the Ethernet interface re-initialize code Added the connection retry
Dependents: ThingPlug_Ethernet_Example
Fork of GMMP_mbed by
Network/TCPclient/Print.h@5:9bbb6933559b, 2015-08-12 (annotated)
- Committer:
- hkjung
- Date:
- Wed Aug 12 08:58:58 2015 +0000
- Revision:
- 5:9bbb6933559b
- Parent:
- 0:7e575e5f88ec
Ethernet interface reinitialize code added
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lesmin | 0:7e575e5f88ec | 1 | #ifndef Print_h |
lesmin | 0:7e575e5f88ec | 2 | #define Print_h |
lesmin | 0:7e575e5f88ec | 3 | |
lesmin | 0:7e575e5f88ec | 4 | #include <stddef.h> |
lesmin | 0:7e575e5f88ec | 5 | #include <stdint.h> |
lesmin | 0:7e575e5f88ec | 6 | |
lesmin | 0:7e575e5f88ec | 7 | class Print { |
lesmin | 0:7e575e5f88ec | 8 | public: |
lesmin | 0:7e575e5f88ec | 9 | size_t print(const char* s); |
lesmin | 0:7e575e5f88ec | 10 | size_t print(char c); |
lesmin | 0:7e575e5f88ec | 11 | size_t print(int n); |
lesmin | 0:7e575e5f88ec | 12 | size_t print(long n); |
lesmin | 0:7e575e5f88ec | 13 | size_t print(double n, int digits = 2); |
lesmin | 0:7e575e5f88ec | 14 | |
lesmin | 0:7e575e5f88ec | 15 | size_t println(const char* s); |
lesmin | 0:7e575e5f88ec | 16 | size_t println(char c); |
lesmin | 0:7e575e5f88ec | 17 | size_t println(int n); |
lesmin | 0:7e575e5f88ec | 18 | size_t println(long n); |
lesmin | 0:7e575e5f88ec | 19 | size_t println(double n, int digits = 2); |
lesmin | 0:7e575e5f88ec | 20 | size_t println(); |
lesmin | 0:7e575e5f88ec | 21 | |
lesmin | 0:7e575e5f88ec | 22 | virtual size_t write(uint8_t c) = 0; |
lesmin | 0:7e575e5f88ec | 23 | virtual size_t write(const uint8_t* buf, size_t size); |
lesmin | 0:7e575e5f88ec | 24 | }; |
lesmin | 0:7e575e5f88ec | 25 | |
lesmin | 0:7e575e5f88ec | 26 | #endif |