pflib v3.0.0-rc1-29-g3a901ac
Pretty Fine HGCROC Interaction Library
|
Representation of GPIO controller. More...
#include <GPIO.h>
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_ |
Representation of GPIO controller.
|
inlinevirtual |
Get the name of a bit if possible.
Reimplemented in pflib::GPIO_HcalHGCROCZCU.
|
pure virtual |
Read all GPI bits.
Implemented in pflib::GPIO_HcalHGCROCZCU.
|
pure virtual |
Read all GPO bits.
Implemented in pflib::GPIO_HcalHGCROCZCU.
|
pure virtual |
Set all GPO bits.
Implemented in pflib::GPIO_HcalHGCROCZCU.
|
virtual |
Set a single GPO bit.
Reimplemented in pflib::GPIO_HcalHGCROCZCU.