Kiko Ishimoto
/
Nucleo_spi
MBEDテスト
Registar.h@2:1194c29429bf, 2015-07-21 (annotated)
- Committer:
- kikoaac
- Date:
- Tue Jul 21 08:13:33 2015 +0000
- Revision:
- 2:1194c29429bf
- Parent:
- 0:5af71b978fb7
MotorDrive
;
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 | 2:1194c29429bf | 3 | #define RED 0x01 |
kikoaac | 2:1194c29429bf | 4 | #define GREEN 0x02 |
kikoaac | 2:1194c29429bf | 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 | |
kikoaac | 0:5af71b978fb7 | 11 | |
kikoaac | 0:5af71b978fb7 | 12 | |
kikoaac | 0:5af71b978fb7 | 13 | |
kikoaac | 0:5af71b978fb7 | 14 | #define MotorMode 0x04 |
kikoaac | 0:5af71b978fb7 | 15 | #define MotorState 0x0e |
kikoaac | 2:1194c29429bf | 16 | #define Who_am_I 0x2 |
kikoaac | 2:1194c29429bf | 17 | #define MotorPWM 0x10 |
kikoaac | 2:1194c29429bf | 18 | #define MotorPWM2 0xf |
kikoaac | 0:5af71b978fb7 | 19 | #define MoterRevolutionL 0x11 |
kikoaac | 0:5af71b978fb7 | 20 | #define MoterRevolutionH 0x12 |
kikoaac | 0:5af71b978fb7 | 21 | #define MoterPulseL 0x13 |
kikoaac | 0:5af71b978fb7 | 22 | #define MoterPulseH 0x14 |
kikoaac | 0:5af71b978fb7 | 23 | #define MoterSpeedL 0x15 |
kikoaac | 0:5af71b978fb7 | 24 | #define MoterSpeedH 0x16 |
kikoaac | 0:5af71b978fb7 | 25 | #define Automatic 0x0 |
kikoaac | 2:1194c29429bf | 26 | #define MotorP 0x30 |
kikoaac | 2:1194c29429bf | 27 | #define MotorI 0x31 |
kikoaac | 2:1194c29429bf | 28 | #define MotorD 0x32 |
kikoaac | 0:5af71b978fb7 | 29 | #define FinishAuto 0x00 |
kikoaac | 2:1194c29429bf | 30 | #define TargetSpeed 0x23 |
kikoaac | 0:5af71b978fb7 | 31 | #define TargetAngle2 0x22 |
kikoaac | 0:5af71b978fb7 | 32 | #define TargetAngle 0x21 |
kikoaac | 2:1194c29429bf | 33 | #define TargetSpeed2 0x24 |
kikoaac | 0:5af71b978fb7 | 34 | #define PulsePerRev 0x18 |
kikoaac | 0:5af71b978fb7 | 35 | #define PulsePerRev2 0x19 |
kikoaac | 2:1194c29429bf | 36 | #define PulsePerRevolutionL 0x25 |
kikoaac | 2:1194c29429bf | 37 | #define PulsePerRevolutionH 0x26 |
kikoaac | 2:1194c29429bf | 38 | #define PulsePerSec 0x27 |
kikoaac | 2:1194c29429bf | 39 | #define PulsePerSec2 0x28 |
kikoaac | 2:1194c29429bf | 40 | #define PulsePerAngle 0x20 |
kikoaac | 0:5af71b978fb7 | 41 | #define RotateMode 0x17 |
kikoaac | 0:5af71b978fb7 | 42 | |
kikoaac | 0:5af71b978fb7 | 43 | |
kikoaac | 0:5af71b978fb7 | 44 |