The Pedigree Project  0.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
BeagleGpio Class Reference
+ Collaboration diagram for BeagleGpio:

Public Member Functions

void initialise ()
 
void clearpin (int pin)
 
void drivepin (int pin)
 
bool pinstate (int pin)
 
int capturepin (int pin)
 
void enableoutput (int pin)
 

Private Member Functions

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

Private Attributes

volatile unsigned int * m_gpio1
 
volatile unsigned int * m_gpio2
 
volatile unsigned int * m_gpio3
 
volatile unsigned int * m_gpio4
 
volatile unsigned int * m_gpio5
 
volatile unsigned int * m_gpio6
 

Detailed Description

GPIO implementation for the BeagleBoard

Definition at line 499 of file main_beagle.cc.

Member Function Documentation

volatile unsigned int* BeagleGpio::getGpioForPin ( int  pin,
int *  bit 
)
inlineprivate

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 651 of file main_beagle.cc.

void BeagleGpio::initspecific ( int  n,
volatile unsigned int *  gpio 
)
inlineprivate

Initialises a specific GPIO to a given set of defaults.

Todo:
When implementing within Pedigree, we'll have a much nicer interface for string manipulation and writing stuff to the UART.

Definition at line 615 of file main_beagle.cc.


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