STRUCT INV_MPU6050_REG_MAP(9)
β¨ 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 afterpwr_mgmt_2asint_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.hstructinv_mpu6050_chip_config(9), structinv_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
- 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