biblioteca que serve como midleware para as diversas placas que podem implementar esse padrão !

Dependents:   sgam_mdw_test

Committer:
AndersonIctus
Date:
Sat Jun 22 11:59:31 2019 -0300
Revision:
3:c87e6b48834e
Parent:
1:3a7f743de36f
Child:
4:17005b72a3d8
- inclusao de sub implementacoes do controler para listagem e inclusao de protocolos, comunicaoes e sensores !
- mudando as implementacoes internas dos dispositivos (incluindo getName com const char*)

Who changed what in which revision?

UserRevisionLine numberNew 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 1:3a7f743de36f 4 class Communication {
AndersonIctus 1:3a7f743de36f 5 public:
AndersonIctus 1:3a7f743de36f 6 Communication() { };
AndersonIctus 1:3a7f743de36f 7 ~Communication(){ };
AndersonIctus 1:3a7f743de36f 8
AndersonIctus 3:c87e6b48834e 9 virtual int initialize(const char* parameters) = 0;
AndersonIctus 1:3a7f743de36f 10 virtual int finalize() = 0;
AndersonIctus 1:3a7f743de36f 11
AndersonIctus 3:c87e6b48834e 12 virtual const char* getName() = 0;
AndersonIctus 3:c87e6b48834e 13
AndersonIctus 3:c87e6b48834e 14 virtual int write(const char* data) = 0;
AndersonIctus 1:3a7f743de36f 15 virtual int read(char* buffer, int offset) = 0;
AndersonIctus 1:3a7f743de36f 16 };
AndersonIctus 1:3a7f743de36f 17 #endif