/* EC returns sensor values using signed 16 bit registers */ #define CROS_EC_SENSOR_BITS 16
/* * 4 16 bit channels are allowed. * Good enough for current sensors, they use up to 3 16 bit vectors.
*/ #define CROS_EC_SAMPLE_SIZE (sizeof(s64) * 2)
/** * struct cros_ec_sensors_core_state - state data for EC sensors IIO driver * @ec: cros EC device structure * @cmd_lock: lock used to prevent simultaneous access to the * commands. * @msg: cros EC command structure * @param: motion sensor parameters structure * @resp: motion sensor response structure * @type: type of motion sensor * @range_updated: True if the range of the sensor has been * updated. * @curr_range: If updated, the current range value. * It will be reapplied at every resume. * @calib: calibration parameters. Note that trigger * captured data will always provide the calibrated * data * @samples: static array to hold data from a single capture. * For each channel we need 2 bytes, except for * the timestamp. The timestamp is always last and * is always 8-byte aligned. * @read_ec_sensors_data: function used for accessing sensors values * @fifo_max_event_count: Size of the EC sensor FIFO * @frequencies: Table of known available frequencies: * 0, Min and Max in mHz
*/ struct cros_ec_sensors_core_state { struct cros_ec_device *ec; struct mutex cmd_lock;
/* List of extended channel specification for all sensors. */ externconststruct iio_chan_spec_ext_info cros_ec_sensors_ext_info[]; externconststruct iio_chan_spec_ext_info cros_ec_sensors_limited_info[];
#endif/* __CROS_EC_SENSORS_CORE_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.21 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.