pflib v3.9.0-rc3-11-g2537d8f
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
GPIO.h
1#ifndef PFLIB_GPIO_H_
2#define PFLIB_GPIO_H_
3
4#include <string>
5#include <vector>
6
7namespace pflib {
8
12class GPIO {
13 protected:
14 GPIO() {}
15
16 public:
21
26
28 virtual bool hasGPO(const std::string& name);
29
31 virtual bool hasGPI(const std::string& name);
32
36 virtual bool getGPI(const std::string& name) = 0;
37
41 virtual bool getGPO(const std::string& name) = 0;
42
46 virtual void setGPO(const std::string& name, bool toTrue = true) = 0;
47};
48
49GPIO* make_GPIO_HcalHGCROCZCU();
50
51} // namespace pflib
52
53#endif // PFLIB_GPIO_H_
Representation of GPIO controller.
Definition GPIO.h:12
virtual bool hasGPO(const std::string &name)
Check if a given GPO exists.
Definition GPIO.cxx:9
virtual std::vector< std::string > getGPIs()=0
Get the set of GPI pin names.
virtual bool getGPO(const std::string &name)=0
Get current value of GPO bit.
virtual bool getGPI(const std::string &name)=0
Read a GPI bit.
virtual bool hasGPI(const std::string &name)
Check if a given GPI exists.
Definition GPIO.cxx:22
virtual std::vector< std::string > getGPOs()=0
Get the set of GPO pin names.
virtual void setGPO(const std::string &name, bool toTrue=true)=0
Set a single GPO bit.
This version of the fast control code interfaces with the CMS Fast control library which can be contr...
Definition Backend.cxx:3