File Index
Files and directories
Sign in
FILE

adxl380.h

File preview with syntax highlighting.

linux-6.19.14/drivers/iio/accel/adxl380.h C
 1/* SPDX-License-Identifier: GPL-2.0+ */
 2/*
 3 * ADXL380 3-Axis Digital Accelerometer
 4 *
 5 * Copyright 2024 Analog Devices Inc.
 6 */
 7
 8#ifndef _ADXL380_H_
 9#define _ADXL380_H_
10
11struct adxl380_chip_info {
12	const char *name;
13	const int scale_tbl[3][2];
14	const int samp_freq_tbl[3];
15	const struct iio_info *info;
16	const int temp_offset;
17	const u16 chip_id;
18	const bool has_low_power;
19};
20
21extern const struct adxl380_chip_info adxl318_chip_info;
22extern const struct adxl380_chip_info adxl319_chip_info;
23extern const struct adxl380_chip_info adxl380_chip_info;
24extern const struct adxl380_chip_info adxl382_chip_info;
25
26int adxl380_probe(struct device *dev, struct regmap *regmap,
27		  const struct adxl380_chip_info *chip_info);
28bool adxl380_readable_noinc_reg(struct device *dev, unsigned int reg);
29
30#endif /* _ADXL380_H_ */
~/ Read-only file preview.