gpiod_line_set_config

@brief Update the configuration of a single GPIO line. @param line GPIO line object. @param direction Updated direction which may be one of GPIOD_LINE_REQUEST_DIRECTION_AS_IS, GPIOD_LINE_REQUEST_DIRECTION_INPUT, or GPIOD_LINE_REQUEST_DIRECTION_OUTPUT. @param flags Replacement flags. @param value The new output value for the line when direction is GPIOD_LINE_REQUEST_DIRECTION_OUTPUT. @return 0 is the operation succeeds. In case of an error this routine returns -1 and sets the last error number.

extern (C)
int
gpiod_line_set_config

Meta