STRUCT ST_SENSOR_DATA_READY_IRQ(9)
πΈ struct st_sensor_data_ready_irq(9) πΈ
okay so bestie, this one comes from the Kernel API Manual and it's literally the blueprint for the ST sensor device data-ready interrupt. Think of it as the group chat notification that says "fresh sensor data just dropped" β but in struct form. π β¨
β¨ NAME β¨
struct st_sensor_data_ready_irq β ST sensor device data-ready interrupt. That's the whole name, no cap. π«Ά
π SYNOPSIS π
bestie, here's the struct in all its exact glory β don't let the nested structs intimidate you, they're just little babies doing their jobs:
struct st_sensor_data_ready_irq {
struct st_sensor_int_drdy int1;
struct st_sensor_int_drdy int2;
u8 addr_ihl;
u8 mask_ihl;
struct {
u8 addr;
u8 mask;
} stat_drdy;
struct {
u8 en_addr;
u8 en_mask;
} ig1;
};
π Members π
int1β data-ready configuration register for the INT1 pin. It's giving INT1 main character energy. πint2β data-ready configuration register for the INT2 pin. INT2 said "me too, bestie." πaddr_ihlβ address to enable/disable active low on the INT lines. Lowkey the address that flips the active-low setting. πmask_ihlβ mask to enable/disable active low on the INT lines. The matching mask for that active-low toggle. β¨stat_drdyβ status register of DRDY (data ready) interrupt. In the struct it's this little combo:struct { u8 addr; u8 mask; }. πig1β represents the Interrupt Generator 1 of sensors. It's thestruct { u8 en_addr; u8 en_mask; }part, just doing its generator thing. π
π SEE ALSO π
Kernel file ./include/linux/iio/common/st_sensors.h β yes, go read it, iykyk. Related structs: struct st_sensor_bdu(9), struct st_sensor_das(9), struct st_sensor_int_drdy(9), struct st_sensor_settings(9), struct st_sensor_data(9). π¦
xoxo bestie, this page was brought to you by ./include/linux/iio/common and dated October 2026 β slay responsibly. πβ¨
π¦ 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