2020-04-20 21:16:39 +02:00
|
|
|
/* 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__
|
|
|
|
|
2020-05-05 18:55:55 +02:00
|
|
|
#include <stdint.h>
|
2020-06-13 23:23:59 +02:00
|
|
|
#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};
|
2020-05-05 18:55:55 +02:00
|
|
|
|
|
|
|
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);
|
|
|
|
|
2020-06-13 23:23:59 +02:00
|
|
|
void oven_pid_init(struct pid_controller *controller_to_copy);
|
|
|
|
|
2020-11-30 21:43:38 +01:00
|
|
|
void oven_pid_handle(void);
|
2020-06-13 23:23:59 +02:00
|
|
|
|
2020-08-31 22:50:39 +02:00
|
|
|
void oven_pid_stop(void);
|
2020-06-13 23:23:59 +02:00
|
|
|
|
2020-09-27 22:54:06 +02:00
|
|
|
void oven_pid_abort(void);
|
|
|
|
|
2020-11-30 21:43:38 +01:00
|
|
|
void oven_pid_set_target_temperature(float temp);
|
|
|
|
|
2020-07-09 22:31:42 +02:00
|
|
|
void oven_driver_apply_power_level(void);
|
2020-06-13 23:23:59 +02:00
|
|
|
|
2020-07-09 22:31:42 +02:00
|
|
|
enum oven_pid_status oven_pid_get_status(void);
|
2020-06-13 23:23:59 +02:00
|
|
|
|
2020-04-20 21:16:39 +02:00
|
|
|
#endif /* __OVEN_DRIVER_H__ */
|