Library for PAT9125 on L476RG platform
Fork of pat9125_mbed by
pat9125_mbed.h@1:4b7c15d9c864, 2018-02-01 (annotated)
- Committer:
- pixus_mbed
- Date:
- Thu Feb 01 02:21:50 2018 +0000
- Revision:
- 1:4b7c15d9c864
- Parent:
- 0:3459848530ee
Merge pixart_lcm to pat9125_mbed.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pixus_mbed | 0:3459848530ee | 1 | #ifndef PAT9125_MBED_H |
pixus_mbed | 0:3459848530ee | 2 | #define PAT9125_MBED_H |
pixus_mbed | 0:3459848530ee | 3 | #include <stdint.h> |
pixus_mbed | 0:3459848530ee | 4 | #include <stddef.h> |
pixus_mbed | 0:3459848530ee | 5 | #include "mbed.h" |
pixus_mbed | 0:3459848530ee | 6 | #include "pat9125_i2c.h" |
pixus_mbed | 0:3459848530ee | 7 | #include "pixart_lcm.h" |
pixus_mbed | 0:3459848530ee | 8 | |
pixus_mbed | 0:3459848530ee | 9 | typedef uint8_t boolean; |
pixus_mbed | 0:3459848530ee | 10 | typedef struct |
pixus_mbed | 0:3459848530ee | 11 | { |
pixus_mbed | 0:3459848530ee | 12 | pat9125_i2c *p_i2c; |
pixus_mbed | 0:3459848530ee | 13 | Serial *p_pc ; |
pixus_mbed | 0:3459848530ee | 14 | DigitalIn *pBTN_L ; |
pixus_mbed | 0:3459848530ee | 15 | DigitalIn *pBTN_R ; |
pixus_mbed | 0:3459848530ee | 16 | InterruptIn *pINT ; |
pixus_mbed | 0:3459848530ee | 17 | DigitalOut *pRLED ; |
pixus_mbed | 0:3459848530ee | 18 | DigitalOut *pGLED ; |
pixus_mbed | 0:3459848530ee | 19 | pixart_lcm *pLCM ; |
pixus_mbed | 0:3459848530ee | 20 | uint8_t slave_id ; |
pixus_mbed | 0:3459848530ee | 21 | boolean sen_status ; |
pixus_mbed | 0:3459848530ee | 22 | } pat9125_mbed_state_s; |
pixus_mbed | 0:3459848530ee | 23 | |
pixus_mbed | 0:3459848530ee | 24 | class pat9125_mbed |
pixus_mbed | 0:3459848530ee | 25 | { |
pixus_mbed | 0:3459848530ee | 26 | public: |
pixus_mbed | 0:3459848530ee | 27 | pat9125_mbed(pat9125_mbed_state_s *state) ; |
pixus_mbed | 0:3459848530ee | 28 | void task() ; |
pixus_mbed | 0:3459848530ee | 29 | }; |
pixus_mbed | 0:3459848530ee | 30 | |
pixus_mbed | 0:3459848530ee | 31 | #endif |