ads1018_calc_delay(9)
π ads1018_calc_delay(9) β the Kernel API Manual, bestie edition π
okay so this is a page from the Kernel API Manual and it's all about ads1018_calc_delay β literally the little function that figures out how long you gotta wait for a single-shot reading. she's small, she's useful, she's iconic. let's get into it β¨
πΈ NAME πΈ
ads1018_calc_delay β calculates a suitable delay for a single-shot reading</p> π«Ά
β¨ SYNOPSIS β¨
u32 ads1018_calc_delay (unsigned int hz );
like, that's the whole vibe. one arg, one u32 coming back atcha π
π¦ ARGUMENTS π¦
hzβ the sampling frequency, bestie. that's it. that's the input π
π DESCRIPTION π
so basically, given a sampling frequency, this function calculates an appropriate delay for a single shot reading. no cap, that's the whole job. you hand her a frequency, she hands you back the delay you should use. queen behavior honestly π
β RETURN β
she returns the delay in microseconds β and lowkey the most important part: it's always greater than 0. every single time. never zero. fr fr πβ¨
π SEE ALSO π
- the kernel file
./drivers/iio/adc/ti-ads1018.cβ go read the source, iykyk π ads1018_spi_read_exclusive(9)π₯ads1018_single_shot(9)π«
okay that's the whole page, bestie, you ate that ππ
this lil number lives over in ./drivers/iio/adc, and it was dated October 2026 β so like, mark your calendar and stan πβ¨π«Ά
π¦ 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