11#ifndef __PULSE_ENCODER_H__
12#define __PULSE_ENCODER_H__
21#define PULSE_ENCODER_CMD_GET_TYPE (128 + 0)
22#define PULSE_ENCODER_CMD_ENABLE (128 + 1)
23#define PULSE_ENCODER_CMD_DISABLE (128 + 2)
24#define PULSE_ENCODER_CMD_CLEAR_COUNT (128 + 3)
@ SINGLE_PHASE_PULSE_ENCODER
@ UNKNOWN_PULSE_ENCODER_TYPE
rt_err_t rt_device_pulse_encoder_register(struct rt_pulse_encoder_device *pulse_encoder, const char *name, void *user_data)
const struct rt_pulse_encoder_ops * ops
enum rt_pulse_encoder_type type
rt_int32_t(* get_count)(struct rt_pulse_encoder_device *pulse_encoder)
rt_err_t(* clear_count)(struct rt_pulse_encoder_device *pulse_encoder)
rt_err_t(* init)(struct rt_pulse_encoder_device *pulse_encoder)
rt_err_t(* control)(struct rt_pulse_encoder_device *pulse_encoder, rt_uint32_t cmd, void *args)