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.

49 lines
1.1 KiB

3 years ago
3 years ago
3 years ago
  1. #pragma once
  2. #include <stdbool.h>
  3. #include <stdint.h>
  4. #include "thisdevice.h"
  5. typedef void (*ozone_onexception_cb_t)(error_t error);
  6. typedef struct {
  7. uint32_t minfreq; //
  8. uint32_t maxfreq;
  9. uint32_t stepfreq;
  10. float level1_expect_power;
  11. float level2_expect_power;
  12. ozone_onexception_cb_t onexception;
  13. } ozone_control_config_t;
  14. void ozone_control_init(ozone_control_config_t *config);
  15. void ozone_control_set_level(level_t level);
  16. void ozone_control_start();
  17. void ozone_control_stop();
  18. float ozone_control_get_power();
  19. void ozone_control_schedule();
  20. /**
  21. *
  22. * 1
  23. *
  24. *
  25. * :
  26. * (+/2),
  27. * (-/2),
  28. *
  29. *
  30. * :
  31. *
  32. *
  33. * :
  34. *
  35. *
  36. *
  37. *
  38. *
  39. *
  40. */