![](/media/cache/profiles/logo_nNWQKRa.png.50x50_q85.png)
PAT9125 on K64F
Dependencies: pat9125_mbed mbed
Diff: pat9125_mbed/pat9125_mbed.h
- Revision:
- 0:411244c71423
diff -r 000000000000 -r 411244c71423 pat9125_mbed/pat9125_mbed.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pat9125_mbed/pat9125_mbed.h Tue Oct 03 07:26:38 2017 +0000 @@ -0,0 +1,30 @@ +#ifndef PAT9125_MBED_H +#define PAT9125_MBED_H +#include "stdint.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