59 #include <external/avr_io_cpp.h> 77 template <
typename DDR,
typename PORT,
typename PIN>
86 #if defined(DDRA) || defined (DOXYGEN) 91 AVR_IOR_PARAM(DDRA), AVR_IOR_PARAM(PORTA), AVR_IOR_PARAM(PINA)>;
93 #if defined(DDRB) || defined (DOXYGEN) 98 AVR_IOR_PARAM(DDRB), AVR_IOR_PARAM(PORTB), AVR_IOR_PARAM(PINB)>;
100 #if defined(DDRC) || defined (DOXYGEN) 105 AVR_IOR_PARAM(DDRC), AVR_IOR_PARAM(PORTC), AVR_IOR_PARAM(PINC)>;
107 #if defined(DDRD) || defined (DOXYGEN) 112 AVR_IOR_PARAM(DDRD), AVR_IOR_PARAM(PORTD), AVR_IOR_PARAM(PIND)>;
120 template <
class TDigitalIo, u
int8_t pinNumber>
137 void set(
bool enable)
154 template <
class TDigitalIo, u
int8_t pinNumber>
171 void set(
bool enable)
185 template <
class TDigitalIo, u
int8_t pinNumber>
195 template <
class TDigitalIo, u
int8_t pinNumber>
208 template <
class TDigitalIo, u
int8_t pinNumber>
216 template<
class TDigitalIo, u
int8_t pinNumber>
227 template <
class TDigitalIo, u
int8_t pinNumber>
238 template <
class TDigitalIo, u
int8_t pinNumber>
249 template <
class TDigitalIo, u
int8_t pinNumber>
bool isSet() const
Determines if the input pin is set.
Definition: pin.h:202
void bitWrite(T &value, uint8_t bit, bool bitValue)
Writes the bit in the given value.
Definition: utils.h:106
void flip()
Flips output pin.
Definition: pin.h:179
void on()
Turns output pin on.
Definition: pin.h:126
Digital I/O register configuration.
Definition: pin.h:78
Output configuration parameter for pin (disabled).
Definition: pin.h:186
void off()
Turns output pin off.
Definition: pin.h:131
void on()
Turns output pin on.
Definition: pin.h:160
void bitFlip(T &value, uint8_t bit)
Flips the bit in the given value.
Definition: utils.h:79
Bit manipulation utilities.
Inverted output pin (active low configuration).
Definition: pin.h:228
Namespace containing all symbols of the AVR C++ utilities library.
Definition: adc.h:48
Output pin (normal mode).
Definition: pin.h:217
bool bitRead(T &value, uint8_t bit)
Returns the bit in the given value.
Definition: utils.h:92
void bitSet(T &value, uint8_t bit)
Sets the bit in the given value to 1.
Definition: utils.h:54
void flip()
Flips output pin.
Definition: pin.h:145
Output configuration parameter for pin (for inverted output pins / active low configuration).
Definition: pin.h:155
Output configuration parameter for pin (normal mode).
Definition: pin.h:121
void off()
Turns output pin off.
Definition: pin.h:165
void setInput()
Use pin as input pin.
Definition: pin.h:268
void setOutput()
Use pin as output pin.
Definition: pin.h:259
void bitClear(T &value, uint8_t bit)
Sets the bit in the given value to 0.
Definition: utils.h:67