Chen Huan
/
MotorPID
闭环步进电机
as5047.h@1:cbd6a3232d5b, 2018-04-05 (annotated)
- Committer:
- heroistired
- Date:
- Thu Apr 05 01:37:17 2018 +0000
- Revision:
- 1:cbd6a3232d5b
- Parent:
- 0:5b4f19f8cd85
New
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
heroistired | 0:5b4f19f8cd85 | 1 | #ifndef __AS5047_H |
heroistired | 0:5b4f19f8cd85 | 2 | #define __AS5047_H |
heroistired | 0:5b4f19f8cd85 | 3 | #include "mbed.h" |
heroistired | 0:5b4f19f8cd85 | 4 | #include "motor.h" |
heroistired | 0:5b4f19f8cd85 | 5 | ////////////////////////////////////////////////////////////////////////////////// |
heroistired | 0:5b4f19f8cd85 | 6 | //功能:磁编码器spi方式驱动代码 |
heroistired | 0:5b4f19f8cd85 | 7 | //简介: |
heroistired | 0:5b4f19f8cd85 | 8 | //作者:陈欢 清华大学电机工程与应用电子技术系 |
heroistired | 0:5b4f19f8cd85 | 9 | //邮箱:heroistired@gmail.com OR h-che14@mails.stinghua.edu.cn |
heroistired | 0:5b4f19f8cd85 | 10 | ////////////////////////////////////////////////////////////////////////////////// |
heroistired | 0:5b4f19f8cd85 | 11 | |
heroistired | 0:5b4f19f8cd85 | 12 | |
heroistired | 0:5b4f19f8cd85 | 13 | unsigned int AS5047_ReadData(SPI *device, DigitalOut *cs); |
heroistired | 0:5b4f19f8cd85 | 14 | |
heroistired | 0:5b4f19f8cd85 | 15 | void AS5047_Init(SPI *device, DigitalOut *cs); |
heroistired | 0:5b4f19f8cd85 | 16 | |
heroistired | 0:5b4f19f8cd85 | 17 | #endif |