Speeduino
Loading...
Searching...
No Matches
outputPin.h
Go to the documentation of this file.
1#pragma once
2#include "digitalPin.h"
9{
10public:
12 void setPin(uint8_t pin, uint8_t mode = OUTPUT) noexcept {
13 _pin.setPin(pin, mode);
14 }
15
17 void setPinHigh(void) noexcept {
18 _pin.setPinHigh();
19 }
20
22 void setPinLow(void) noexcept {
23 _pin.setPinLow();
24 }
25
27 bool isValid(void) const noexcept
28 {
29 return _pin.isValid();
30 }
31
32#if !defined(UNIT_TEST)
33private:
34#endif
35 digitalPin_t _pin;
36};
A class for input pin operations.
Definition digitalPin.h:14
bool isValid(void) const
Is the pin set?
Definition digitalPin.h:21
void setPinHigh(void) noexcept
Set the pin high.
Definition digitalPin.cpp:17
void setPin(uint8_t pin, uint8_t mode) noexcept
Set the input pin.
Definition digitalPin.cpp:7
void setPinLow(void) noexcept
Set the pin low.
Definition digitalPin.cpp:29
A class for output pin operations. Must have same signature as fastOutputPin_t to allow for interchan...
Definition outputPin.h:9
void setPinHigh(void) noexcept
Set the pin high.
Definition outputPin.h:17
void setPinLow(void) noexcept
Set the pin low.
Definition outputPin.h:22
bool isValid(void) const noexcept
Is the pin set?
Definition outputPin.h:27
void setPin(uint8_t pin, uint8_t mode=OUTPUT) noexcept
Set the output pin.
Definition outputPin.h:12
Definition array.h:14