/** * struct kx022a_chip_info - Kionix accelerometer chip specific information * * @name: name of the device * @regmap_config: pointer to register map configuration * @scale_table: An array of tables of scaling factors for * a supported acceleration measurement range. * Each table containing a single scaling * factor consisting of two integers. The first * value in a table is the integer part, and * the second value is the fractional part as * parts per billion. * @scale_table_size: Amount of values in tables. * @channels: pointer to iio_chan_spec array * @num_channels: number of iio_chan_spec channels * @fifo_length: number of 16-bit samples in a full buffer * @buf_smp_lvl_mask: buffer sample level mask * @who: WHO_AM_I register * @id: WHO_AM_I register value * @cntl: control register 1 * @cntl2: control register 2 * @odcntl: output data control register * @buf_cntl1: buffer control register 1 * @buf_cntl2: buffer control register 2 * @buf_clear: buffer clear register * @buf_status1: buffer status register 1 * @buf_read: buffer read register * @inc1: interrupt control register 1 * @inc4: interrupt control register 4 * @inc5: interrupt control register 5 * @inc6: interrupt control register 6 * @xout_l: x-axis output least significant byte * @get_fifo_bytes_available: function pointer to get amount of acceleration * data bytes currently stored in the sensor's FIFO * buffer
*/ struct kx022a_chip_info { constchar *name; conststruct regmap_config *regmap_config; constint (*scale_table)[2]; constint scale_table_size; conststruct iio_chan_spec *channels; unsignedint num_channels; unsignedint fifo_length;
u16 buf_smp_lvl_mask;
u8 who;
u8 id;
u8 cntl;
u8 cntl2;
u8 odcntl;
u8 buf_cntl1;
u8 buf_cntl2;
u8 buf_clear;
u8 buf_status1;
u8 buf_read;
u8 inc1;
u8 inc4;
u8 inc5;
u8 inc6;
u8 xout_l; int (*get_fifo_bytes_available)(struct kx022a_data *);
};
int kx022a_probe_internal(struct device *dev, conststruct kx022a_chip_info *chip_info);
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.