Library for PAT9125 on L476RG platform

Fork of pat9125_mbed by PixArt Imaging

Revision:
0:3459848530ee
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pat9125_mbed.h	Fri Oct 20 11:07:23 2017 +0000
@@ -0,0 +1,31 @@
+#ifndef PAT9125_MBED_H
+#define PAT9125_MBED_H
+#include <stdint.h>
+#include <stddef.h>
+#include "mbed.h"
+#include "pat9125_i2c.h"
+#include "pixart_lcm.h"
+
+typedef uint8_t boolean;
+typedef struct
+{
+    pat9125_i2c         *p_i2c;
+    Serial              *p_pc ;
+    DigitalIn           *pBTN_L ;
+    DigitalIn           *pBTN_R ;
+    InterruptIn         *pINT ;
+    DigitalOut          *pRLED ;
+    DigitalOut          *pGLED ;
+    pixart_lcm          *pLCM ;    
+    uint8_t             slave_id ;
+    boolean             sen_status ;
+} pat9125_mbed_state_s;
+
+class pat9125_mbed
+{
+    public:           
+        pat9125_mbed(pat9125_mbed_state_s *state) ;
+        void task() ;
+};
+
+#endif
\ No newline at end of file