11#include <rusefi/timer.h>
22 bool update(
bool newState);
25 explicit operator bool()
const {
26 return state !=
nullptr;
41#define TEST_VIRTUAL virtual
63 void setValue(
const char *msg,
int logicValue,
bool isForce =
false);
64 TEST_VIRTUAL
void setValue(
int logicValue,
bool isForce =
false);
75#if EFI_UNIT_TEST || EFI_SIMULATOR
88#if (EFI_GPIO_HARDWARE && (BOARD_EXT_GPIOCHIPS > 0))
114 virtual void setHigh(
const char *msg);
115 virtual void setLow(
const char *msg);
const char * getName() const
void setName(const char *)
const char * getShortName() const
Single output pin reference and state.
brain_pin_diag_e getDiag() const
uint32_t durationsInStateMs[2]
void initPin(const char *msg, brain_pin_e brainPin, pin_output_mode_e outputMode, bool forceInitWithFatalError=false)
bool getLogicValue() const
void setOnchipValue(int electricalValue)
bool getAndSet(int logicValue)
void setValue(const char *msg, int logicValue, bool isForce=false)
bool isInitialized() const
void setDefaultPinState(pin_output_mode_e mode)
bool update(bool newState)
SwitchedState(int8_t *const p_state)
uint16_t getCounter() const
GPIO_TypeDef * ioportid_t
Port Identifier.
this file is about general input/output utility methods, not much EFI-specifics