/* SPDX-License-Identifier: GPL-2.0+ */ /* * Header file for NI general purpose counter support code (ni_tio.c) * * COMEDI - Linux Control and Measurement Device Interface
*/
/* * Retrieves the register value of the current source of the output selector for * the given destination. * * If the terminal for the destination is not already configured as an output, * this function returns -EINVAL as error. * * Return: the register value of the destination output selector; * -EINVAL if terminal is not configured for output.
*/ int ni_tio_get_routing(struct ni_gpct_device *counter_dev, unsignedint destination);
/* * Sets the register value of the selector MUX for the given destination. * @counter_dev:Pointer to general counter device. * @destination:Device-global identifier of route destination. * @register_value: * The first several bits of this value should store the desired * value to write to the register. All other bits are for * transmitting information that modify the mode of the particular * destination/gate. These mode bits might include a bitwise or of * CR_INVERT and CR_EDGE. Note that the calling function should * have already validated the correctness of this value.
*/ int ni_tio_set_routing(struct ni_gpct_device *counter_dev, unsignedint destination, unsignedint register_value);
/* * Sets the given destination MUX to its default value or disable it. * * Return: 0 if successful; -EINVAL if terminal is unknown.
*/ int ni_tio_unset_routing(struct ni_gpct_device *counter_dev, unsignedint destination);
#endif/* _COMEDI_NI_TIO_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.