gyo

Committer:
gotto0
Date:
Sun Aug 13 03:35:38 2017 +0000
Revision:
6:da71294502ee
Parent:
5:a4a994824c96
Child:
7:30e05998769b
update

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gotto0 1:8810976be033 1 #ifndef INCLDUED_SBDBT_h_
gotto0 1:8810976be033 2 #define INCLDUED_SBDBT_h_
gotto0 0:afe58893bfe7 3 #include "mbed.h"
gotto0 0:afe58893bfe7 4
gotto0 6:da71294502ee 5 #define MARU_ 0x4000
gotto0 6:da71294502ee 6 #define BATU_ 0x2000
gotto0 6:da71294502ee 7 #define SIKAKU_ 0x0001
gotto0 6:da71294502ee 8 #define SANKAKU_ 0x1000
gotto0 6:da71294502ee 9 #define L1_ 0x0002
gotto0 6:da71294502ee 10 #define L2_ 0x0004
gotto0 6:da71294502ee 11 #define R1_ 0x0008
gotto0 6:da71294502ee 12 #define R2_ 0x0010
gotto0 6:da71294502ee 13 #define UE_ 0x0100
gotto0 6:da71294502ee 14 #define SITA_ 0x0200
gotto0 6:da71294502ee 15 #define MIGI_ 0x0400
gotto0 6:da71294502ee 16 #define HIDARI_ 0x0800
gotto0 6:da71294502ee 17
gotto0 0:afe58893bfe7 18 namespace raven
gotto0 6:da71294502ee 19 {
gotto0 0:afe58893bfe7 20 class SBDBT
gotto0 0:afe58893bfe7 21 {
gotto0 0:afe58893bfe7 22 private:
gotto0 0:afe58893bfe7 23 char i;
gotto0 1:8810976be033 24 char length;
gotto0 1:8810976be033 25 char value;
gotto0 1:8810976be033 26 char position;
gotto0 2:1472e7c5317d 27 char *tmp;
gotto0 2:1472e7c5317d 28 Serial *sr;
gotto0 0:afe58893bfe7 29
gotto0 0:afe58893bfe7 30 public:
gotto0 4:3f384ebf4509 31 char readable;
gotto0 1:8810976be033 32 char *data;
gotto0 6:da71294502ee 33 char *data_p;
gotto0 0:afe58893bfe7 34 SBDBT(PinName, PinName);
gotto0 1:8810976be033 35 SBDBT(PinName, PinName, int);
gotto0 1:8810976be033 36 void getf();
gotto0 6:da71294502ee 37 int sw();
gotto0 6:da71294502ee 38 void print();
gotto0 5:a4a994824c96 39 char maru();
gotto0 5:a4a994824c96 40 char batu();
gotto0 5:a4a994824c96 41 char sikaku();
gotto0 5:a4a994824c96 42 char sankaku();
gotto0 5:a4a994824c96 43 char L1();
gotto0 5:a4a994824c96 44 char L2();
gotto0 5:a4a994824c96 45 char R1();
gotto0 5:a4a994824c96 46 char R2();
gotto0 5:a4a994824c96 47 char ue();
gotto0 5:a4a994824c96 48 char sita();
gotto0 5:a4a994824c96 49 char migi();
gotto0 5:a4a994824c96 50 char hidari();
gotto0 6:da71294502ee 51 signed char rs_x();
gotto0 6:da71294502ee 52 signed char rs_y();
gotto0 6:da71294502ee 53 signed char ls_x();
gotto0 6:da71294502ee 54 signed char ls_y();
gotto0 6:da71294502ee 55 char rs_x_check();
gotto0 6:da71294502ee 56 char rs_y_check();
gotto0 6:da71294502ee 57 char ls_x_check();
gotto0 6:da71294502ee 58 char ls_y_check();
gotto0 0:afe58893bfe7 59 ~SBDBT();
gotto0 0:afe58893bfe7 60 };
gotto0 0:afe58893bfe7 61
gotto0 0:afe58893bfe7 62 }//namespace
gotto0 0:afe58893bfe7 63 #endif