bindings: python: add the output_values argument to Chip.request_lines()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 13 Jan 2023 09:41:44 +0000 (10:41 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 25 Jan 2023 08:42:02 +0000 (09:42 +0100)
commit27a69b0bfd4b6812f5a31848c5433069b7940151
treeeba055dd0b3ee221850facd42c8285c9daa02964
parent36aa6a00ae771c3128db561dff11a8f8e5be74c3
bindings: python: add the output_values argument to Chip.request_lines()

Add a new optional argument to Chip.request_lines() called output_values.
It accepts a dictionary of mappings between line names or offsets to the
output values the requested lines should be set to at request-time.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/python/gpiod/chip.py
bindings/python/gpiod/ext/line-config.c
bindings/python/tests/tests_line_request.py