rusEFI
The most advanced open source ECU
|
his file is about general input/output utility methods, not much EFI-specifics
Definition in file io_pins.cpp.
Functions | |
void | efiSetPadUnused (brain_pin_e brainPin) |
void | efiSetPadMode (const char *msg, brain_pin_e brainPin, iomode_t mode) |
void | efiSetPadModeWithoutOwnershipAcquisition (const char *msg, brain_pin_e brainPin, iomode_t mode) |
bool | efiReadPin (brain_pin_e pin) |
iomode_t | getInputMode (pin_input_mode_e mode) |
void | writePad (const char *msg, brain_pin_e pin, int bit) |
void | setMockState (brain_pin_e pin, bool state) |
Variables | |
bool | mockPinStates [BRAIN_PIN_COUNT] |
bool efiReadPin | ( | brain_pin_e | pin | ) |
Definition at line 89 of file io_pins.cpp.
Referenced by flexExtiCallback(), getAuxDigital(), getBrakePedalState(), getClutchUpState(), AntilagSystemBase::isInsideALSSwitchCondition(), LaunchControlBase::isInsideSwitchCondition(), HellaOilLevelSensor::onEdge(), MainRelayController::onSlowCallback(), ButtonDebounce::stopConfiguration(), GenericGearController::update(), and Engine::updateSwitchInputs().
void efiSetPadMode | ( | const char * | msg, |
brain_pin_e | brainPin, | ||
iomode_t | mode | ||
) |
This method would set an error condition if pin is already used
Definition at line 48 of file io_pins.cpp.
void efiSetPadModeWithoutOwnershipAcquisition | ( | const char * | msg, |
brain_pin_e | brainPin, | ||
iomode_t | mode | ||
) |
Definition at line 61 of file io_pins.cpp.
Referenced by efiSetPadMode(), qcSetEtbState(), and setPin().
void efiSetPadUnused | ( | brain_pin_e | brainPin | ) |
Definition at line 20 of file io_pins.cpp.
Referenced by applyNewHardwareSettings(), OutputPin::deInit(), deInitIfValid(), stopAuxSerialPins(), ButtonDebounce::stopConfiguration(), stopKLine(), stopSent(), stopSmartCsPins(), and stopSpi().
iomode_t getInputMode | ( | pin_input_mode_e | mode | ) |
Definition at line 103 of file io_pins.cpp.
Referenced by AutomaticGearController::init(), GenericGearController::init(), startInputPinIfValid(), and ButtonDebounce::stopConfiguration().
void setMockState | ( | brain_pin_e | pin, |
bool | state | ||
) |
Definition at line 129 of file io_pins.cpp.
Referenced by OutputPin::setValue().
void writePad | ( | const char * | msg, |
brain_pin_e | pin, | ||
int | bit | ||
) |
Definition at line 115 of file io_pins.cpp.
Referenced by handleShaftSignal(), logVvtFront(), and turnOffAllDebugFields().
bool mockPinStates[BRAIN_PIN_COUNT] |
Definition at line 123 of file io_pins.cpp.
Referenced by setMockState().