pflib v3.0.0-rc1-29-g3a901ac
Pretty Fine HGCROC Interaction Library
All Classes Namespaces Files Functions Variables Typedefs Pages
pflib::GPIO_HcalHGCROCZCU Class Reference
Inheritance diagram for pflib::GPIO_HcalHGCROCZCU:
[legend]
Collaboration diagram for pflib::GPIO_HcalHGCROCZCU:
[legend]

Public Member Functions

virtual std::vector< bool > getGPI ()
 Read all GPI bits.
 
virtual std::string getBitName (int ibit, bool isgpo)
 Get the name of a bit if possible.
 
virtual void setGPO (int ibit, bool toTrue=true)
 Set a single GPO bit.
 
virtual void setGPO (const std::vector< bool > &bits)
 Set all GPO bits.
 
virtual std::vector< bool > getGPO ()
 Read all GPO bits.
 
- Public Member Functions inherited from pflib::GPIO
int getGPOcount ()
 Get the number of GPO bits.
 
int getGPIcount ()
 Get the number of GPI bits.
 
virtual bool getGPI (int ibit)
 Read a GPI bit.
 
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)
 

Static Public Attributes

static constexpr const char * gpo_names []
 

Private Member Functions

void setup ()
 

Private Attributes

int gpiodev_
 
int fd_gpo_
 

Additional Inherited Members

- Protected Member Functions inherited from pflib::GPIO
 GPIO (int gpo, int gpi)
 

Member Function Documentation

◆ getBitName()

virtual std::string pflib::GPIO_HcalHGCROCZCU::getBitName ( int ibit,
bool isgpo )
inlinevirtual

Get the name of a bit if possible.

Reimplemented from pflib::GPIO.

◆ getGPI()

std::vector< bool > pflib::GPIO_HcalHGCROCZCU::getGPI ( )
virtual

Read all GPI bits.

Implements pflib::GPIO.

◆ getGPO()

std::vector< bool > pflib::GPIO_HcalHGCROCZCU::getGPO ( )
virtual

Read all GPO bits.

Implements pflib::GPIO.

◆ setGPO() [1/2]

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

Set all GPO bits.

Implements pflib::GPIO.

◆ setGPO() [2/2]

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

Set a single GPO bit.

Reimplemented from pflib::GPIO.

Member Data Documentation

◆ gpo_names

const char* pflib::GPIO_HcalHGCROCZCU::gpo_names[]
staticconstexpr
Initial value:
={
"HGCROC_RSTB_I2C","HGCROC_SOFT_RSTB",
"HGCROC_HARD_RSTB","UNUSED1",
"HGCROC_ADDR0","HGCROC_ADDR1",
"SCL_PHASE","POWER_OFF"}

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