rusEFI
The most advanced open source ECU
|
#include <state_sequence.h>
Public Member Functions | |
float | getSwitchTime (int phaseIndex) const override |
pin_state_t | getChannelState (int channelIndex, int phaseIndex) const override |
void | reset () |
void | setSwitchTime (const int phaseIndex, const float value) |
void | setChannelState (const int channelIndex, const int phaseIndex, pin_state_t state) |
![]() | |
void | checkSwitchTimes (float scale) const |
expected< int > | findAngleMatch (float angle) const |
int | findInsertionAngle (float angle) const |
Private Attributes | |
float | switchTimes [max_phase] |
uint8_t | waveForm [max_phase] |
Additional Inherited Members | |
![]() | |
uint16_t | phaseCount = 0 |
uint16_t | waveCount = 0 |
Definition at line 76 of file state_sequence.h.
|
inlineoverridevirtual |
Implements MultiChannelStateSequence.
Definition at line 82 of file state_sequence.h.
Referenced by TriggerWaveform::addEvent().
|
inlineoverridevirtual |
values in the (0..1] range which refer to points within the period at at which pin state should be changed So, in the simplest case we turn pin off at 0.3 and turn it on at 1 - that would give us a 70% duty cycle PWM
Implements MultiChannelStateSequence.
Definition at line 78 of file state_sequence.h.
Referenced by getSimulatedEventTime(), and TriggerWaveform::getSwitchAngle().
|
inline |
Definition at line 90 of file state_sequence.h.
Referenced by TriggerWaveform::initialize().
|
inline |
Definition at line 98 of file state_sequence.h.
Referenced by TriggerWaveform::addEvent().
|
inline |
Definition at line 94 of file state_sequence.h.
Referenced by TriggerWaveform::addEvent(), and SimplePwm::setSimplePwmDutyCycle().
|
private |
Definition at line 108 of file state_sequence.h.
Referenced by MultiChannelStateSequenceWithData< max_phase >::getSwitchTime(), and MultiChannelStateSequenceWithData< max_phase >::setSwitchTime().
|
private |
Definition at line 109 of file state_sequence.h.
Referenced by MultiChannelStateSequenceWithData< max_phase >::getChannelState(), and MultiChannelStateSequenceWithData< max_phase >::setChannelState().