You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.0 KiB

  1. #ifndef _DJ_H_
  2. #define _DJ_H_
  3. #include "hic.h"
  4. #include "basic_type.h"
  5. #include "io_config.h"
  6. #include "uart.h"
  7. #include "lcd.h"
  8. #include "led.h"
  9. #include "t21_t8.h"
  10. void motor_uart_config(void);
  11. void send_cmd_to_motor(volatile char buff[20],unsigned int num);
  12. void recv_from_motor_data(unsigned char data);
  13. void data_from_motor_recv_Ok(void);
  14. void motor_data_analyse(volatile char buff[20], unsigned int num);
  15. int32_t motor_jerk_status(void);
  16. int32_t judge_foreward_or_reversal(int32_t speed,int32_t turn_state);
  17. void set_motor_off(void);
  18. int32_t set_moter_speed_internal(int32_t speed_dsp);
  19. void set_motor_speed(int32_t speed_dsp_target);
  20. void inquire_motor_error_state(void);
  21. /*
  22. void read_motor_model(void);
  23. void motor_speed_control_Cmd(int motor_speed,int motor_id);
  24. void read_motor_at_present_speed(void);
  25. int set_motor_foreward(void);
  26. int set_motor_reversal(void);
  27. void judge_motor_speed(int32_t speed);
  28. void reversal_off_cmd(int32_t speed);
  29. //===================================================
  30. */
  31. #endif