Public Member Functions | Private Member Functions | Private Attributes
GPIO Class Reference

#include <gpio.h>

List of all members.

Public Member Functions

bool clearPins (uint32_t pins)
uint32_t getState ()
 GPIO ()
bool init ()
bool isInitialized () const
bool pwmPin (uint32_t pin, float level)
bool setInput (uint32_t pin)
bool setOutput (uint32_t pin)
bool setPins (uint32_t pins)
bool writePin (uint32_t pin, uint32_t level)

Private Member Functions

bool call (int(*func)(uint32_t), uint32_t mask, uint32_t pins)

Private Attributes

bool initialized
uint32_t out_mask0

Detailed Description

Definition at line 23 of file gpio.h.


Constructor & Destructor Documentation

GPIO::GPIO ( ) [inline]

Definition at line 30 of file gpio.h.


Member Function Documentation

bool GPIO::call ( int(*)(uint32_t)  func,
uint32_t  mask,
uint32_t  pins 
) [inline, private]

Definition at line 26 of file gpio.h.

bool GPIO::clearPins ( uint32_t  pins) [inline]

Definition at line 45 of file gpio.h.

uint32_t GPIO::getState ( ) [inline]

Definition at line 68 of file gpio.h.

bool GPIO::init ( ) [inline]

Definition at line 42 of file gpio.h.

bool GPIO::isInitialized ( ) const [inline]

Definition at line 31 of file gpio.h.

bool GPIO::pwmPin ( uint32_t  pin,
float  level 
) [inline]

Definition at line 57 of file gpio.h.

bool GPIO::setInput ( uint32_t  pin) [inline]

Definition at line 32 of file gpio.h.

bool GPIO::setOutput ( uint32_t  pin) [inline]

Definition at line 35 of file gpio.h.

bool GPIO::setPins ( uint32_t  pins) [inline]

Definition at line 48 of file gpio.h.

bool GPIO::writePin ( uint32_t  pin,
uint32_t  level 
) [inline]

Definition at line 51 of file gpio.h.


Member Data Documentation

bool GPIO::initialized [private]

Definition at line 24 of file gpio.h.

uint32_t GPIO::out_mask0 [private]

Definition at line 25 of file gpio.h.


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


cob_hand_bridge
Author(s): Mathias Lüdtke
autogenerated on Thu Jun 6 2019 20:43:57