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
42 lines
1.5 KiB
// #ifndef _OZONE_PWM_CONTROL_H_
|
|
// #define _OZONE_PWM_CONTROL_H_
|
|
|
|
// #include "lib_config.h"
|
|
// #include "light.h"
|
|
// #include "ozone_work.h"
|
|
// #include "port.h"
|
|
// #include "system_ES8P5066.h"
|
|
|
|
// typedef enum {
|
|
// HAS_BEEN_WORKING = 0, /*一直工作*/
|
|
// TIMING_WORK = 1, /*定时工作*/
|
|
// TIMING_INTERVAL_WORK = 2, /*在定时期间,间歇工作*/
|
|
// STOP_PWM_WORK = 3, /*停止工作*/
|
|
// } OZONE_WOEK_MODE_T;
|
|
|
|
// typedef enum {
|
|
// LOW_END = 1, /*低档工作*/
|
|
// MIDDLE_GRADE = 2, /*中档工作*/
|
|
// SLAP_UP = 3, /*高档工作*/
|
|
// } OZONE_WOEK_GEARS_T;
|
|
|
|
// typedef struct {
|
|
// OZONE_WOEK_MODE_T now_ozone_woek_mode; /*现在的工作模式*/
|
|
// OZONE_WOEK_GEARS_T will_be_set_work_gears; /*将要的工作档位*/
|
|
// OZONE_WOEK_GEARS_T now_ozone_woek_gears; /*现在的工作档位*/
|
|
// uint32_t ozone_pwm_duty;
|
|
// uint32_t ozone_pwm_frequency;
|
|
// uint32_t ozone_timing_duty;
|
|
// uint32_t ozone_interval_duty;
|
|
// } ozone_messages_t;
|
|
|
|
// void set_ozone_work_mode(OZONE_WOEK_MODE_T mode);
|
|
// void set_ozone_work_gears(OZONE_WOEK_GEARS_T gears);
|
|
// void ozone_pwm_control_set_pwm_duty(uint32_t frequency, uint32_t duty) ;
|
|
// void ozone_pwm_control_set_pwm_output_1(uint32_t pwm_timing_duty);
|
|
// void ozone_pwm_control_set_pwm_output_2(uint32_t pwm_timing_duty,
|
|
// uint32_t pwm_interval_duty);
|
|
// void ozone_pwm_control_stop_pwm(void);
|
|
// void try_shutdown(void);
|
|
// void stop_ozone_work(void);
|
|
// #endif
|