Slave
Slave.h@0:cb801dad3124, 2019-06-04 (annotated)
- Committer:
- williequesada
- Date:
- Tue Jun 04 17:00:29 2019 +0000
- Revision:
- 0:cb801dad3124
pablo
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
williequesada | 0:cb801dad3124 | 1 | #ifndef MBED_SLAVE_H |
williequesada | 0:cb801dad3124 | 2 | #define MBED_SLAVE_H |
williequesada | 0:cb801dad3124 | 3 | |
williequesada | 0:cb801dad3124 | 4 | #include "mbed.h" |
williequesada | 0:cb801dad3124 | 5 | |
williequesada | 0:cb801dad3124 | 6 | class SLAVE { |
williequesada | 0:cb801dad3124 | 7 | public: |
williequesada | 0:cb801dad3124 | 8 | SLAVE(PinName TX, PinName RX,PinName AWAKE); |
williequesada | 0:cb801dad3124 | 9 | |
williequesada | 0:cb801dad3124 | 10 | void Command(uint8_t _Command); |
williequesada | 0:cb801dad3124 | 11 | bool Answer(); |
williequesada | 0:cb801dad3124 | 12 | bool Mensaje(); |
williequesada | 0:cb801dad3124 | 13 | bool Available(); |
williequesada | 0:cb801dad3124 | 14 | void Send_Hosting(char Parquimetro[],char Municipio[],char Estado[]); |
williequesada | 0:cb801dad3124 | 15 | void Send_User(char Parquimetro[],char Municipio[],int Tiempo,char Espacio[],char Track2[]); |
williequesada | 0:cb801dad3124 | 16 | void Awake(); |
williequesada | 0:cb801dad3124 | 17 | void Sleep(); |
williequesada | 0:cb801dad3124 | 18 | char Recibe(); |
williequesada | 0:cb801dad3124 | 19 | void UartInterruption(); |
williequesada | 0:cb801dad3124 | 20 | |
williequesada | 0:cb801dad3124 | 21 | private: |
williequesada | 0:cb801dad3124 | 22 | RawSerial Uart; |
williequesada | 0:cb801dad3124 | 23 | DigitalOut _AWAKE; |
williequesada | 0:cb801dad3124 | 24 | }; |
williequesada | 0:cb801dad3124 | 25 | |
williequesada | 0:cb801dad3124 | 26 | #endif |