PikeAero::CBinaryInputGPIO Class Reference

#include <cbinaryinputgpio.h>

Inheritance diagram for PikeAero::CBinaryInputGPIO:

Inheritance graph
[legend]
Collaboration diagram for PikeAero::CBinaryInputGPIO:

Collaboration graph
[legend]

Public Member Functions

virtual bool active ()
 CBinaryInputGPIO (GPIO_TypeDef *GPIOx, CMachine::ubit16 bits, bool inverted=false)
virtual ~CBinaryInputGPIO ()

Detailed Description

Implements a GPIO binary input pin.
Author:
Michael Sharkey <mike@pikeaero.com>

Definition at line 31 of file cbinaryinputgpio.h.


Constructor & Destructor Documentation

PikeAero::CBinaryInputGPIO::CBinaryInputGPIO ( GPIO_TypeDef GPIOx,
CMachine::ubit16  bits,
bool  inverted = false 
)

Definition at line 24 of file cbinaryinputgpio.cpp.

00025 : CBinaryInputOutputGPIO(GPIOx, bits, inverted)
00026 {
00027 }

PikeAero::CBinaryInputGPIO::~CBinaryInputGPIO (  )  [virtual]

Definition at line 30 of file cbinaryinputgpio.cpp.

00031 {
00032 }


Member Function Documentation

bool PikeAero::CBinaryInputGPIO::active (  )  [virtual]

Reimplemented from PikeAero::CBinaryInputOutputGPIO.

Definition at line 34 of file cbinaryinputgpio.cpp.

References PikeAero::CBinaryInputOutputGPIO::bits(), PikeAero::CBinaryInputOutputGPIO::gpio(), PikeAero::CBinaryInputOutputGPIO::inverted(), and PikeAero::GPIO_TypeDef::PD.

00035 {
00036     return inverted() ? (( gpio()->PD & bits() ) == 0) : (( gpio()->PD & bits() ) != 0);
00037 }

Here is the call graph for this function:


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

Generated on Sun Oct 25 13:59:43 2009 for stingray3 by  doxygen 1.5.8