Chen Wei Ting
/
system_ID
ver1
encoder.h@1:ded2ab55c7fb, 2018-09-12 (annotated)
- Committer:
- JJting
- Date:
- Wed Sep 12 08:47:34 2018 +0000
- Revision:
- 1:ded2ab55c7fb
- Parent:
- 0:762ec6dc5696
system ID
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JJting | 0:762ec6dc5696 | 1 | #ifndef _ENCODER_H_ |
JJting | 0:762ec6dc5696 | 2 | #define _ENCODER_H_ |
JJting | 0:762ec6dc5696 | 3 | |
JJting | 0:762ec6dc5696 | 4 | #include "mbed.h" |
JJting | 0:762ec6dc5696 | 5 | |
JJting | 0:762ec6dc5696 | 6 | extern void init_SPI_encoder(); |
JJting | 0:762ec6dc5696 | 7 | extern void init_encoder(); |
JJting | 0:762ec6dc5696 | 8 | extern void angle_measure(); |
JJting | 0:762ec6dc5696 | 9 | extern int angle_count(unsigned short,unsigned short); |
JJting | 0:762ec6dc5696 | 10 | |
JJting | 0:762ec6dc5696 | 11 | extern DigitalOut encoder_cs; |
JJting | 0:762ec6dc5696 | 12 | extern SPI spi_encoder; |
JJting | 0:762ec6dc5696 | 13 | |
JJting | 0:762ec6dc5696 | 14 | extern unsigned short encoder_value; |
JJting | 0:762ec6dc5696 | 15 | extern unsigned short angle; |
JJting | 0:762ec6dc5696 | 16 | extern unsigned short angle_old; |
JJting | 0:762ec6dc5696 | 17 | extern int angle_dif; |
JJting | 0:762ec6dc5696 | 18 | extern int a_dif; |
JJting | 0:762ec6dc5696 | 19 | extern int Angle; |
JJting | 0:762ec6dc5696 | 20 | extern unsigned short k; |
JJting | 0:762ec6dc5696 | 21 | |
JJting | 0:762ec6dc5696 | 22 | |
JJting | 0:762ec6dc5696 | 23 | #endif |