ads1018_single_shot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ads1018_single_shot πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” today's main character is ads1018_single_shot, and yes she is that girl: she does one reading, she does it cute, and she goes home. no looping, no drama, one-shot energy only 🎯


🌸 NAME 🌸

ads1018_single_shot β€” literally performs a one-shot reading sequence πŸŽ€


✨ SYNOPSIS ✨

int ads1018_single_shot (struct ads1018 *ads1018 , struct iio_chan_spec
const *chan , u16 *cnv );

three args, one int back, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ads1018 β€” Device data πŸ’œ (the whole vibe of the device lives here)
  • chan β€” Channel specification 🌈 (which channel we're being nosy about)
  • cnv β€” Conversion value πŸ’« (where the answer goes, bestie)

πŸ”₯ DESCRIPTION πŸ”₯

so here's the whole plot: it writes a new configuration, waits an appropriate delay (yes, the appropriate one, she's not messy), and then reads the most recent conversion. that's it. that's the function. iconic behaviour, zero notes πŸ’…βœ¨


πŸ‘‘ CONTEXT πŸ‘‘

expects iio_device_claim_direct is held. so like… hold it. fr fr πŸ™ˆ

⭐ RETURN ⭐

  • 0 on success πŸŽ‰
  • negative errno on error 😭

🧚 SEE ALSO 🧚


and that's the page, bestie πŸ“πŸ’– this lil gem lives over in ./drivers/iio/adc β€” version vibes: October 2026 β€” go forth and read exactly one conversion, periodt πŸŒŸπŸ‘‘

πŸ“¦ where this page comes from