rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
plain_pin_repository.h
Go to the documentation of this file.
1#pragma once
2
3#include <rusefi_hw_enums.h>
4
6public:
7 /**
8 * Class constructors are a great way to have simple initialization sequence
9 */
11 const char* & getBrainUsedPin(size_t idx) {
12 /*if (idx >= getBrainPinTotalNum())
13 return NULL;*/
14 return PIN_USED[idx];
15 }
16
17 const char *PIN_USED[BRAIN_PIN_TOTAL_PINS];
18
19};
20
21/**
22 * See also efiSetPadUnused
23 */
24void brain_pin_markUnused(Gpio brainPin);
25int brainPin_to_index(Gpio brainPin);
const char *& getBrainUsedPin(size_t idx)
const char * PIN_USED[BRAIN_PIN_TOTAL_PINS]
int brainPin_to_index(Gpio brainPin)
void brain_pin_markUnused(Gpio brainPin)