gyo
SBDBT.h
- Committer:
- gotto0
- Date:
- 2017-08-13
- Revision:
- 6:da71294502ee
- Parent:
- 5:a4a994824c96
- Child:
- 7:30e05998769b
File content as of revision 6:da71294502ee:
#ifndef INCLDUED_SBDBT_h_ #define INCLDUED_SBDBT_h_ #include "mbed.h" #define MARU_ 0x4000 #define BATU_ 0x2000 #define SIKAKU_ 0x0001 #define SANKAKU_ 0x1000 #define L1_ 0x0002 #define L2_ 0x0004 #define R1_ 0x0008 #define R2_ 0x0010 #define UE_ 0x0100 #define SITA_ 0x0200 #define MIGI_ 0x0400 #define HIDARI_ 0x0800 namespace raven { class SBDBT { private: char i; char length; char value; char position; char *tmp; Serial *sr; public: char readable; char *data; char *data_p; SBDBT(PinName, PinName); SBDBT(PinName, PinName, int); void getf(); int sw(); void print(); char maru(); char batu(); char sikaku(); char sankaku(); char L1(); char L2(); char R1(); char R2(); char ue(); char sita(); char migi(); char hidari(); signed char rs_x(); signed char rs_y(); signed char ls_x(); signed char ls_y(); char rs_x_check(); char rs_y_check(); char ls_x_check(); char ls_y_check(); ~SBDBT(); }; }//namespace #endif