zpa2326_sample_oneshot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– zpa2326_sample_oneshot(9) πŸ’–

okay bestie, welcome to the zpa2326_sample_oneshot(9) page from the Kernel API Manual β€” yes we are literally in kernel API territory and it is giving very niche-but-iconic πŸ’…


✨ NAME ✨

zpa2326_sample_oneshot β€” perform a complete one shot sampling cycle. that's the whole vibe: one shot, one sample, no cap 🎯


πŸ¦‹ SYNOPSIS πŸ¦‹

int zpa2326_sample_oneshot (struct iio_dev *indio_dev , enum
       iio_chan_type type , int *value );

πŸŽ€ ARGUMENTS πŸŽ€

  • indio_dev β€” the IIO device associated with the sampling hardware. this is your hardware's main character handle 🫢
  • type β€” type of measurement / channel to fetch from. aka which channel we're grabbing a sample from πŸ’«
  • value β€” sample output. this is where the sampled value lands, bestie πŸ“₯

🌸 RETURN 🌸

zero when successful, a negative error code otherwise. so: 0 = slay βœ…, negative = not slay 😭


🌈 SEE ALSO 🌈

kernel file ./drivers/iio/pressure/zpa2326.c, 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_config_oneshot(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_trigger_handler(9), zpa2326_preenable_buffer(9), zpa2326_postenable_buffer(9), zpa2326_set_trigger_state(9), zpa2326_init_managed_trigger(9)


that's the whole page, bestie β€” short, sweet, and very one-shot-coded πŸ’œ this came from ./drivers/iio/pressure and the date on it is October 2026, so yeah, future vibes fr fr πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from