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.
 
 
 
 

18 lines
533 B

#pragma once
#include <stdbool.h>
#include <stdint.h>
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);