8 #ifndef __LIBGPIOD_CXX_CHIP_INFO_HPP__
9 #define __LIBGPIOD_CXX_CHIP_INFO_HPP__
11 #if !defined(__LIBGPIOD_GPIOD_CXX_INSIDE__)
12 #error "Only gpiod.hpp can be included directly."
66 ::std::string
name()
const noexcept;
72 ::std::string
label()
const noexcept;
86 ::std::shared_ptr<impl> _m_priv;
97 ::std::ostream& operator<<(::std::ostream& out,
const chip_info&
chip);
Represents an immutable snapshot of GPIO chip information.
chip_info & operator=(const chip_info &other)
Assignment operator.
::std::size_t num_lines() const noexcept
Return the number of lines exposed by this chip.
::std::string label() const noexcept
Get the label of this GPIO chip.
::std::string name() const noexcept
Get the name of this GPIO chip.