Encode.h 409 B

1234567891011121314
  1. #ifndef USER_ENCODE_H
  2. #define USER_ENCODE_H
  3. #define ENCODE_X20X21 0
  4. #define ENCODE_X22X23 1
  5. extern unsigned char USE_X20_EXTI,X20EXTI_DIR;
  6. extern void EncoderInit(void);
  7. extern long GetEncodePos(int ch);
  8. extern void SetEncodePos(int ch,long pos);
  9. extern void SetEncodeGearRatio(int ch,float gearRatio);
  10. extern void SetEncode_enable(int ch);
  11. extern void EXIO_AXIS_DW_Filter(unsigned short axis);
  12. #endif