STRUCT INV_ICM45600_STATE(9)
π NAME π
struct inv_icm45600_state β the driver state variables, aka the whole vibe of this driver in one struct β¨
bestie this is from the Kernel API Manual (section 9) and it's literally the main character struct of the inv_icm45600 driver β everything the driver needs to remember lives in here π«Ά
β¨ SYNOPSIS β¨
okay so here's the whole struct, no cap, every field exactly as it is:
struct inv_icm45600_state {
struct mutex lock;
struct regmap *map;
struct regulator *vddio_supply;
struct iio_mount_matrix orientation;
struct inv_icm45600_conf conf;
struct inv_icm45600_suspended suspended;
struct iio_dev *indio_gyro;
struct iio_dev *indio_accel;
const struct inv_icm45600_chip_info *chip_info;
struct {
s64 gyro;
s64 accel;
} timestamp;
struct inv_icm45600_fifo fifo;
union {
u8 buff[2];
__le16 u16;
u8 ireg[3];
} buffer;
};
like, look at her. iconic. π
π Members π
here's the tea on every single field, let me walk you through it π
lockβ the lock that serializes multiple registers access. one at a time please, we're not animals πmapβ theregmappointer. your map to the registers, iykyk πΊοΈvddio_supplyβ the I/O voltage regulator for the chip. gotta keep her fed β‘orientationβ the sensor chip orientation relative to main hardware. which way is up fr fr π§confβ chip sensors configurations β¨suspendedβ the suspended sensors configuration π΄indio_gyroβ the gyroscope IIO device πͺοΈindio_accelβ the accelerometer IIO device πββοΈchip_infoβ chip driver data. the lore πtimestampβ interrupt timestamps β°fifoβ the FIFO management structure πbufferβ the data transfer buffer, aligned for DMA. aligned, because we have standards π
π¦ SEE ALSO π¦
- Kernel file
./drivers/iio/imu/inv_icm45600/inv_icm45600.h struct inv_icm45600_sensor_state(9)β her sister struct, go say hi πΈ
ok that's the whole page bestie, every field accounted for, nothing skipped, we ate and left no crumbs π½οΈβ¨
mwah π this page came from ./drivers/iio/imu/inv_icm45600, dated October 2026, and it's struct inv_icm45600_state(9) β stay slaying, kernel girlies ππ
π¦ 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