libgpiod  0.3.2
Data Fields
gpiod_line_iter Struct Reference

GPIO line iterator structure. More...

#include <gpiod.h>

Data Fields

unsigned int offset
 Current line offset. More...
 
struct gpiod_chip * chip
 GPIO chip whose line we're iterating over. More...
 
int state
 Current state of the iterator. More...
 

Detailed Description

GPIO line iterator structure.

This structure is used in conjunction with gpiod_line_iter_next() to iterate over all GPIO lines of a single GPIO chip.

Definition at line 1000 of file gpiod.h.

Field Documentation

◆ chip

struct gpiod_chip* gpiod_line_iter::chip

GPIO chip whose line we're iterating over.

Definition at line 1003 of file gpiod.h.

Referenced by gpiod_line_iter_init().

◆ offset

unsigned int gpiod_line_iter::offset

Current line offset.

Definition at line 1001 of file gpiod.h.

Referenced by gpiod_line_iter_init(), and gpiod_line_iter_last_offset().

◆ state

int gpiod_line_iter::state

Current state of the iterator.

Definition at line 1005 of file gpiod.h.

Referenced by gpiod_line_iter_done(), gpiod_line_iter_err(), and gpiod_line_iter_init().


The documentation for this struct was generated from the following file: