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.

42 lines
1.5 KiB

3 years ago
  1. // #ifndef _OZONE_PWM_CONTROL_H_
  2. // #define _OZONE_PWM_CONTROL_H_
  3. // #include "lib_config.h"
  4. // #include "light.h"
  5. // #include "ozone_work.h"
  6. // #include "port.h"
  7. // #include "system_ES8P5066.h"
  8. // typedef enum {
  9. // HAS_BEEN_WORKING = 0, /*һֱ����*/
  10. // TIMING_WORK = 1, /*��ʱ����*/
  11. // TIMING_INTERVAL_WORK = 2, /*�ڶ�ʱ�ڼ䣬��Ъ����*/
  12. // STOP_PWM_WORK = 3, /*ֹͣ����*/
  13. // } OZONE_WOEK_MODE_T;
  14. // typedef enum {
  15. // LOW_END = 1, /*�͵�����*/
  16. // MIDDLE_GRADE = 2, /*�����*/
  17. // SLAP_UP = 3, /*�ߵ�����*/
  18. // } OZONE_WOEK_GEARS_T;
  19. // typedef struct {
  20. // OZONE_WOEK_MODE_T now_ozone_woek_mode; /*���ڵĹ���ģʽ*/
  21. // OZONE_WOEK_GEARS_T will_be_set_work_gears; /*��Ҫ�Ĺ�����λ*/
  22. // OZONE_WOEK_GEARS_T now_ozone_woek_gears; /*���ڵĹ�����λ*/
  23. // uint32_t ozone_pwm_duty;
  24. // uint32_t ozone_pwm_frequency;
  25. // uint32_t ozone_timing_duty;
  26. // uint32_t ozone_interval_duty;
  27. // } ozone_messages_t;
  28. // void set_ozone_work_mode(OZONE_WOEK_MODE_T mode);
  29. // void set_ozone_work_gears(OZONE_WOEK_GEARS_T gears);
  30. // void ozone_pwm_control_set_pwm_duty(uint32_t frequency, uint32_t duty) ;
  31. // void ozone_pwm_control_set_pwm_output_1(uint32_t pwm_timing_duty);
  32. // void ozone_pwm_control_set_pwm_output_2(uint32_t pwm_timing_duty,
  33. // uint32_t pwm_interval_duty);
  34. // void ozone_pwm_control_stop_pwm(void);
  35. // void try_shutdown(void);
  36. // void stop_ozone_work(void);
  37. // #endif