rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
HarleyAcr Class Reference

#include <harley_acr.h>

Inheritance diagram for HarleyAcr:
Inheritance graph
[legend]
Collaboration diagram for HarleyAcr:
Collaboration graph
[legend]

Public Member Functions

void updateAcr ()
 
void onSlowCallback () override
 
bool isActive () const
 
- Public Member Functions inherited from EngineModule
virtual void initNoConfiguration ()
 
virtual void setDefaultConfiguration ()
 
virtual void onConfigurationChange (engine_configuration_s const *)
 
virtual void onFastCallback ()
 
virtual void onEngineStop ()
 
virtual void onIgnitionStateChanged (bool)
 
virtual bool needsDelayedShutoff ()
 
virtual void onEnginePhase (float, efitick_t, angle_t, angle_t)
 

Private Attributes

bool m_active = false
 

Detailed Description

Definition at line 3 of file harley_acr.h.

Member Function Documentation

◆ isActive()

bool HarleyAcr::isActive ( ) const

Definition at line 66 of file harley_acr.cpp.

66 {
67 return m_active;
68}
bool m_active
Definition harley_acr.h:11

◆ onSlowCallback()

void HarleyAcr::onSlowCallback ( )
overridevirtual

Reimplemented from EngineModule.

Definition at line 48 of file harley_acr.cpp.

48 {
49 // skip if no pin
51 m_active = false;
52 return;
53 }
54
55 bool acrState = getAcrState();
56 engine->engineState.acrActive = acrState;
59 m_active = acrState;
60}
EngineState engineState
Definition engine.h:344
RegisteredOutputPin harleyAcr2
Definition efi_gpio.h:96
RegisteredNamedOutputPin harleyAcr
Definition efi_gpio.h:95
void setValue(const char *msg, int logicValue, bool isForce=false)
Definition efi_gpio.cpp:604
EnginePins enginePins
Definition efi_gpio.cpp:24
static EngineAccessor engine
Definition engine.h:413
static constexpr engine_configuration_s * engineConfiguration
static bool getAcrState()
bool isBrainPinValid(brain_pin_e brainPin)

Referenced by updateAcr().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateAcr()

void HarleyAcr::updateAcr ( )

Definition at line 62 of file harley_acr.cpp.

62 {
64}
void onSlowCallback() override
Here is the call graph for this function:

Field Documentation

◆ m_active

bool HarleyAcr::m_active = false
private

Definition at line 11 of file harley_acr.h.

Referenced by isActive(), and onSlowCallback().


The documentation for this class was generated from the following files: