biblioteca que serve como midleware para as diversas placas que podem implementar esse padrão !
communication/Communication.h@6:5c06daa180c2, 2019-07-11 (annotated)
- Committer:
- AndersonIctus
- Date:
- Thu Jul 11 22:27:39 2019 -0300
- Revision:
- 6:5c06daa180c2
- Parent:
- 5:8e160ad9adf3
- Child:
- 7:cb5a0a555a53
- mudancas para leitura pelo loranwan
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AndersonIctus | 1:3a7f743de36f | 1 | #ifndef SGAM_MDW_COMMUNICATION_H |
AndersonIctus | 1:3a7f743de36f | 2 | #define SGAM_MDW_COMMUNICATION_H |
AndersonIctus | 1:3a7f743de36f | 3 | |
AndersonIctus | 5:8e160ad9adf3 | 4 | template<class D> |
AndersonIctus | 1:3a7f743de36f | 5 | class Communication { |
AndersonIctus | 1:3a7f743de36f | 6 | public: |
AndersonIctus | 1:3a7f743de36f | 7 | Communication() { }; |
AndersonIctus | 4:17005b72a3d8 | 8 | virtual ~Communication(){ }; |
AndersonIctus | 1:3a7f743de36f | 9 | |
AndersonIctus | 5:8e160ad9adf3 | 10 | virtual int initialize(D* data) = 0; |
AndersonIctus | 1:3a7f743de36f | 11 | virtual int finalize() = 0; |
AndersonIctus | 1:3a7f743de36f | 12 | |
AndersonIctus | 5:8e160ad9adf3 | 13 | virtual int connect() = 0; |
AndersonIctus | 5:8e160ad9adf3 | 14 | virtual int disconnect() = 0; |
AndersonIctus | 5:8e160ad9adf3 | 15 | |
AndersonIctus | 3:c87e6b48834e | 16 | virtual const char* getName() = 0; |
AndersonIctus | 3:c87e6b48834e | 17 | |
AndersonIctus | 3:c87e6b48834e | 18 | virtual int write(const char* data) = 0; |
AndersonIctus | 6:5c06daa180c2 | 19 | virtual int read(unsigned char* buffer, int offset) = 0; |
AndersonIctus | 4:17005b72a3d8 | 20 | |
AndersonIctus | 1:3a7f743de36f | 21 | }; |
AndersonIctus | 1:3a7f743de36f | 22 | #endif |