Lines Matching +full:standard +full:- +full:mode
1 .. SPDX-License-Identifier: GPL-2.0
12 and standard of interaction and exposure. This driver API attempts to
39 ------
57 -------
62 The Synapse action mode specifies the Signal data condition that
68 Signal does not trigger the count function. In Pulse-Direction count
69 function mode, this Signal is evaluated as Direction.
91 -----
96 A Count has a count function mode which represents the update behavior
106 * Pulse-Direction:
114 - x1 A:
120 - x1 B:
126 - x2 A:
130 - x2 B:
134 - x4:
149 ----- ------- ------
150 +---------------------+
152 | Function: Increase | <------------- / Source \
154 +---------------------+
160 specified by the Synapse -- in this case a rising edge condition on the
172 ----- ------- ------
173 +-------------------------+
175 | Function: Quadrature x4 | <------------ / A \
179 | | <------------ / B \
181 +-------------------------+
192 mode conditions. For example, a quadrature encoder counter device
193 operating in a non-quadrature Pulse-Direction mode could have one input
198 ----- ------- ------
199 +---------------------------+
201 | Function: Pulse-Direction | <------------- / A \ (Movement)
205 | | <------------- / B \ (Direction)
207 +---------------------------+
209 Only Signal A triggers the "Pulse-Direction" update function, but the
213 Synapses, but only one Synapse has an active action mode condition which
215 "None" condition action mode to indicate its respective Signal's
216 availability for state evaluation despite its non-triggering mode.
222 whether an input line is differential or single-ended) and instead focus
234 .. kernel-doc:: include/linux/counter.h
237 .. kernel-doc:: drivers/counter/counter-core.c
240 .. kernel-doc:: drivers/counter/counter-chrdev.c
262 and Counts, and to set and get the "action mode" and "function mode" for
274 The "type" member specifies the type of high-level data (e.g. BOOL,
282 the provided macros for standard Counter subsystem attributes in order
284 device driver may define several standard attributes like so::
335 non-specific to a particular Count or Signal. This is where you would
347 interface. This guarantees a standard userspace interface for all
351 A high-level view of how a count value is passed down from a counter
358 +----------------------------+
360 +----------------------------+
362 +----------------------------+
364 -------------------
366 -------------------
369 +----------------------+
371 +----------------------+
375 +----------------------+
377 -------------------
379 -------------------
381 +---------------+---------------+
384 +--------------------+ +---------------------+
386 +--------------------+ +---------------------+
388 | standard Counter | | standard Counter |
390 +--------------------+ +---------------------+
397 ----------------------
399 +----------------------+
401 +----------------------+
403 -----------------
405 -----------------
408 +----------------------------+
410 +----------------------------+
412 |----------------------------|
415 +----------------------------+
417 ----------
419 ----------
421 +---------------+---------------+
424 +--------------------+ +---------------------+
426 +--------------------+ +---------------------+
428 | standard Counter | | standard Counter |
430 |--------------------| |---------------------|
433 +--------------------+ +---------------------+
435 --------------- -----------------------
437 --------------- -----------------------
440 | +-----------+
442 | +-----------+
444 | -----------
447 +--------------------------------------------------+
449 +--------------------------------------------------+
451 --------------------------------------------------
456 ---------------------
461 ------------
466 -------------
467 Translates counter data to the standard Counter sysfs interface format
470 Please refer to the ``Documentation/ABI/testing/sysfs-bus-counter`` file
475 --------------
476 Translates Counter events to the standard Counter character device; data
477 is transferred via standard character device read calls, while Counter
486 ``Documentation/ABI/testing/sysfs-bus-counter`` for detailed information
498 Defines for the standard Counter data types are exposed via the
502 --------------
519 +------------------------+------------------------+
523 +------------------------+------------------------+
527 | * Count 4 Extension 2 +------------------------+
529 | +------------------------+
533 +------------------------+------------------------+
538 Extension 0, and Count 7 -- the data returned for each is pushed to a
540 standard read operation on the respective character device node.
543 ---------