STRUCT ST_LSM6DSX_SENSOR(9)
β¨ 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 ofstruct 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 findsettings,slv_odr, andaddr, 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
- 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