mcu_hi3321_watch/tjd/driver/encoder/encoder_api.h
2025-05-26 20:15:20 +08:00

27 lines
467 B
C

#ifndef ENCODER_API_H
#define ENCODER_API_H
#include <stdint.h>
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif
struct encoder_class_ops {
int32_t (*open)(void);
int32_t (*close)(void);
void (*register_report_event_cb)(void *callback);
int32_t (*unregister_report_event_cb)(void);
};
struct encoder_class_ops *tjd_driver_encoder_get_ops(void);
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
#endif