#include <cbinaryinputgpio.h>


Public Member Functions | |
| virtual bool | active () |
| CBinaryInputGPIO (GPIO_TypeDef *GPIOx, CMachine::ubit16 bits, bool inverted=false) | |
| virtual | ~CBinaryInputGPIO () |
Definition at line 31 of file cbinaryinputgpio.h.
| 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] |
| 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 }

1.5.8