AVR port I/O with runtime pin numbers.
More...
#include <PinIO.h>
List of all members.
Detailed Description
AVR port I/O with runtime pin numbers.
Definition at line 37 of file PinIO.h.
Constructor & Destructor Documentation
PinIO::PinIO |
( |
| ) |
[inline] |
Create a PinIO object with no assigned pin.
Definition at line 40 of file PinIO.h.
Member Function Documentation
void PinIO::high |
( |
| ) |
[inline] |
Set pin level high if output mode or enable 20K pullup if input mode.
This function will enable interrupts. This function should not be called in an ISR or where interrupts are disabled.
Definition at line 107 of file PinIO.h.
void PinIO::highI |
( |
| ) |
[inline] |
Set pin high if output mode or enable 20K pullup if input mode.
This function must be called with interrupts disabled. This function will not change the interrupt state.
Definition at line 64 of file PinIO.h.
void PinIO::low |
( |
| ) |
[inline] |
Set pin level low if output mode or disable 20K pullup if input mode.
This function will enable interrupts. This function should not be called in an ISR or where interrupts are disabled.
Definition at line 115 of file PinIO.h.
void PinIO::lowI |
( |
| ) |
[inline] |
Set pin low if output mode or disable 20K pullup if input mode.
This function must be called with interrupts disabled. This function will not change the interrupt state.
Definition at line 72 of file PinIO.h.
void PinIO::mode |
( |
bool |
pinMode | ) |
[inline] |
Set pin mode
- Parameters:
-
[in] | pinMode | if true set output mode else input mode. |
mode() does not enable or disable the 20K pullup for input mode.
This function will enable interrupts. This function should not be called in an ISR or where interrupts are disabled.
Definition at line 126 of file PinIO.h.
void PinIO::modeI |
( |
bool |
mode | ) |
[inline] |
Set pin mode
- Parameters:
-
[in] | mode | if true set output mode else input mode. |
mode() does not enable or disable the 20K pullup for input mode.
This function must be called with interrupts disabled. This function will not change the interrupt state.
Definition at line 83 of file PinIO.h.
bool PinIO::read |
( |
| ) |
[inline] |
- Returns:
- Pin's level
Definition at line 47 of file PinIO.h.
void PinIO::toggle |
( |
| ) |
[inline] |
toggle a pin
If the pin is in output mode toggle the pin's level. If the pin is in input mode toggle the state of the 20K pullup.
Definition at line 55 of file PinIO.h.
void PinIO::write |
( |
bool |
level | ) |
[inline] |
Write pin.
- Parameters:
-
[in] | level | If output mode set pin high if true else low. If input mode enable 20K pullup if true else disable pullup. |
This function will enable interrupts. This function should not be called in an ISR or where interrupts are disabled.
Definition at line 136 of file PinIO.h.
void PinIO::writeI |
( |
bool |
level | ) |
[inline] |
Write pin.
- Parameters:
-
[in] | level | If output mode set pin high if true else low. If input mode enable 20K pullup if true else disable pullup. |
This function must be called with interrupts disabled. This function will not change the interrupt state.
Definition at line 96 of file PinIO.h.
The documentation for this class was generated from the following files: