12#include <rusefi/expected.h>
34#ifndef PWM_PHASE_MAX_COUNT
39#define PWM_PHASE_MAX_COUNT 280
42#define PWM_PHASE_MAX_WAVE_PER_PWM 2
75template<
unsigned max_phase>
103 uint8_t & ref =
waveForm[phaseIndex];
void checkSwitchTimes(float scale) const
virtual float getSwitchTime(int phaseIndex) const =0
virtual pin_state_t getChannelState(int channelIndex, int phaseIndex) const =0
int findInsertionAngle(float angle) const
expected< int > findAngleMatch(float angle) const
pin_state_t getChannelState(int channelIndex, int phaseIndex) const override
float getSwitchTime(int phaseIndex) const override
void setSwitchTime(const int phaseIndex, const float value)
uint8_t waveForm[max_phase]
float switchTimes[max_phase]
void setChannelState(const int channelIndex, const int phaseIndex, pin_state_t state)
Fundamental rusEFI enumerable types live here.
state("state", SensorCategory.SENSOR_INPUTS, FieldType.INT8, 1871, 1.0, -1.0, -1.0, "")
@ SHAFT_SECONDARY_FALLING