SdFat
Classes | Macros | Functions
DigitalPin.h File Reference

Fast Digital Pin functions. More...

#include "SystemInclude.h"
#include <avr/io.h>
#include "boards/GpioPinMap.h"
Include dependency graph for DigitalPin.h:
This graph shows which files directly or indirectly include this file:

Classes

class  DigitalPin< PinNumber >
 Fast digital port I/O. More...
 
struct  GpioPinMap_t
 

Macros

#define GPIO_PIN(reg, bit)   {&PIN##reg, &DDR##reg, &PORT##reg, 1 << bit}
 

Functions

static void badPinCheck (uint8_t pin)
 
void badPinNumber (void)
 
static volatile uint8_t * ddrReg (uint8_t pin)
 
static void fastBitWriteSafe (volatile uint8_t *address, uint8_t mask, bool level)
 
static void fastDdrWrite (uint8_t pin, bool level)
 
static bool fastDigitalRead (uint8_t pin)
 
static void fastDigitalToggle (uint8_t pin)
 
static void fastDigitalWrite (uint8_t pin, bool level)
 
static void fastPinConfig (uint8_t pin, uint8_t mode, bool level)
 
static void fastPinMode (uint8_t pin, uint8_t mode)
 
static uint8_t pinMask (uint8_t pin)
 
static volatile uint8_t * pinReg (uint8_t pin)
 
static volatile uint8_t * portReg (uint8_t pin)
 

Detailed Description

Fast Digital Pin functions.