#pragma once #include #include #include typedef struct { int uartNum; } motor_t; typedef enum { kRunToPosition, } motor_event_t; typedef void (*motor_on_event_t)(motor_event_t event); void motor_init(motor_t* motor); void motor_set_zero_point(); double motor_get_position_degree(); uint8_t motor_run_to_postion(int rotation_direction, double position, int speed_level); void motor_reg_event_cb(motor_on_event_t onevent); void motor_module_schedule(); bool motor_stop();