GPIO chip info

class chip_info

Represents an immutable snapshot of GPIO chip information.

Public Functions

chip_info(const chip_info &other)

Copy constructor.

Parameters:

other – Object to copy.

chip_info(chip_info &&other) noexcept

Move constructor.

Parameters:

other – Object to move.

chip_info &operator=(const chip_info &other)

Assignment operator.

Parameters:

other – Object to copy.

Returns:

Reference to self.

chip_info &operator=(chip_info &&other) noexcept

Move assignment operator.

Parameters:

other – Object to move.

Returns:

Reference to self.

::std::string name() const noexcept

Get the name of this GPIO chip.

Returns:

String containing the chip name.

::std::string label() const noexcept

Get the label of this GPIO chip.

Returns:

String containing the chip name.

::std::size_t num_lines() const noexcept

Return the number of lines exposed by this chip.

Returns:

Number of lines.