STRUCT ST_LSM6DSX_EXT_DEV_SETTINGS(9)
π struct st_lsm6dsx_ext_dev_settings(9) π
okay so bestie, welcome to the Kernel API Manual entry for struct st_lsm6dsx_ext_dev_settings β yes the header abbreviates it as struct st_ls...dev_settings(9) but we're gonna say the whole thing, periodt β¨
πΈ NAME πΈ
struct st_lsm6dsx_ext_dev_settings β the i2c controller slave settings, literally the little config bundle that tells the driver how to talk to an external sensor hanging off the hub. no cap π«Ά
π SYNOPSIS π
struct st_lsm6dsx_ext_dev_settings {
u8 i2c_addr[2];
struct {
u8 addr;
u8 val;
} wai;
enum st_lsm6dsx_ext_sensor_id id;
struct st_lsm6dsx_odr_table_entry odr_table;
struct st_lsm6dsx_fs_table_entry fs_table;
struct st_lsm6dsx_reg temp_comp;
struct {
struct st_lsm6dsx_reg reg;
u8 off_val;
u8 on_val;
} pwr_table;
struct st_lsm6dsx_reg off_canc;
struct st_lsm6dsx_reg bdu;
struct {
u8 addr;
u8 len;
} out;
};
copy that exactly, don't be out here renaming fields, i'm watching π
π¦ Members π¦
i2c_addrβ the I2c slave address list. that's it, that's the vibe πwaiβ Wai address info. who is this sensor? this struct is how we find out πidβ the external sensor id, so we know which one we're dealing with.odr_tableβ Output data rate of the sensor [Hz]. yes, hertz, we measure in hertz here βfs_tableβ the Configured sensor sensitivity table depending on full scale. scale goes brrr πtemp_compβ Temperature compensation register info (addr + mask). keep it chill π§pwr_tableβ Power on register info (addr + mask). main character energy fr fr π₯off_cancβ Offset cancellation register info (addr + mask).bduβ Block data update register info (addr + mask).outβ Output register info. the moment of truth π
ngl all those "(addr + mask)" ones are literally the same shape β register address plus its mask. iconic consistency, we love to see it π
β¨ SEE ALSO β¨
the Kernel file ./drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h plus her besties, all of them, no skips:
struct st_lsm6dsx_fifo_ops(9)struct st_lsm6dsx_hw_ts_settings(9)struct st_lsm6dsx_shub_settings(9)struct st_lsm6dsx_settings(9)struct st_lsm6dsx_sensor(9)struct st_lsm6dsx_hw(9)
go read them, iykyk π
aaaaand that's the page!! π sign-off time: this one lives at ./drivers/iio/imu/st_lsm6dsx and it's dated October 2026 β struct st_ls...dev_settings(9), slay, bye bestie ππ¦
π¦ 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