Lines Matching +full:clock +full:- +full:error +full:- +full:detect
1 .. SPDX-License-Identifier: GPL-2.0
12 GPIO_V2_GET_LINE_IOCTL - Request a line or lines from the kernel.
37 :ref:`gpio-v2-line-request`.
41 as possible. e.g. gpio-v2-line-get-values-ioctl.rst will read all the
49 Requesting a line already in use is an error (**EBUSY**).
53 .. _gpio-v2-get-line-config-rules:
56 -------------------
63 and the line is requested "as-is" to allow reading of the line value
69 If none are set then the line is assumed push-pull.
76 ``GPIO_V2_LINE_FLAG_INPUT`` to be set and may be combined to detect both rising
78 it is an error (**ENXIO**).
80 Only one event clock flag, ``GPIO_V2_LINE_FLAG_EVENT_CLOCK_xxx``, may be set.
81 If none are set then the event clock defaults to ``CLOCK_MONOTONIC``.
84 doesn't support it is an error (**EOPNOTSUPP**).
88 applies to both the values returned by gpio-v2-line-get-values-ioctl.rst and
89 the edges returned by gpio-v2-line-event-read.rst. If not
92 hardware nor interrupts, as required for software emulation, is an error
95 Requesting an invalid configuration is an error (**EINVAL**).
97 .. _gpio-v2-get-line-config-support:
100 ---------------------
105 - reject the request
106 - emulate the feature in software
107 - treat the feature as best effort
140 In all cases, the configuration reported by gpio-v2-get-lineinfo-ioctl.rst
151 On error -1 and the ``errno`` variable is set appropriately.
152 Common error codes are described in error-codes.rst.