rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
IgnitionEvent Class Reference

#include <event_registry.h>

Collaboration diagram for IgnitionEvent:
Collaboration graph
[legend]

Public Member Functions

 IgnitionEvent ()
 
IgnitionOutputPingetOutputForLoggins ()
 

Data Fields

IgnitionOutputPinoutputs [MAX_OUTPUTS_FOR_IGNITION]
 
scheduling_s dwellStartTimer
 
AngleBasedEvent sparkEvent
 
scheduling_s trailingSparkCharge
 
scheduling_s trailingSparkFire
 
uint8_t sparksRemaining = 0
 
bool wasSparkLimited = false
 
angle_t sparkAngle = NAN
 
floatms_t sparkDwell = 0
 
Timer actualDwellTimer
 
float dwellAngle = 0
 
uint32_t sparkCounter = 0
 
int cylinderIndex = 0
 
int8_t coilIndex = 0
 
charname = nullptr
 

Detailed Description

Definition at line 50 of file event_registry.h.

Constructor & Destructor Documentation

◆ IgnitionEvent()

IgnitionEvent::IgnitionEvent ( )

Definition at line 27 of file event_registry.cpp.

27 {
28 memset(outputs, 0, sizeof(outputs));
29}
IgnitionOutputPin * outputs[MAX_OUTPUTS_FOR_IGNITION]

Member Function Documentation

◆ getOutputForLoggins()

IgnitionOutputPin * IgnitionEvent::getOutputForLoggins ( )

Definition at line 31 of file event_registry.cpp.

31 {
32 return outputs[0];
33}

Referenced by scheduleSparkEvent().

Here is the caller graph for this function:

Field Documentation

◆ actualDwellTimer

Timer IgnitionEvent::actualDwellTimer

Definition at line 75 of file event_registry.h.

◆ coilIndex

int8_t IgnitionEvent::coilIndex = 0

◆ cylinderIndex

int IgnitionEvent::cylinderIndex = 0

[0, cylindersCount)

Definition at line 87 of file event_registry.h.

Referenced by fireSparkAndPrepareNextSchedule(), initializeIgnitionActions(), and prepareCylinderIgnitionSchedule().

◆ dwellAngle

float IgnitionEvent::dwellAngle = 0

Definition at line 77 of file event_registry.h.

Referenced by onTriggerEventSparkLogic(), and scheduleSparkEvent().

◆ dwellStartTimer

scheduling_s IgnitionEvent::dwellStartTimer

Definition at line 55 of file event_registry.h.

Referenced by fireSparkAndPrepareNextSchedule(), and scheduleSparkEvent().

◆ name

char* IgnitionEvent::name = nullptr

Definition at line 90 of file event_registry.h.

◆ outputs

IgnitionOutputPin* IgnitionEvent::outputs[MAX_OUTPUTS_FOR_IGNITION]

◆ sparkAngle

angle_t IgnitionEvent::sparkAngle = NAN

Desired timing advance

Definition at line 71 of file event_registry.h.

◆ sparkCounter

uint32_t IgnitionEvent::sparkCounter = 0

Sequential number of currently processed spark event

See also
engineState.globalSparkCounter

Definition at line 83 of file event_registry.h.

Referenced by fireSparkBySettingPinLow(), initDataStructures(), scheduleSparkEvent(), and startDwellByTurningSparkPinHigh().

◆ sparkDwell

floatms_t IgnitionEvent::sparkDwell = 0

Definition at line 72 of file event_registry.h.

◆ sparkEvent

AngleBasedEvent IgnitionEvent::sparkEvent

Definition at line 56 of file event_registry.h.

Referenced by fireSparkAndPrepareNextSchedule(), and scheduleSparkEvent().

◆ sparksRemaining

uint8_t IgnitionEvent::sparksRemaining = 0

Definition at line 63 of file event_registry.h.

Referenced by fireSparkAndPrepareNextSchedule().

◆ trailingSparkCharge

scheduling_s IgnitionEvent::trailingSparkCharge

Definition at line 58 of file event_registry.h.

Referenced by turnSparkPinHighStartCharging().

◆ trailingSparkFire

scheduling_s IgnitionEvent::trailingSparkFire

Definition at line 59 of file event_registry.h.

Referenced by fireSparkAndPrepareNextSchedule().

◆ wasSparkLimited

bool IgnitionEvent::wasSparkLimited = false

Definition at line 66 of file event_registry.h.

Referenced by fireSparkBySettingPinLow().


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