12 #include <rusefi/expected.h>
34 #ifndef PWM_PHASE_MAX_COUNT
39 #define PWM_PHASE_MAX_COUNT 280
41 #define PWM_PHASE_MAX_WAVE_PER_PWM 2
74 template<
unsigned max_phase>
102 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.
@ SHAFT_SECONDARY_FALLING