![]() |
Soldered SD Card Arduino Library 1.0.0
Easily read and write files to and form the SD card breakout! A fork of the original SDFat library by Bill Greiman.
|
Classes | |
| struct | GpioPinMap_t |
Functions | |
| void | badPinNumber (void) __attribute__((error("Pin number is too large or not a const ant"))) |
| static | __attribute__ ((always_inline)) void badPinCheck(uint8_t pin) |
| if (address > reinterpret_cast< uint8_t * >(0X3F)) | |
| if (level) | |
| if (mode !=OUTPUT) | |
Variables | |
| static uint8_t | mask |
| static uint8_t bool | level |
| else | |
| static uint8_t | mode |
| static bool | value |
| union csd_t | __attribute__ |
Fast Digital I/O functions and template class.
|
inlinestatic |
Check for valid pin number
| [in] | pin | Number of pin to be checked. |
DDR register address
| [in] | pin | Arduino pin number |
Bit mask for pin
| [in] | pin | Arduino pin number |
PIN register address
| [in] | pin | Arduino pin number |
PORT register address
| [in] | pin | Arduino pin number |
Fast write helper.
| [in] | address | I/O register address |
| [in] | mask | bit mask for pin |
| [in] | level | value for bit |
Read pin value.
| [in] | pin | Arduino pin number |
Toggle a pin.
| [in] | pin | Arduino pin number |
If the pin is in output mode toggle the pin level. If the pin is in input mode toggle the state of the 20K pullup.
Set pin value.
| [in] | pin | Arduino pin number |
| [in] | level | value to write |
Write the DDR register.
| [in] | pin | Arduino pin number |
| [in] | level | value to write |
Set pin mode.
| [in] | pin | Arduino pin number |
| [in] | mode | INPUT, OUTPUT, or INPUT_PULLUP. |
The internal pullup resistors will be enabled if mode is INPUT_PULLUP and disabled if the mode is INPUT.
read pin value
| [in] | pin | Arduino pin number |
Set pin value
| [in] | pin | Arduino pin number |
| [in] | level | value to write |
| void badPinNumber | ( | void | ) | const |
generate bad pin number error
| if | ( | address | , |
| reinterpret_cast< uint8_t * > | 0X3F ) |
| if | ( | level | ) |
| if | ( | mode ! | = OUTPUT | ) |
|
inline |
DDR register address
| [in] | pin | Arduino pin number |
Bit mask for pin
| [in] | pin | Arduino pin number |
PIN register address
| [in] | pin | Arduino pin number |
PORT register address
| [in] | pin | Arduino pin number |
Fast write helper.
| [in] | address | I/O register address |
| [in] | mask | bit mask for pin |
| [in] | level | value for bit |
Read pin value.
| [in] | pin | Arduino pin number |
Toggle a pin.
| [in] | pin | Arduino pin number |
If the pin is in output mode toggle the pin level. If the pin is in input mode toggle the state of the 20K pullup.
Set pin value.
| [in] | pin | Arduino pin number |
| [in] | level | value to write |
Write the DDR register.
| [in] | pin | Arduino pin number |
| [in] | level | value to write |
Set pin mode.
| [in] | pin | Arduino pin number |
| [in] | mode | INPUT, OUTPUT, or INPUT_PULLUP. |
The internal pullup resistors will be enabled if mode is INPUT_PULLUP and disabled if the mode is INPUT.
read pin value
| [in] | pin | Arduino pin number |
Set pin value
| [in] | pin | Arduino pin number |
| [in] | level | value to write |
| bool level |
| uint8_t mask |
| uint8_t mode |
| bool value |