PLANET-Q ES920LR Library

Dependents:   IZU2020_GROUND_STATION IZU2020_AVIONICS IZU2020_AVIONICS

Revision:
0:064d3711be83
Child:
1:a5114a32febe
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PQES920LR.h	Tue Dec 17 09:06:01 2019 +0000
@@ -0,0 +1,25 @@
+#ifndef PQES920LR_H
+#define PQES920LR_H
+
+class ES920LR {
+private:
+    Serial *_serial;
+    char tx_buf[52];
+    char rx_buf[52];
+    char rx_size;
+    int index;
+    int flag;
+    bool response;
+    
+    void (*func)(char*);
+    
+public:
+    ES920LR(Serial &serial);
+    void send(char *data, int size);
+    void attach(void(*func_ptr)(char*));
+
+private:
+    void receive();
+};
+
+#endif
\ No newline at end of file