rusEFI
The most advanced open source ECU
|
Functions | |
int | getBrainPinIndex (brain_pin_e brainPin) |
ioportid_t | getBrainPinPort (brain_pin_e brainPin) |
const char * | portname (ioportid_t port) |
static int | getPortIndex (ioportid_t port) |
int | getPortPinIndex (ioportid_t port, ioportmask_t pin) |
ioportid_t | getHwPort (const char *msg, brain_pin_e brainPin) |
ioportmask_t | getHwPin (const char *msg, brain_pin_e brainPin) |
brain_pin_e | parseBrainPin (const char *str) |
unsigned int | getBrainPinOnchipNum (void) |
void | debugBrainPin (char *buffer, size_t size, brain_pin_e brainPin) |
Variables | |
static const struct port_io | ports [] |
static const char * | od_names [2] = { "Push-Pull", "Open-Drain" } |
static const char * | speed_names [4] = { "Low", "Medium", "High", "Very High" } |
static const char * | pull_names [4] = { "No pull", "Pull-up", "Pull-down", "Reserved" } |
void debugBrainPin | ( | char * | buffer, |
size_t | size, | ||
brain_pin_e | brainPin | ||
) |
Definition at line 164 of file stm32_pins.cpp.
Referenced by reportPins().
int getBrainPinIndex | ( | brain_pin_e | brainPin | ) |
Definition at line 48 of file stm32_pins.cpp.
Referenced by boardInitMfs(), debugBrainPin(), detectHellenBoardId(), getHwPin(), HellenBoardIdFinder< NumPins >::measureChargingTimes(), and reportPins().
unsigned int getBrainPinOnchipNum | ( | void | ) |
Definition at line 156 of file stm32_pins.cpp.
Referenced by reportPins().
ioportid_t getBrainPinPort | ( | brain_pin_e | brainPin | ) |
Definition at line 52 of file stm32_pins.cpp.
Referenced by boardInitMfs(), debugBrainPin(), detectHellenBoardId(), HellenBoardIdFinder< NumPins >::measureChargingTimes(), and reportPins().
ioportmask_t getHwPin | ( | const char * | msg, |
brain_pin_e | brainPin | ||
) |
this method returns the numeric part of pin name. For instance, for PC13 this would return '13'
Definition at line 115 of file stm32_pins.cpp.
Referenced by adcTriggerTurnOnInputPin(), benchSetPinValue(), directWritePad(), efiExtiDisablePin(), efiExtiEnablePin(), efiReadPin(), efiSetPadMode(), efiSetPadModeWithoutOwnershipAcquisition(), efiSetPadUnused(), extiTriggerTurnOnInputPin(), getAdcChannelPin(), hwPhysicalPinName(), BitbangI2c::init(), initAccelerometer(), initErrorLed(), initializeMmcBlockDevice(), OutputPin::initPin(), initQcBenchControls(), initSmartGpio(), initSpiCsNoOccupy(), initWave(), lua_readpin(), readPin(), and writePad().
ioportid_t getHwPort | ( | const char * | msg, |
brain_pin_e | brainPin | ||
) |
Definition at line 90 of file stm32_pins.cpp.
Referenced by adcTriggerTurnOnInputPin(), benchSetPinValue(), directWritePad(), efiExtiDisablePin(), efiExtiEnablePin(), efiReadPin(), efiSetPadMode(), efiSetPadModeWithoutOwnershipAcquisition(), efiSetPadUnused(), extiTriggerTurnOnInputPin(), getAdcChannelPort(), hwPhysicalPinName(), BitbangI2c::init(), initAccelerometer(), initErrorLed(), initializeMmcBlockDevice(), OutputPin::initPin(), initQcBenchControls(), initSmartGpio(), initSpiCsNoOccupy(), initWave(), lua_readpin(), readPin(), and writePad().
|
static |
Definition at line 71 of file stm32_pins.cpp.
Referenced by getPortPinIndex().
int getPortPinIndex | ( | ioportid_t | port, |
ioportmask_t | pin | ||
) |
Definition at line 85 of file stm32_pins.cpp.
Referenced by gpio_pin_markUnused(), and gpio_pin_markUsed().
brain_pin_e parseBrainPin | ( | const char * | str | ) |
Parse string representation of physical pin into Gpio ordinal.
Definition at line 135 of file stm32_pins.cpp.
Referenced by lua_readpin(), and parseBrainPinWithErrorMessage().
const char * portname | ( | ioportid_t | port | ) |
Definition at line 61 of file stm32_pins.cpp.
Referenced by adcPrintChannelReport(), getPinNameByAdcChannel(), gpio_pin_markUsed(), hwOnChipPhysicalPinName(), and reportPins().
|
static |
Definition at line 160 of file stm32_pins.cpp.
Referenced by debugBrainPin().
|
static |
Referenced by getBrainPinPort(), getHwPort(), getPortIndex(), and portname().
|
static |
Definition at line 162 of file stm32_pins.cpp.
Referenced by debugBrainPin().
|
static |
Definition at line 161 of file stm32_pins.cpp.
Referenced by debugBrainPin().