The Pedigree Project  0.1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Gpio Class Reference

#include <Gpio.h>

+ Collaboration diagram for Gpio:

Public Member Functions

void initialise (uintptr_t gpio1, uintptr_t gpio2, uintptr_t gpio3, uintptr_t gpio4, uintptr_t gpio5, uintptr_t gpio6)
 
void clearpin (int pin)
 
void drivepin (int pin)
 
bool pinstate (int pin)
 
int capturepin (int pin)
 
void enableoutput (int pin)
 

Static Public Member Functions

static Gpioinstance ()
 

Private Member Functions

void initspecific (int n, volatile uint32_t *gpio)
 Initialises a specific GPIO to a given set of defaults.
 
volatile uint32_t * getGpioForPin (int pin, int *bit)
 

Private Attributes

MemoryRegion m_Gpio1
 
MemoryRegion m_Gpio2
 
MemoryRegion m_Gpio3
 
MemoryRegion m_Gpio4
 
MemoryRegion m_Gpio5
 
MemoryRegion m_Gpio6
 

Static Private Attributes

static Gpio m_Instance
 

Detailed Description

GPIO implementation for the BeagleBoard

Definition at line 30 of file Gpio.h.

Member Function Documentation

volatile uint32_t * Gpio::getGpioForPin ( int  pin,
int *  bit 
)
private

Gets the correct GPIO MMIO range for a given GPIO pin. The base indicates which bit represents this pin in registers, where relevant

Definition at line 137 of file Gpio.cc.

References MemoryRegion::virtualAddress().


The documentation for this class was generated from the following files: