STRUCT ST_SENSORS_PLATFORM_DATA(9)
π NAME π
struct st_sensors_platform_data β literally the platform data for the ST sensors, bestie, that's the whole vibe β¨
So this is a page from the Kernel API Manual (iykyk), and it's all about one lil struct that carries the setup info for ST sensors. Not me being obsessed with platform data at this hour π
β¨ SYNOPSIS β¨
struct st_sensors_platform_data {
u8 drdy_int_pin;
bool open_drain;
bool spi_3wire;
bool pullups;
bool wakeup_source;
};
That's the whole struct, no cap. Five fields, and every single one of them matters π
π Members π
drdy_int_pinβ redirects DRDY onto pin 1 (1) or pin 2 (2). Available only for accelerometer, magnetometer and pressure sensors, okay? And heads up: accelerometer DRDY onLSM330is available only on pin 1 (go check the datasheet, babes π). Magnetometer DRDY is supported only onLSM9DS0andLSM303D. So don't come for me if your other sensor doesn't do the thing πopen_drainβ sets the interrupt line to be open drain if possible. Lowkey yes please β‘spi_3wireβ enablesspi-3wiremode. Slay, fewer wires π¦pullupsβ enable/disable i2c controller pullup resistors. Tiny resistors, big main character energy π₯wakeup_sourceβ enable/disable the device as a wakeup generator. It literally wakes things up. That's the job. π
π SEE ALSO π
Kernel file ./include/linux/platform_data/st_sensors_pdata.h β go read it, it's giving source of truth π«Ά
Fr fr, everything above is straight from the page β I'm just here making it cute π
Okay that's the whole thing, bestie! This was struct st_s...latform_data(9) from the Kernel API Manual, living over in ./include/linux/platform_data, dated October 2026 π Mark your calendars, 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