ads1018_calc_delay(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸŽ€


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