slave

Dependencies:   mbedtls-slave-prot-prod

Dependents:   _Prototipo_Produccion _Prototipo_Produccion

Revision:
0:424cd8b7203c
diff -r 000000000000 -r 424cd8b7203c Slave.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Slave.h	Tue Jun 04 16:03:43 2019 +0000
@@ -0,0 +1,33 @@
+#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  Message(); 
+    bool  Available();
+    void  Set_Time(int Time);
+    void  Set_Place(char Place[]);
+    void  Set_Track(char Track2[]);    
+    void  Send_Hosting(char Parquimetro[],char Municipio[],char Estado[]);
+    void  Send_User(char Parquimetro[],char Municipio[],int Tiempo,char Espacio[],char Track2[]);
+    void  Encryption_Data(char Parquimetro[],char Municipio[],int Tiempo,char Espacio[],char Track2[]);
+    void  Encryption_Execute();
+    void  Encryption_Send();
+    void  Encryption_Print();
+    void  Awake();
+    void  Sleep(); 
+    char  Recibe();
+    void  UartInterruption();
+  
+private:  
+    RawSerial    Uart;
+    DigitalOut   _AWAKE;
+};
+ 
+#endif
\ No newline at end of file