Kiko Ishimoto
/
Nucleo_spi
MBEDテスト
Registar.h@0:5af71b978fb7, 2015-06-19 (annotated)
- Committer:
- kikoaac
- Date:
- Fri Jun 19 06:36:41 2015 +0000
- Revision:
- 0:5af71b978fb7
- Child:
- 2:1194c29429bf
??????????
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kikoaac | 0:5af71b978fb7 | 1 | #include "mbed.h" |
kikoaac | 0:5af71b978fb7 | 2 | #include "Defines.h" |
kikoaac | 0:5af71b978fb7 | 3 | #define Red 0x01 |
kikoaac | 0:5af71b978fb7 | 4 | #define Green 0x02 |
kikoaac | 0:5af71b978fb7 | 5 | #define Blue 0x04 |
kikoaac | 0:5af71b978fb7 | 6 | SPISlave *spi; |
kikoaac | 0:5af71b978fb7 | 7 | I2CSlave *i2c; |
kikoaac | 0:5af71b978fb7 | 8 | DigitalIn *Mode; |
kikoaac | 0:5af71b978fb7 | 9 | BusIn *Address; |
kikoaac | 0:5af71b978fb7 | 10 | BusOut LED(Red_Pin,Green_Pin,Blue_Pin); |
kikoaac | 0:5af71b978fb7 | 11 | |
kikoaac | 0:5af71b978fb7 | 12 | |
kikoaac | 0:5af71b978fb7 | 13 | |
kikoaac | 0:5af71b978fb7 | 14 | |
kikoaac | 0:5af71b978fb7 | 15 | #define MotorMode 0x04 |
kikoaac | 0:5af71b978fb7 | 16 | #define MotorState 0x0e |
kikoaac | 0:5af71b978fb7 | 17 | #define Who_am_I 0x0 |
kikoaac | 0:5af71b978fb7 | 18 | #define MotorPWM 0x0f |
kikoaac | 0:5af71b978fb7 | 19 | #define MotorPWM2 0x10 |
kikoaac | 0:5af71b978fb7 | 20 | #define MoterRevolutionL 0x11 |
kikoaac | 0:5af71b978fb7 | 21 | #define MoterRevolutionH 0x12 |
kikoaac | 0:5af71b978fb7 | 22 | #define MoterPulseL 0x13 |
kikoaac | 0:5af71b978fb7 | 23 | #define MoterPulseH 0x14 |
kikoaac | 0:5af71b978fb7 | 24 | #define MoterSpeedL 0x15 |
kikoaac | 0:5af71b978fb7 | 25 | #define MoterSpeedH 0x16 |
kikoaac | 0:5af71b978fb7 | 26 | #define Automatic 0x0 |
kikoaac | 0:5af71b978fb7 | 27 | #define MotorP 0x23 |
kikoaac | 0:5af71b978fb7 | 28 | #define MotorI 0x24 |
kikoaac | 0:5af71b978fb7 | 29 | #define MotorD 0x25 |
kikoaac | 0:5af71b978fb7 | 30 | #define FinishAuto 0x00 |
kikoaac | 0:5af71b978fb7 | 31 | #define TargetSpeed 0x00 |
kikoaac | 0:5af71b978fb7 | 32 | #define TargetAngle2 0x22 |
kikoaac | 0:5af71b978fb7 | 33 | #define TargetAngle 0x21 |
kikoaac | 0:5af71b978fb7 | 34 | #define TargetSpeed2 0x00 |
kikoaac | 0:5af71b978fb7 | 35 | #define PulsePerRev 0x18 |
kikoaac | 0:5af71b978fb7 | 36 | #define PulsePerRev2 0x19 |
kikoaac | 0:5af71b978fb7 | 37 | #define RotateMode 0x17 |
kikoaac | 0:5af71b978fb7 | 38 | |
kikoaac | 0:5af71b978fb7 | 39 | |
kikoaac | 0:5af71b978fb7 | 40 |