#pragma once #include #include typedef struct { bool heating_plate_preheat_start_flag; bool heating_plate_preheat_finished_flag; } heating_plate_structer_t; typedef double (*get_temp_callback_t)(void); void T_heating_plate_init(heating_plate_structer_t *heating_plate_structer); void T_heating_plate_registered_cb(get_temp_callback_t cb); void T_heating_plate_start(void); void T_heating_plate_stop(void); void T_heating_plate_schedule(void); void T_heating_plate_set_and_update_duty(uint32_t duty);