gpiohandle_config

Configuration for a GPIO handle request Note: only in kernel newer than early 2020

version(linux)
extern (C)
struct gpiohandle_config {}

Members

Variables

default_values
ubyte[GPIOHANDLES_MAX] default_values;

if the GPIOHANDLE_REQUEST_OUTPUT is set in flags, this specifies the default output value, should be 0 (low) or 1 (high), anything else than 0 or 1 will be interpreted as 1 (high)

flags
uint flags;

updated flags for the requested GPIO lines, such as GPIOHANDLE_REQUEST_OUTPUT, GPIOHANDLE_REQUEST_ACTIVE_LOW etc, OR:ed together

padding
uint[4] padding;

must be 0

Meta