STRUCT INV_MPU6050_REG_MAP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is the Kernel API Manual page for struct inv_mpu6050_reg_map(9), and it's literally about the notable registers. Bestie, it's a map. Of registers. The whole vibe is "which register does the thing," and we love that for us. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

the struct is giving exactly this shape, no cap:

struct inv_mpu6050_reg_map {
    u8 sample_rate_div;
    u8 lpf;
    u8 accel_lpf;
    u8 user_ctrl;
    u8 fifo_en;
    u8 gyro_config;
    u8 accl_config;
    u8 fifo_count_h;
    u8 fifo_r_w;
    u8 raw_gyro;
    u8 raw_accl;
    u8 temperature;
    u8 int_enable;
    u8 int_status;
    u8 pwr_mgmt_1;
    u8 pwr_mgmt_2;
    u8 int_pin_cfg;
    u8 accl_offset;
    u8 gyro_offset;
    u8 i2c_if;
};

🌸 Members 🌸

  • sample_rate_div β€” the divider applied to gyro output rate. tiny math, big slay. ✨
  • lpf β€” configures the internal low pass filter.
  • accel_lpf β€” configures the accelerometer low pass filter.
  • user_ctrl β€” enables/resets the FIFO.
  • fifo_en β€” determines which data will appear in FIFO.
  • gyro_config β€” the gyro config register, periodt.
  • accl_config β€” the accel config register.
  • fifo_count_h β€” the upper byte of FIFO count.
  • fifo_r_w β€” the FIFO register.
  • raw_gyro β€” the address of the first gyro register.
  • raw_accl β€” the address of the first accel register.
  • temperature β€” the temperature register.
  • int_enable β€” the interrupt enable register.
  • int_status β€” the interrupt status register.
  • pwr_mgmt_1 β€” controls the chip's power state and clock source.
  • pwr_mgmt_2 β€” controls power state of individual sensors.
  • int_pin_cfg β€” controls interrupt pin configuration. the original member list tucks it right after pwr_mgmt_2 as int_pin_cfg; β€” semicolon included, bestie 🫢
  • accl_offset β€” controls the accelerometer calibration offset.
  • gyro_offset β€” controls the gyroscope calibration offset.
  • i2c_if β€” controls the i2c interface.

πŸ¦‹ SEE ALSO πŸ¦‹

go look at these too, iykyk:

  • Kernel file ./drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h struct inv_mpu6050_chip_config(9), struct inv_mpu6050_hw(9).

okay bye bestie! this page came from ./drivers/iio/imu/inv_mpu6050 and is dated October 2026 β€” struct inv_mpu6050_reg_map(9) signing off. πŸ’–βœ¨

πŸ“¦ where this page comes from