gyo
SBDBT.h@7:30e05998769b, 2017-08-15 (annotated)
- Committer:
- gotto0
- Date:
- Tue Aug 15 04:13:58 2017 +0000
- Revision:
- 7:30e05998769b
- Parent:
- 6:da71294502ee
- Child:
- 8:f3e2b37e206f
update
Who changed what in which revision?
User | Revision | Line number | New 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 | 7:30e05998769b | 5 | //data[1] |
gotto0 | 7:30e05998769b | 6 | |
gotto0 | 7:30e05998769b | 7 | |
gotto0 | 7:30e05998769b | 8 | //data[2] |
gotto0 | 7:30e05998769b | 9 | #define UE_ 0x01 |
gotto0 | 7:30e05998769b | 10 | #define SITA_ 0x02 |
gotto0 | 7:30e05998769b | 11 | #define MIGI_ 0x04 |
gotto0 | 7:30e05998769b | 12 | #define HIDARI_ 0x08 |
gotto0 | 6:da71294502ee | 13 | |
gotto0 | 0:afe58893bfe7 | 14 | namespace raven |
gotto0 | 6:da71294502ee | 15 | { |
gotto0 | 0:afe58893bfe7 | 16 | class SBDBT |
gotto0 | 0:afe58893bfe7 | 17 | { |
gotto0 | 0:afe58893bfe7 | 18 | private: |
gotto0 | 0:afe58893bfe7 | 19 | char i; |
gotto0 | 1:8810976be033 | 20 | char length; |
gotto0 | 1:8810976be033 | 21 | char value; |
gotto0 | 1:8810976be033 | 22 | char position; |
gotto0 | 2:1472e7c5317d | 23 | char *tmp; |
gotto0 | 2:1472e7c5317d | 24 | Serial *sr; |
gotto0 | 0:afe58893bfe7 | 25 | |
gotto0 | 0:afe58893bfe7 | 26 | public: |
gotto0 | 4:3f384ebf4509 | 27 | char readable; |
gotto0 | 1:8810976be033 | 28 | char *data; |
gotto0 | 6:da71294502ee | 29 | char *data_p; |
gotto0 | 0:afe58893bfe7 | 30 | SBDBT(PinName, PinName); |
gotto0 | 1:8810976be033 | 31 | SBDBT(PinName, PinName, int); |
gotto0 | 1:8810976be033 | 32 | void getf(); |
gotto0 | 6:da71294502ee | 33 | void print(); |
gotto0 | 5:a4a994824c96 | 34 | char maru(); |
gotto0 | 5:a4a994824c96 | 35 | char batu(); |
gotto0 | 5:a4a994824c96 | 36 | char sikaku(); |
gotto0 | 5:a4a994824c96 | 37 | char sankaku(); |
gotto0 | 5:a4a994824c96 | 38 | char L1(); |
gotto0 | 5:a4a994824c96 | 39 | char L2(); |
gotto0 | 5:a4a994824c96 | 40 | char R1(); |
gotto0 | 5:a4a994824c96 | 41 | char R2(); |
gotto0 | 5:a4a994824c96 | 42 | char ue(); |
gotto0 | 5:a4a994824c96 | 43 | char sita(); |
gotto0 | 5:a4a994824c96 | 44 | char migi(); |
gotto0 | 5:a4a994824c96 | 45 | char hidari(); |
gotto0 | 6:da71294502ee | 46 | signed char rs_x(); |
gotto0 | 6:da71294502ee | 47 | signed char rs_y(); |
gotto0 | 6:da71294502ee | 48 | signed char ls_x(); |
gotto0 | 6:da71294502ee | 49 | signed char ls_y(); |
gotto0 | 6:da71294502ee | 50 | char rs_x_check(); |
gotto0 | 6:da71294502ee | 51 | char rs_y_check(); |
gotto0 | 6:da71294502ee | 52 | char ls_x_check(); |
gotto0 | 6:da71294502ee | 53 | char ls_y_check(); |
gotto0 | 0:afe58893bfe7 | 54 | ~SBDBT(); |
gotto0 | 0:afe58893bfe7 | 55 | }; |
gotto0 | 0:afe58893bfe7 | 56 | |
gotto0 | 0:afe58893bfe7 | 57 | }//namespace |
gotto0 | 0:afe58893bfe7 | 58 | #endif |