pflib v3.9.0-rc3-11-g2537d8f
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
pflib::lpgbt::GPIO Class Reference
Inheritance diagram for pflib::lpgbt::GPIO:
[legend]
Collaboration diagram for pflib::lpgbt::GPIO:
[legend]

Public Member Functions

 GPIO (lpGBT &lpgbt)
 
virtual std::vector< std::stringgetGPOs ()
 Get the set of GPO pin names.
 
virtual std::vector< std::stringgetGPIs ()
 Get the set of GPI pin names.
 
virtual bool getGPI (const std::string &name)
 Read a GPI bit.
 
virtual bool getGPO (const std::string &name)
 Get current value of GPO bit.
 
virtual void setGPO (const std::string &name, bool toTrue=true)
 Set a single GPO bit.
 
- Public Member Functions inherited from pflib::GPIO
virtual bool hasGPO (const std::string &name)
 Check if a given GPO exists.
 
virtual bool hasGPI (const std::string &name)
 Check if a given GPI exists.
 

Protected Member Functions

void add_pin (const std::string &name, int ibit, bool output)
 
- Protected Member Functions inherited from pflib::GPIO

Private Attributes

lpGBTlpgbt_
 
std::map< std::string, int > gpos_
 
std::map< std::string, int > gpis_
 

Friends

class ::pflib::lpGBT
 

Member Function Documentation

◆ getGPI()

bool pflib::lpgbt::GPIO::getGPI ( const std::string & name)
virtual

Read a GPI bit.

Implements pflib::GPIO.

◆ getGPIs()

std::vector< std::string > pflib::lpgbt::GPIO::getGPIs ( )
virtual

Get the set of GPI pin names.

Implements pflib::GPIO.

◆ getGPO()

bool pflib::lpgbt::GPIO::getGPO ( const std::string & name)
virtual

Get current value of GPO bit.

Implements pflib::GPIO.

◆ getGPOs()

std::vector< std::string > pflib::lpgbt::GPIO::getGPOs ( )
virtual

Get the set of GPO pin names.

Implements pflib::GPIO.

◆ setGPO()

void pflib::lpgbt::GPIO::setGPO ( const std::string & name,
bool toTrue = true )
virtual

Set a single GPO bit.

Implements pflib::GPIO.


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