ab_phase_encoder.h 531 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2019, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-08-26 sogwms The first version
  9. */
  10. #ifndef __AB_PHASE_ENCODER_H__
  11. #define __AB_PHASE_ENCODER_H__
  12. #include "encoder.h"
  13. struct ab_phase_encoder;
  14. typedef struct ab_phase_encoder *ab_phase_encoder_t;
  15. ab_phase_encoder_t ab_phase_encoder_create(rt_base_t pin_a, rt_base_t pin_b, rt_uint16_t pulse_revol, rt_uint16_t sample_time);
  16. #endif // __AB_PHASE_ENCODER_H__