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

#include <efi_gpio.h>

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

Public Member Functions

 IgnitionOutputPin ()
 
void setHigh () override
 
void setLow () override
 
void reset ()
 
- Public Member Functions inherited from NamedOutputPin
 NamedOutputPin ()
 
 NamedOutputPin (const char *name)
 
virtual void setHigh (const char *msg)
 
virtual void setLow (const char *msg)
 
const chargetName () const
 
void setName (const char *)
 
const chargetShortName () const
 
bool stop ()
 
- Public Member Functions inherited from OutputPin
void initPin (const char *msg, brain_pin_e brainPin, pin_output_mode_e outputMode, bool forceInitWithFatalError=false)
 
void initPin (const char *msg, brain_pin_e brainPin)
 
void deInit ()
 
bool isInitialized () const
 
bool getAndSet (int logicValue)
 
void setValue (const char *msg, int logicValue, bool isForce=false)
 
TEST_VIRTUAL void setValue (int logicValue, bool isForce=false)
 
void toggle ()
 
bool getLogicValue () const
 
brain_pin_diag_e getDiag () const
 
void resetToggleStats ()
 

Data Fields

int signalFallSparkId
 
int8_t coilIndex
 
- Data Fields inherited from NamedOutputPin
const charshortName = nullptr
 
- Data Fields inherited from OutputPin
ioportid_t m_port = 0
 
uint8_t m_pin = 0
 
int pinToggleCounter = 0
 
Timer pinToggleTimer
 
uint32_t durationsInStateMs [2]
 
brain_pin_e brainPin = Gpio::Unassigned
 
bool ext = false
 
int8_t currentLogicValue = INITIAL_PIN_STATE
 

Detailed Description

Definition at line 26 of file efi_gpio.h.

Constructor & Destructor Documentation

◆ IgnitionOutputPin()

IgnitionOutputPin::IgnitionOutputPin ( )

Definition at line 501 of file efi_gpio.cpp.

501 {
502 reset();
503}
Here is the call graph for this function:

Member Function Documentation

◆ reset()

void IgnitionOutputPin::reset ( )

Definition at line 555 of file efi_gpio.cpp.

555 {
557}

Referenced by IgnitionOutputPin(), and EnginePins::reset().

Here is the caller graph for this function:

◆ setHigh()

void IgnitionOutputPin::setHigh ( )
overridevirtual

Reimplemented from NamedOutputPin.

Definition at line 505 of file efi_gpio.cpp.

505 {
507 // this is NASTY but what's the better option? bytes? At cost of 22 extra bytes in output status packet?
508 switch (coilIndex) {
509 case 0:
511 break;
512 case 1:
514 break;
515 case 2:
517 break;
518 case 3:
520 break;
521 case 4:
523 break;
524 case 5:
526 break;
527 }
528}
TunerStudioOutputChannels outputChannels
Definition engine.h:109
virtual void setHigh()
Definition efi_gpio.cpp:438
static EngineAccessor engine
Definition engine.h:413

Referenced by startDwellByTurningSparkPinHigh().

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

◆ setLow()

void IgnitionOutputPin::setLow ( )
overridevirtual

Reimplemented from NamedOutputPin.

Definition at line 530 of file efi_gpio.cpp.

530 {
532 // this is NASTY but what's the better option? bytes? At cost of 22 extra bytes in output status packet?
533 switch (coilIndex) {
534 case 0:
536 break;
537 case 1:
539 break;
540 case 2:
542 break;
543 case 3:
545 break;
546 case 4:
548 break;
549 case 5:
551 break;
552 }
553}
virtual void setLow()
Definition efi_gpio.cpp:460

Referenced by fireSparkBySettingPinLow(), and setPinConfigurationOverrides().

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

Field Documentation

◆ coilIndex

int8_t IgnitionOutputPin::coilIndex

Definition at line 36 of file efi_gpio.h.

Referenced by EnginePins::EnginePins(), setHigh(), and setLow().

◆ signalFallSparkId

int IgnitionOutputPin::signalFallSparkId

Definition at line 35 of file efi_gpio.h.

Referenced by fireSparkBySettingPinLow(), reset(), and startDwellByTurningSparkPinHigh().


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