ApraLinuxUtils 1.0.0
C++ utility library for embedded Linux systems
 
Loading...
Searching...
No Matches
apra::GPIO Class Reference

#include <GPIO.h>

Public Member Functions

 GPIO (uint gpioNo)
 
virtual ~GPIO ()
 
bool Init (bool isRead)
 
bool Init4EdgeInterrupt (bool isRead, GPIO_EDGES edge)
 
bool UnInit ()
 
int Open ()
 
bool Close ()
 
int Read ()
 
int ReadWithInterrupt (unsigned long uSecTout)
 
bool Write (bool makeHigh)
 
int & GetGPIODescriptor ()
 

Static Public Member Functions

static int ReadOnce (uint gpioNo)
 
static bool WriteOnce (uint gpioNo, bool makeHigh)
 

Detailed Description

Definition at line 27 of file GPIO.h.

Constructor & Destructor Documentation

◆ GPIO()

GPIO::GPIO ( uint  gpioNo)

Definition at line 25 of file GPIO.cpp.

◆ ~GPIO()

GPIO::~GPIO ( )
virtual

Definition at line 30 of file GPIO.cpp.

Member Function Documentation

◆ Close()

bool GPIO::Close ( )

Definition at line 91 of file GPIO.cpp.

Referenced by ReadOnce(), and WriteOnce().

◆ GetGPIODescriptor()

int & GPIO::GetGPIODescriptor ( )

Definition at line 267 of file GPIO.cpp.

◆ Init()

bool GPIO::Init ( bool  isRead)

Definition at line 52 of file GPIO.cpp.

Referenced by Init4EdgeInterrupt(), ReadOnce(), and WriteOnce().

◆ Init4EdgeInterrupt()

bool GPIO::Init4EdgeInterrupt ( bool  isRead,
GPIO_EDGES  edge 
)

Definition at line 62 of file GPIO.cpp.

References Init().

◆ Open()

int GPIO::Open ( )

Definition at line 77 of file GPIO.cpp.

References SYS_GPIO_PATH.

Referenced by ReadOnce(), and WriteOnce().

◆ Read()

int GPIO::Read ( )

Definition at line 205 of file GPIO.cpp.

Referenced by ReadOnce(), and ReadWithInterrupt().

◆ ReadOnce()

int GPIO::ReadOnce ( uint  gpioNo)
static

Definition at line 241 of file GPIO.cpp.

References Close(), Init(), Open(), Read(), and UnInit().

◆ ReadWithInterrupt()

int GPIO::ReadWithInterrupt ( unsigned long  uSecTout)

Definition at line 272 of file GPIO.cpp.

References Read().

◆ UnInit()

bool GPIO::UnInit ( )

Definition at line 72 of file GPIO.cpp.

Referenced by ReadOnce(), and WriteOnce().

◆ Write()

bool GPIO::Write ( bool  makeHigh)

Definition at line 226 of file GPIO.cpp.

Referenced by WriteOnce().

◆ WriteOnce()

bool GPIO::WriteOnce ( uint  gpioNo,
bool  makeHigh 
)
static

Definition at line 254 of file GPIO.cpp.

References Close(), Init(), Open(), UnInit(), and Write().


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