single_phase_encoder.h 544 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-07-17 Wu Han The first version
  9. */
  10. #ifndef __SINGLE_PHASE_ENCODER_H__
  11. #define __SINGLE_PHASE_ENCODER_H__
  12. #include "encoder.h"
  13. struct single_phase_encoder;
  14. typedef struct single_phase_encoder *single_phase_encoder_t;
  15. single_phase_encoder_t single_phase_encoder_create(rt_base_t pin, rt_uint16_t pulse_revol, rt_uint16_t sample_time);
  16. #endif // __SINGLE_PHASE_ENCODER_H__