STRUCT INV_ICM42607_STATE(9)
π
struct inv_icm42607_state β NAME π
okay so bestie, welcome to the Kernel API Manual β¨ β this page is literally all about struct inv_icm42607_state, aka the driver state variables π. that's it. that's the whole name section. she's the big ol' bag of everything the inv_icm42607 driver needs to keep track of. no cap. π«Ά
πΈ SYNOPSIS πΈ
here's the struct in all her main-character glory, copy-pasted exactly so you don't get jumped by a compiler later:
struct inv_icm42607_state {
const struct inv_icm42607_hw *hw;
struct mutex lock;
struct regmap *map;
struct iio_dev *indio_accel;
struct iio_dev *indio_gyro;
struct regulator *vddio_supply;
bool vddio_en;
struct inv_icm42607_conf conf;
struct iio_mount_matrix orientation;
};
β¨ Members β¨
bestie these are the fields, and yes we're going through every single one π:
hwβ hardware specific data. that's her lore. the chip-specific deets live here π§lockβ astruct mutexthat serializes multiple register accesses. like a bouncer for your registers so nobody's shoving past anybody πmapβ theregmappointer. iconic. π₯indio_accelβ the accelerometer IIO device βindio_gyroβ the gyroscope IIO device. she spins, she's giving main character energy πvddio_supplyβ the I/O voltage regulator for the chip πvddio_enβ I/O voltage status for runtime PM πconfβ the chip sensors configurations πorientationβ the sensor chip orientation relative to the main hardware. she knows where she is in space, unlike me π
π¦ SEE ALSO π¦
- the Kernel file
./drivers/iio/imu/inv_icm42607/inv_icm42607.hπ struct inv_icm42607_sensor_state(9)β her sibling, go say hi π
ok that's the whole page fr fr. go forth and read registers (safely, with the mutex, iykyk) π
mwah π this page came to you from ./drivers/iio/imu/inv_icm42607, dated October 2026 β struct inv_icm42607_state(9), slayed and out πβ¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms