zpa2326_config_oneshot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… zpa2326_config_oneshot(9) β€” Kernel API Manual ✨

okay bestie, buckle up, because we're diving into zpa2326_config_oneshot(9) from the Kernel API Manual and honestly? it's giving "tiny function, big main character energy" 🫢


🌸 NAME 🌸

zpa2326_config_oneshot β€” set your device up for one shot / on demand mode, no cap πŸ’–


✨ SYNOPSIS ✨

int zpa2326_config_oneshot (const struct iio_dev *indio_dev , int irq );

like literally that's the whole signature, she's compact and she knows it πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • indio_dev β€” the IIO device that's associated with the sampling hardware. your whole vibe check happens through her πŸ’œ
  • irq β€” an optional interrupt line that the hardware uses to yell "new data samples are ready!!" πŸ”₯ negative or zero values mean no interrupts are available, which lowkey means polling is required. iykyk 😭

πŸ’€ DESCRIPTION πŸ’€

so the Output Data Rate gets configured for the highest possible rate, which means conversion time and power consumption are reduced to a minimum. literally slay, efficiency icon behavior πŸ‘‘

heads up bestie: the hardware internal averaging machinery (which is not implemented in this driver) is not applicable in this mode. so don't come looking for it, she's not here πŸ™ˆ

also super important β€” the device must have been previously enabled before calling zpa2326_config_oneshot. like, you can't just roll up uninvited, the device needs to already be on fr fr 🌈


⭐ RETURN ⭐

Zero when successful πŸ’– a negative error code otherwise πŸ’€ that's it, that's the whole mood.


🧚 SEE ALSO 🧚

the kernel file ./drivers/iio/pressure/zpa2326.c and honestly the whole friend group:


and that's the tea, bestie πŸ“ this page lives at ./drivers/iio/pressure, dated October 2026, and it's officially zpa2326_config_oneshot(9) β€” go forth and configure those oneshots, you absolute icon πŸ’…βœ¨

πŸ“¦ where this page comes from