drivers/iio/gyro/mpu3050.h
Source file repositories/reference/linux-study-clean/drivers/iio/gyro/mpu3050.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/iio/gyro/mpu3050.h- Extension
.h- Size
- 2806 bytes
- Lines
- 98
- 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.
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/iio/iio.hlinux/mutex.hlinux/regmap.hlinux/regulator/consumer.hlinux/i2c.h
Detected Declarations
struct mpu3050enum mpu3050_fullscaleenum mpu3050_lpfenum mpu3050_axis
Annotated Snippet
struct mpu3050 {
struct device *dev;
struct iio_mount_matrix orientation;
struct regmap *map;
struct mutex lock;
int irq;
struct regulator_bulk_data regs[2];
enum mpu3050_fullscale fullscale;
enum mpu3050_lpf lpf;
u8 divisor;
s16 calibration[3];
struct iio_trigger *trig;
bool hw_irq_trigger;
bool irq_actl;
bool irq_latch;
bool irq_opendrain;
bool pending_fifo_footer;
s64 hw_timestamp;
struct i2c_mux_core *i2cmux;
};
/* Probe called from different transports */
int mpu3050_common_probe(struct device *dev,
struct regmap *map,
int irq,
const char *name);
void mpu3050_common_remove(struct device *dev);
/* PM ops */
extern const struct dev_pm_ops mpu3050_dev_pm_ops;
Annotation
- Immediate include surface: `linux/iio/iio.h`, `linux/mutex.h`, `linux/regmap.h`, `linux/regulator/consumer.h`, `linux/i2c.h`.
- Detected declarations: `struct mpu3050`, `enum mpu3050_fullscale`, `enum mpu3050_lpf`, `enum mpu3050_axis`.
- Atlas domain: Driver Families / drivers/iio.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.