mirror of https://github.com/rusefi/wideband.git
heater too
This commit is contained in:
parent
fb66c03ac7
commit
495819659d
|
@ -12,6 +12,10 @@
|
||||||
// 400khz / 1024 = 390hz PWM
|
// 400khz / 1024 = 390hz PWM
|
||||||
Pwm heaterPwm(PWMD1, 0, 400'000, 1024);
|
Pwm heaterPwm(PWMD1, 0, 400'000, 1024);
|
||||||
|
|
||||||
|
uint16_t GetHeaterDuty() {
|
||||||
|
return heaterPwm.GetLastDuty();
|
||||||
|
}
|
||||||
|
|
||||||
enum class HeaterState
|
enum class HeaterState
|
||||||
{
|
{
|
||||||
Preheat,
|
Preheat,
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
void StartHeaterControl();
|
void StartHeaterControl();
|
||||||
bool IsRunningClosedLoop();
|
bool IsRunningClosedLoop();
|
||||||
|
uint16_t GetHeaterDuty();
|
||||||
|
|
Loading…
Reference in New Issue