gyo
SBDBT.h
- Committer:
- gotto0
- Date:
- 2017-09-12
- Revision:
- 8:f3e2b37e206f
- Parent:
- 7:30e05998769b
- Child:
- 9:8538fc8f6259
File content as of revision 8:f3e2b37e206f:
#ifndef INCLDUED_SBDBT_h_ #define INCLDUED_SBDBT_h_ #include "mbed.h" //data[1] #define SHIKAKU_ 0x01 #define L1_ 0x02 #define L2_ 0x04 #define R1_ 0x08 #define R2_ 0x16 //data[2] #define UE_ 0x01 #define SITA_ 0x02 #define MIGI_ 0x04 #define HIDARI_ 0x08 #define SANKAKU_ 0x10 #define BATU_ 0x20 #define MARU_ 0x40 #define START_ 3 #define SELECT_ 12 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(); 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