STRUCT ST_LSM6DSX_SENSOR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct st_lsm6dsx_sensor(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’– this is the page for struct st_lsm6dsx_sensor, aka the ST IMU sensor instance. no cap, it’s a whole little vibe.


🌸 NAME 🌸

struct st_lsm6dsx_sensor β€” ST IMU sensor instance 🫢


πŸŽ€ SYNOPSIS πŸŽ€

here’s the struct in all its exact, character-for-character glory, bestie ✨ don’t let the nesting scare you:

       struct st_lsm6dsx_sensor {
           char name[32];
           enum st_lsm6dsx_sensor_id id;
           struct st_lsm6dsx_hw *hw;
           u32 gain;
           u32 odr;
           u32 hwfifo_odr_mHz;
           u16 samples_to_discard;
           u16 watermark;
           u8 decimator;
           u8 sip;
           s64 ts_ref;
           struct {
             const struct st_lsm6dsx_ext_dev_settings *settings;
             u32 slv_odr;
             u8 addr;
           } ext_info;
        };

πŸ¦‹ Members πŸ¦‹

okay so every member is doing its own main-character thing πŸ‘‘ here’s the rundown:

  • name β€” sensor name πŸ’…
  • id β€” sensor identifier πŸŽ€
  • hw β€” pointer to instance of struct st_lsm6dsx_hw ✨
  • gain β€” configured sensor sensitivity 🌸
  • odr β€” output data rate of the sensor [mHz] ⭐
  • hwfifo_odr_mHz β€” batch data rate for hardware FIFO [mHz] πŸ”₯
  • samples_to_discard β€” number of samples to discard for filters settling time 🫢
  • watermark β€” sensor watermark level πŸ’§
  • decimator β€” sensor decimation factor 🧚
  • sip β€” number of samples in a given pattern 🌈
  • ts_ref β€” sensor timestamp reference for hw one πŸ’«
  • ext_info β€” sensor settings if it is connected to i2c controller; inside this nested struct you’ll find settings, slv_odr, and addr, exactly as shown above πŸ’œ

πŸ’€ SEE ALSO πŸ’€

go peek at these too, iykyk 😌:

  • Kernel file ./drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h
  • struct st_lsm6dsx_fifo_ops(9)
  • struct st_lsm6dsx_hw_ts_settings(9)
  • struct st_lsm6dsx_shub_settings(9)
  • struct st_lsm6dsx_ext_dev_settings(9)
  • struct st_lsm6dsx_settings(9)
  • struct st_lsm6dsx_hw(9)

okay that’s the whole page, bestie πŸŽ€ this iconic lil entry comes from ./drivers/iio/imu/st_lsm6dsx, dated October 2026, and it’s serving Kernel API Manual realness for struct st_lsm6dsx_sensor(9). periodt πŸ’…βœ¨

πŸ“¦ where this page comes from