Encode.h 306 B

1234567891011
  1. #ifndef USER_ENCODE_H
  2. #define USER_ENCODE_H
  3. #define ENCODE_X20X21 0
  4. #define ENCODE_X22X23 1
  5. extern void EncoderInit(void);
  6. extern long GetEncodePos(int ch);
  7. extern void SetEncodePos(int ch,long pos);
  8. extern void SetEncodeGearRatio(int ch,float gearRatio);
  9. extern void SetEncode_enable(int ch);
  10. #endif