zpa2326_config_oneshot(9)
π 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:
- ZPA2326 theory of operations(9)
struct zpa2326_frequency(9)struct zpa2326_private(9)zpa2326_enable_device(9)zpa2326_sleep(9)zpa2326_reset_device(9)zpa2326_start_oneshot(9)zpa2326_power_on(9)zpa2326_power_off(9)zpa2326_clear_fifo(9)zpa2326_dequeue_pressure(9)zpa2326_fill_sample_buffer(9)zpa2326_resume(9)zpa2326_suspend(9)zpa2326_handle_irq(9)zpa2326_handle_threaded_irq(9)zpa2326_wait_oneshot_completion(9)zpa2326_poll_oneshot_completion(9)zpa2326_fetch_raw_sample(9)zpa2326_sample_oneshot(9)zpa2326_trigger_handler(9)zpa2326_preenable_buffer(9)zpa2326_postenable_buffer(9)zpa2326_set_trigger_state(9)zpa2326_init_managed_trigger(9)
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
- 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