pflib v3.0.0-rc1-29-g3a901ac
Pretty Fine HGCROC Interaction Library
All Classes Namespaces Files Functions Variables Typedefs Pages
pflib::GPIO Class Referenceabstract

Representation of GPIO controller. More...

#include <GPIO.h>

Inheritance diagram for pflib::GPIO:
[legend]

Public Member Functions

int getGPOcount ()
 Get the number of GPO bits.
 
int getGPIcount ()
 Get the number of GPI bits.
 
virtual std::string getBitName (int ibit, bool isgpo=true)
 Get the name of a bit if possible.
 
virtual bool getGPI (int ibit)
 Read a GPI bit.
 
virtual std::vector< bool > getGPI ()=0
 Read all GPI bits.
 
virtual void setGPO (int ibit, bool toTrue=true)
 Set a single GPO bit.
 
virtual void setGPO (const std::vector< bool > &bits)=0
 Set all GPO bits.
 
virtual std::vector< bool > getGPO ()=0
 Read all GPO bits.
 
bool getGPI_single (int ibit)
 convenience wrapper for python bindings
 
std::vector< bool > getGPI_all ()
 
void setGPO_single (int ibit, bool t)
 
void setGPO_all (const std::vector< bool > &b)
 

Protected Member Functions

 GPIO (int gpo, int gpi)
 

Private Attributes

int ngpi_
 Cached numbers of GPI and GPO bits.
 
int ngpo_
 

Detailed Description

Representation of GPIO controller.

Member Function Documentation

◆ getBitName()

virtual std::string pflib::GPIO::getBitName ( int ibit,
bool isgpo = true )
inlinevirtual

Get the name of a bit if possible.

Reimplemented in pflib::GPIO_HcalHGCROCZCU.

◆ getGPI()

virtual std::vector< bool > pflib::GPIO::getGPI ( )
pure virtual

Read all GPI bits.

Implemented in pflib::GPIO_HcalHGCROCZCU.

◆ getGPO()

virtual std::vector< bool > pflib::GPIO::getGPO ( )
pure virtual

Read all GPO bits.

Implemented in pflib::GPIO_HcalHGCROCZCU.

◆ setGPO() [1/2]

virtual void pflib::GPIO::setGPO ( const std::vector< bool > & bits)
pure virtual

Set all GPO bits.

Implemented in pflib::GPIO_HcalHGCROCZCU.

◆ setGPO() [2/2]

void pflib::GPIO::setGPO ( int ibit,
bool toTrue = true )
virtual

Set a single GPO bit.

Reimplemented in pflib::GPIO_HcalHGCROCZCU.


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