|
rusEFI
The most advanced open source ECU
|
#include <pwm_generator_logic.h>


Public Member Functions | |
| SimplePwm () | |
| SimplePwm (const char *name) | |
| void | setSimplePwmDutyCycle (float dutyCycle) override |
Public Member Functions inherited from PwmConfig | |
| PwmConfig () | |
| void | weComplexInit (Scheduler *executor, MultiChannelStateSequence const *seq, pwm_cycle_callback *pwmCycleCallback, pwm_gen_callback *callback) |
| void | setFrequency (float frequency) |
| void | handleCycleStart () |
| efitick_t | togglePwmState () |
| void | stop () |
| void | applyPwmValue (OutputPin *output, int stateIndex, int channelIndex=0) |
Data Fields | |
| MultiChannelStateSequenceWithData< 2 > | seq |
| hardware_pwm * | hardPwm = nullptr |
Data Fields inherited from PwmConfig | |
| Scheduler * | m_executor = nullptr |
| pwm_mode_e | mode |
| bool | isStopRequested = false |
| const char * | m_name |
| OutputPin * | outputPins [PWM_PHASE_MAX_WAVE_PER_PWM] |
| MultiChannelStateSequence const * | multiChannelStateSequence = nullptr |
| int | dbgNestingLevel |
| scheduling_s | scheduling |
| pwm_config_safe_state_s | safe |
| pwm_cycle_callback * | m_pwmCycleCallback = nullptr |
| pwm_gen_callback * | m_stateChangeCallback = nullptr |
Definition at line 115 of file pwm_generator_logic.h.
| SimplePwm::SimplePwm | ( | ) |
Definition at line 24 of file pwm_generator_logic.cpp.
| SimplePwm::SimplePwm | ( | const char * | name | ) |
Definition at line 30 of file pwm_generator_logic.cpp.
|
overridevirtual |
This method allows you to change duty cycle on the fly
| dutyCycle | value between 0 and 1 See also setFrequency |
Implements IPwm.
Definition at line 49 of file pwm_generator_logic.cpp.
Referenced by applyIACposition(), TachometerModule::onFastCallback(), Gm4l6xTransmissionController::set32State(), AlternatorController::setOutput(), Generic4TransmissionController::setPcState(), setPwmDuty(), and updateVrThresholdPwm().


| hardware_pwm* SimplePwm::hardPwm = nullptr |
Definition at line 121 of file pwm_generator_logic.h.
Referenced by setSimplePwmDutyCycle().
| MultiChannelStateSequenceWithData<2> SimplePwm::seq |
Definition at line 120 of file pwm_generator_logic.h.
Referenced by setSimplePwmDutyCycle(), and SimplePwm().