73 virtual void openDevice(uint32_t index,
bool readOnly);
74 virtual void getPath(uint32_t index);
76 virtual bool get(uint32_t index);
86 virtual int32_t
poll(uint32_t index, int32_t timeout,
bool debounce);
88 virtual void set(uint32_t index,
bool value);
89 virtual void setPermission(uint32_t index, int32_t userID, int32_t groupID,
bool readOnly);
93 virtual bool isOpen(uint32_t index);
94 virtual void setup(int32_t userId, int32_t groupId,
bool setPermissions, std::vector<uint32_t>& exportGpios);
virtual void getPath(uint32_t index)
Definition: Gpio.cpp:85
Enum
Definition: Gpio.h:62
virtual std::shared_ptr< FileDescriptor > getFileDescriptor(uint32_t index)
Definition: Gpio.cpp:393
This is the base library main class.
Definition: BaseLib.h:95
virtual void exportGpio(uint32_t index)
Definition: Gpio.cpp:333
Definition: BaseLib.cpp:34
std::string _gpioPath
Definition: Gpio.h:105
std::shared_ptr< FileDescriptor > fileDescriptor
Definition: Gpio.h:101
std::mutex _gpioMutex
Definition: Gpio.h:106
virtual bool isOpen(uint32_t index)
Definition: Gpio.cpp:315
virtual void setPermission(uint32_t index, int32_t userID, int32_t groupID, bool readOnly)
Definition: Gpio.cpp:261
PVariable value
Definition: UiElements.h:217
Enum
Definition: Gpio.h:53
virtual void closeDevice(uint32_t index)
Definition: Gpio.cpp:146
virtual void setEdge(uint32_t index, GpioEdge::Enum edge)
Definition: Gpio.cpp:438
std::string path
Definition: Gpio.h:100
virtual int32_t poll(uint32_t index, int32_t timeout, bool debounce)
Waits for a GPIO input to change and returns the input value.
Definition: Gpio.cpp:188
virtual void openDevice(uint32_t index, bool readOnly)
Definition: Gpio.cpp:58
virtual void setDirection(uint32_t index, GpioDirection::Enum direction)
Definition: Gpio.cpp:411
BaseLib::SharedObjects * _bl
Definition: Gpio.h:104
std::map< uint32_t, GpioInfo > _gpioInfo
Definition: Gpio.h:107
virtual ~Gpio()
Definition: Gpio.cpp:48
Gpio(BaseLib::SharedObjects *baseLib, std::string gpioPath)
Definition: Gpio.cpp:42
virtual void setup(int32_t userId, int32_t groupId, bool setPermissions, std::vector< uint32_t > &exportGpios)
Definition: Gpio.cpp:377