ads1018_single_shot(9)
π 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 β
0on success π- negative
errnoon error π
π§ SEE ALSO π§
- Kernel file
./drivers/iio/adc/ti-ads1018.c ads1018_calc_delay(9)ads1018_spi_read_exclusive(9)
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
- 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