Class

GpiodglibChip

since: 1.0

Description

final class Gpiodglib.Chip : GObject.Object
  implements Gio.Initable {
  /* No available fields */
}

Represents a single GPIO chip.

Available since: 1.0

Ancestors

Implements

Constructors

gpiodglib_chip_new

Instantiates a new chip object by opening the device file indicated by path.

since: 1.0

Instance methods

gpiodglib_chip_close

Close the GPIO chip device file and free associated resources.

since: 1.0

gpiodglib_chip_dup_path

Get the filesystem path that was used to open this GPIO chip.

since: 1.0

gpiodglib_chip_get_info

Get information about the chip.

since: 1.0

gpiodglib_chip_get_line_info

Retrieve the current snapshot of line information for a single line.

since: 1.0

gpiodglib_chip_get_line_offset_from_name

Map a GPIO line’s name to its offset within the chip.

since: 1.0

gpiodglib_chip_is_closed

brief Check if this object is valid.

since: 1.0

gpiodglib_chip_request_lines

Request a set of lines for exclusive usage.

since: 1.0

gpiodglib_chip_unwatch_line_info

Stop watching the line at given offset for info events.

since: 1.0

gpiodglib_chip_watch_line_info

Retrieve the current snapshot of line information for a single line and start watching this line for future changes.

since: 1.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from GInitable (1)
g_initable_init

Initializes the object implementing the interface.

unstable since: 2.22

Properties

Gpiodglib.Chip:path

Path that was used to open this GPIO chip.

since: 1.0

Signals

Gpiodglib.Chip::info-event

Emitted when the state of a watched GPIO line changes.

since: 1.0

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

since: 2.0

Class structure

struct GpiodglibChipClass {
  GObjectClass parent_class;
  
}
No description available.
Class members
parent_class: GObjectClass
No description available.