pflib v3.9.0-rc3-11-g2537d8f
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
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< 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.
 

Static Public Attributes

static constexpr int N_GPO = 8
 
static constexpr int N_GPI = 1
 
static constexpr const char * gpo_names []
 

Private Member Functions

void setup ()
 

Private Attributes

std::map< std::string, int > gpos_
 
std::map< std::string, int > gpis_
 
int gpiodev_
 
int fd_gpo_
 

Member Function Documentation

◆ getGPI()

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

Read a GPI bit.

Implements pflib::GPIO.

◆ getGPIs()

virtual std::vector< std::string > pflib::GPIO_HcalHGCROCZCU::getGPIs ( )
inlinevirtual

Get the set of GPI pin names.

Implements pflib::GPIO.

◆ getGPO()

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

Get current value of GPO bit.

Implements pflib::GPIO.

◆ getGPOs()

virtual std::vector< std::string > pflib::GPIO_HcalHGCROCZCU::getGPOs ( )
inlinevirtual

Get the set of GPO pin names.

Implements pflib::GPIO.

◆ setGPO()

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

Set a single GPO bit.

Implements 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: