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.

17 lines
533 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. #pragma once
  2. #include <stdbool.h>
  3. #include <stdint.h>
  4. typedef struct
  5. {
  6. bool heating_plate_preheat_start_flag;
  7. bool heating_plate_preheat_finished_flag;
  8. } heating_plate_structer_t;
  9. typedef double (*get_temp_callback_t)(void);
  10. void T_heating_plate_init(heating_plate_structer_t *heating_plate_structer);
  11. void T_heating_plate_registered_cb(get_temp_callback_t cb);
  12. void T_heating_plate_start(void);
  13. void T_heating_plate_stop(void);
  14. void T_heating_plate_schedule(void);
  15. void T_heating_plate_set_and_update_duty(uint32_t duty);