reflow-oven-control-sw/stm-firmware/include/reflow-controller/oven-driver.h

55 lines
1.4 KiB
C
Raw Normal View History

/* Reflow Oven Controller
*
* Copyright (C) 2020 Mario Hüttel <mario.huettel@gmx.net>
*
* This file is part of the Reflow Oven Controller Project.
*
* The reflow oven controller is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* The Reflow Oven Control Firmware is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with the reflow oven controller project.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __OVEN_DRIVER_H__
#define __OVEN_DRIVER_H__
#include <stdint.h>
#include <stdbool.h>
#include <reflow-controller/pid-controller.h>
2020-07-09 22:31:42 +02:00
enum oven_pid_status {OVEN_PID_DEACTIVATED,
OVEN_PID_RUNNING,
OVEN_PID_ABORTED};
void oven_driver_init(void);
void oven_driver_set_power(uint8_t power);
2020-05-10 23:13:03 +02:00
void oven_driver_disable(void);
2020-06-14 23:36:49 +02:00
void oven_pid_ack_errors(void);
void oven_pid_init(struct pid_controller *controller_to_copy);
void oven_pid_handle(void);
2020-08-31 22:50:39 +02:00
void oven_pid_stop(void);
void oven_pid_abort(void);
void oven_pid_set_target_temperature(float temp);
2020-07-09 22:31:42 +02:00
void oven_driver_apply_power_level(void);
2020-07-09 22:31:42 +02:00
enum oven_pid_status oven_pid_get_status(void);
#endif /* __OVEN_DRIVER_H__ */