drivers/iio/dac/ad5624r.h

Source file repositories/reference/linux-study-clean/drivers/iio/dac/ad5624r.h

File Facts

System
Linux kernel
Corpus path
drivers/iio/dac/ad5624r.h
Extension
.h
Size
1847 bytes
Lines
76
Domain
Driver Families
Bucket
drivers/iio
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

struct ad5624r_chip_info {
	const struct iio_chan_spec	*channels;
	u16				int_vref_mv;
};

/**
 * struct ad5624r_state - driver instance specific data
 * @us:			spi_device
 * @chip_info:		chip model specific constants, available modes etc
 * @vref_mv:		actual reference voltage used
 * @pwr_down_mask	power down mask
 * @pwr_down_mode	current power down mode
 */

struct ad5624r_state {
	struct spi_device		*us;
	const struct ad5624r_chip_info	*chip_info;
	unsigned short			vref_mv;
	unsigned			pwr_down_mask;
	unsigned			pwr_down_mode;
};

/**
 * ad5624r_supported_device_ids:
 * The AD5624/44/64 parts are available in different
 * fixed internal reference voltage options.
 */

enum ad5624r_supported_device_ids {
	ID_AD5624R3,
	ID_AD5644R3,
	ID_AD5664R3,
	ID_AD5624R5,
	ID_AD5644R5,
	ID_AD5664R5,
};

#endif /* SPI_AD5624R_H_ */

Annotation

Implementation Notes