GPIO line info

class gpiod.LineInfo(offset: int, name: str, used: bool, consumer: str, direction: int, active_low: bool, bias: int, drive: int, edge_detection: int, event_clock: int, debounced: bool, debounce_period_us: int)

Immutable snapshot of a line’s status.

Synchronization: none required

active_low: bool

Active-low setting of the line.

bias: Bias

Bias setting of the line.

consumer: str

Name of the consumer of the line.

debounce_period: timedelta

Debounce period of the line.

debounced: bool

Indicates whether line is debounced.

direction: Direction

Direction setting of the line.

drive: Drive

Drive setting of the line.

edge_detection: Edge

Edge detection setting of the line.

event_clock: Clock

Event clock setting used for edge event timestamps for the line.

name: str

Name of the line.

offset: int

Offset of the line.

used: bool

Indicates whether line is in use.