Public Member Functions | Private Member Functions | Private Attributes | List of all members
aditof::Gpio Class Reference

#include <gpio.h>

Public Member Functions

int close ()
 
 Gpio (const std::string &charDeviceName, int gpioNumber)
 
int openForRead ()
 
int openForWrite ()
 
int readValue (int &value)
 
int writeValue (int value)
 

Private Member Functions

int open (int openType)
 

Private Attributes

std::string m_charDevName
 
int m_gpioNumber
 
int m_lineHandle
 

Detailed Description

Definition at line 71 of file gpio.h.

Constructor & Destructor Documentation

◆ Gpio()

Gpio::Gpio ( const std::string charDeviceName,
int  gpioNumber 
)

Definition at line 46 of file gpio.cpp.

Member Function Documentation

◆ close()

int Gpio::close ( )

Definition at line 79 of file gpio.cpp.

◆ open()

int Gpio::open ( int  openType)
private

Definition at line 50 of file gpio.cpp.

◆ openForRead()

int Gpio::openForRead ( )

Definition at line 77 of file gpio.cpp.

◆ openForWrite()

int Gpio::openForWrite ( )

Definition at line 75 of file gpio.cpp.

◆ readValue()

int Gpio::readValue ( int &  value)

Definition at line 90 of file gpio.cpp.

◆ writeValue()

int Gpio::writeValue ( int  value)

Definition at line 109 of file gpio.cpp.

Member Data Documentation

◆ m_charDevName

std::string aditof::Gpio::m_charDevName
private

Definition at line 84 of file gpio.h.

◆ m_gpioNumber

int aditof::Gpio::m_gpioNumber
private

Definition at line 86 of file gpio.h.

◆ m_lineHandle

int aditof::Gpio::m_lineHandle
private

Definition at line 85 of file gpio.h.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:06