STRUCT ST_SENSOR_DATA_READY_IRQ(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 the struct { 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