kinect受信用ライブラリ

Committer:
skouki
Date:
Tue Aug 28 04:43:00 2018 +0000
Revision:
0:cb6fcdae7ecf
ver2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
skouki 0:cb6fcdae7ecf 1 #ifndef MBED_KINECTRX_H
skouki 0:cb6fcdae7ecf 2 #define MBED_KINECTRX_H
skouki 0:cb6fcdae7ecf 3
skouki 0:cb6fcdae7ecf 4 #include "mbed.h"
skouki 0:cb6fcdae7ecf 5 #include "FEP.h"
skouki 0:cb6fcdae7ecf 6 #include "cstdint"
skouki 0:cb6fcdae7ecf 7 #include "pin_config.h"
skouki 0:cb6fcdae7ecf 8
skouki 0:cb6fcdae7ecf 9 class KinectRX{
skouki 0:cb6fcdae7ecf 10 public:
skouki 0:cb6fcdae7ecf 11 KinectRX();
skouki 0:cb6fcdae7ecf 12 void receive_data();
skouki 0:cb6fcdae7ecf 13 int get_mode();
skouki 0:cb6fcdae7ecf 14 int get_distance();
skouki 0:cb6fcdae7ecf 15
skouki 0:cb6fcdae7ecf 16 private:
skouki 0:cb6fcdae7ecf 17 char data[5];
skouki 0:cb6fcdae7ecf 18 FEP fep;
skouki 0:cb6fcdae7ecf 19 int count;
skouki 0:cb6fcdae7ecf 20 uint8_t temp,len;
skouki 0:cb6fcdae7ecf 21 };
skouki 0:cb6fcdae7ecf 22
skouki 0:cb6fcdae7ecf 23 #endif