PAT9125 on K64F

Dependencies:   pat9125_mbed mbed

Committer:
pixus_mbed
Date:
Tue Oct 03 07:26:38 2017 +0000
Revision:
0:411244c71423
1st version : OTS, LCM and Serial output are work.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pixus_mbed 0:411244c71423 1 #ifndef PAT9125_MBED_H
pixus_mbed 0:411244c71423 2 #define PAT9125_MBED_H
pixus_mbed 0:411244c71423 3 #include "stdint.h"
pixus_mbed 0:411244c71423 4 #include "mbed.h"
pixus_mbed 0:411244c71423 5 #include "pat9125_i2c.h"
pixus_mbed 0:411244c71423 6 #include "pixart_lcm.h"
pixus_mbed 0:411244c71423 7
pixus_mbed 0:411244c71423 8 typedef uint8_t boolean;
pixus_mbed 0:411244c71423 9 typedef struct
pixus_mbed 0:411244c71423 10 {
pixus_mbed 0:411244c71423 11 pat9125_i2c *p_i2c;
pixus_mbed 0:411244c71423 12 Serial *p_pc ;
pixus_mbed 0:411244c71423 13 DigitalIn *pBTN_L ;
pixus_mbed 0:411244c71423 14 DigitalIn *pBTN_R ;
pixus_mbed 0:411244c71423 15 InterruptIn *pINT ;
pixus_mbed 0:411244c71423 16 DigitalOut *pRLED ;
pixus_mbed 0:411244c71423 17 DigitalOut *pGLED ;
pixus_mbed 0:411244c71423 18 pixart_lcm *pLCM ;
pixus_mbed 0:411244c71423 19 uint8_t slave_id ;
pixus_mbed 0:411244c71423 20 boolean sen_status ;
pixus_mbed 0:411244c71423 21 } pat9125_mbed_state_s;
pixus_mbed 0:411244c71423 22
pixus_mbed 0:411244c71423 23 class pat9125_mbed
pixus_mbed 0:411244c71423 24 {
pixus_mbed 0:411244c71423 25 public:
pixus_mbed 0:411244c71423 26 pat9125_mbed(pat9125_mbed_state_s *state) ;
pixus_mbed 0:411244c71423 27 void task() ;
pixus_mbed 0:411244c71423 28 };
pixus_mbed 0:411244c71423 29
pixus_mbed 0:411244c71423 30 #endif