Chen Wei Ting
/
middleyuan
read EMG, IMU, encoder
Fork of LSM9DS1_project by
AS5145.h@3:567765d3bcd1, 2018-08-01 (annotated)
- Committer:
- JJting
- Date:
- Wed Aug 01 01:01:13 2018 +0000
- Revision:
- 3:567765d3bcd1
- Parent:
- 2:c889fecf9afe
original 20180801
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
middleyuan | 2:c889fecf9afe | 1 | #ifndef AS5145_H |
middleyuan | 1:b1562831bbaf | 2 | #define AS5145_H |
middleyuan | 1:b1562831bbaf | 3 | |
middleyuan | 1:b1562831bbaf | 4 | #include "mbed.h" |
middleyuan | 1:b1562831bbaf | 5 | |
middleyuan | 1:b1562831bbaf | 6 | extern SPI spi; |
middleyuan | 1:b1562831bbaf | 7 | extern DigitalOut CS; |
middleyuan | 1:b1562831bbaf | 8 | extern SPI spi2; |
middleyuan | 1:b1562831bbaf | 9 | extern DigitalOut CS2; |
middleyuan | 1:b1562831bbaf | 10 | |
middleyuan | 1:b1562831bbaf | 11 | extern int position[2]; |
middleyuan | 1:b1562831bbaf | 12 | extern int position_old[2]; |
middleyuan | 1:b1562831bbaf | 13 | extern short low_byte; |
middleyuan | 1:b1562831bbaf | 14 | extern short high_byte; |
middleyuan | 1:b1562831bbaf | 15 | |
middleyuan | 1:b1562831bbaf | 16 | extern void ReadValue(void); |
middleyuan | 1:b1562831bbaf | 17 | extern bool AS5145_begin(void); |
middleyuan | 1:b1562831bbaf | 18 | |
middleyuan | 1:b1562831bbaf | 19 | |
middleyuan | 1:b1562831bbaf | 20 | #endif |