Slave

Revision:
0:cb801dad3124
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Slave.h	Tue Jun 04 17:00:29 2019 +0000
@@ -0,0 +1,26 @@
+#ifndef MBED_SLAVE_H
+#define MBED_SLAVE_H
+ 
+#include "mbed.h"
+ 
+class SLAVE {
+public:
+    SLAVE(PinName TX, PinName RX,PinName AWAKE);
+
+    void  Command(uint8_t _Command);
+    bool  Answer(); 
+    bool  Mensaje(); 
+    bool  Available();
+    void  Send_Hosting(char Parquimetro[],char Municipio[],char Estado[]);
+    void  Send_User(char Parquimetro[],char Municipio[],int Tiempo,char Espacio[],char Track2[]);
+    void  Awake();
+    void  Sleep(); 
+    char  Recibe();
+    void  UartInterruption();
+  
+private:  
+    RawSerial    Uart;
+    DigitalOut   _AWAKE;
+};
+ 
+#endif
\ No newline at end of file