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


Public Member Functions | |
| RegisteredOutputPin (const char *registrationName, size_t pinOffset, size_t pinModeOffset) | |
| RegisteredOutputPin (const char *registrationName, size_t pinOffset) | |
| void | init () |
| void | unregister () |
| const char * | getRegistrationName () const |
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 | |
| RegisteredOutputPin *const | next |
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 |
Private Member Functions | |
| bool | isPinConfigurationChanged () |
Private Attributes | |
| const char *const | registrationName |
| const uint16_t | m_pinOffset |
| const bool | m_hasPinMode |
| const uint16_t | m_pinModeOffset |
OutputPin with semi-automated init/deinit on configuration change
Definition at line 42 of file efi_gpio.h.
| RegisteredOutputPin::RegisteredOutputPin | ( | const char * | registrationName, |
| size_t | pinOffset, | ||
| size_t | pinModeOffset | ||
| ) |
Definition at line 74 of file efi_gpio.cpp.
Definition at line 86 of file efi_gpio.cpp.
|
inline |
Definition at line 49 of file efi_gpio.h.
| void RegisteredOutputPin::init | ( | ) |
Definition at line 111 of file efi_gpio.cpp.
Referenced by EnginePins::startPins().


|
private |
Definition at line 97 of file efi_gpio.cpp.
Referenced by init(), and unregister().

| void RegisteredOutputPin::unregister | ( | ) |
Definition at line 126 of file efi_gpio.cpp.
Referenced by EnginePins::unregisterPins().


|
private |
Definition at line 55 of file efi_gpio.h.
Referenced by init(), and isPinConfigurationChanged().
|
private |
Definition at line 56 of file efi_gpio.h.
Referenced by init(), and isPinConfigurationChanged().
|
private |
Definition at line 54 of file efi_gpio.h.
Referenced by init(), and isPinConfigurationChanged().
| RegisteredOutputPin* const RegisteredOutputPin::next |
Definition at line 48 of file efi_gpio.h.
|
private |
Definition at line 53 of file efi_gpio.h.
Referenced by getRegistrationName(), and init().