/* SPDX-License-Identifier: GPL-2.0-only */ /** * Copyright (c) 2011 Jonathan Cameron * * Join together the various functionality of iio_simple_dummy driver
*/
/** * struct iio_dummy_state - device instance specific state. * @dac_val: cache for dac value * @single_ended_adc_val: cache for single ended adc value * @differential_adc_val: cache for differential adc value * @accel_val: cache for acceleration value * @accel_calibbias: cache for acceleration calibbias * @accel_calibscale: cache for acceleration calibscale * @lock: lock to ensure state is consistent * @event_irq: irq number for event line (faked) * @event_val: cache for event threshold value * @event_en: cache of whether event is enabled
*/ struct iio_dummy_state { int dac_val; int single_ended_adc_val; int differential_adc_val[2]; int accel_val; int accel_calibbias; int activity_running; int activity_walking; conststruct iio_dummy_accel_calibscale *accel_calibscale; struct mutex lock; struct iio_dummy_regs *regs; int steps_enabled; int steps; int height; #ifdef CONFIG_IIO_SIMPLE_DUMMY_EVENTS int event_irq; int event_val; bool event_en;
s64 event_timestamp; #endif/* CONFIG_IIO_SIMPLE_DUMMY_EVENTS */
};
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.