PIDUINO
Loading...
Searching...
No Matches
Gpio2::LineInfo

Information about a certain GPIO line. More...

#include <gpio2.h>

Inheritance diagram for Gpio2::LineInfo:
Collaboration diagram for Gpio2::LineInfo:

Public Member Functions

 LineInfo ()
 Default constructor initializes the LineInfo structure.
 
 LineInfo (uint32_t offset)
 Constructor initializes the LineInfo structure with a specific offset.
 
void printAttributes (std::ostream &os=std::cout) const
 Print the attributes of this GPIO line to the specified output stream.
 

Detailed Description

Information about a certain GPIO line.

Note
This structure is used to retrieve information about a GPIO line and is part of the ABI v2. It replaces the older &struct gpioline_info structure from ABI v1. The fields are similar but the structure is aligned to 64 bits and includes additional attributes for line configuration.

Definition at line 193 of file gpio2.h.

Constructor & Destructor Documentation

◆ LineInfo() [1/2]

Gpio2::LineInfo::LineInfo ( )
inline

Default constructor initializes the LineInfo structure.

Definition at line 197 of file gpio2.h.

◆ LineInfo() [2/2]

Gpio2::LineInfo::LineInfo ( uint32_t  offset)
inline

Constructor initializes the LineInfo structure with a specific offset.

Parameters
offsetThe local offset on the GPIO chip.

Definition at line 205 of file gpio2.h.

Member Function Documentation

◆ printAttributes()

void Gpio2::LineInfo::printAttributes ( std::ostream &  os = std::cout) const

Print the attributes of this GPIO line to the specified output stream.

Parameters
osThe output stream to which the attributes will be printed, defaults to std cout.