This commit is contained in:
rusefi 2017-07-10 21:41:13 -04:00
parent 45941bd99d
commit eb97b2ea20
1 changed files with 16 additions and 5 deletions

View File

@ -27,16 +27,27 @@ void turnAllPinsOff(void);
class OutputPin {
public:
OutputPin();
/**
* initializes pin & registers it in pin repository
*/
void initPin(const char *msg, brain_pin_e brainPin, pin_output_mode_e *outputMode);
/**
* same as above, with DEFAULT_OUTPUT mode
*/
void initPin(const char *msg, brain_pin_e brainPin);
/**
* disassosiates pin from this output and un-registers it in pin repository
*/
void unregisterOutput(brain_pin_e oldPin, brain_pin_e newPin);
bool isInitialized();
bool isPinAssigned();
void setValue(int logicValue);
void setDefaultPinState(pin_output_mode_e *defaultState);
bool getLogicValue();
bool isPinAssigned();
void initPin(const char *msg, brain_pin_e brainPin);
void initPin(const char *msg, brain_pin_e brainPin, pin_output_mode_e *outputMode);
void unregisterOutput(brain_pin_e oldPin, brain_pin_e newPin);
#if EFI_GPIO_HARDWARE || defined(__DOXYGEN__)
ioportid_t port;