ad7380_regval_to_osr(9)
π ad7380_regval_to_osr π
okay so welcome to the Kernel API Manual bestie, today we're looking at ad7380_regval_to_osr β literally the little function that converts an OSR register value into a ratio β¨ that's the whole vibe, that's the whole job π«Ά
β¨ NAME β¨
ad7380_regval_to_osr β convert OSR register value to ratio π no cap, that's it, that's the mission
πΈ SYNOPSIS πΈ
int ad7380_regval_to_osr (unsigned int regval );
likeβ¦ that's the whole signature, she's short and she's iconic π
π¦ ARGUMENTS π¦
regvalβ the register value you want to check π this is the thing you're handing over, bestie, so she can do her little lookup
β RETURN β
she gives you back the ratio corresponding to the OSR register π that's the good path, that's the slay path
but hmm π if regval is not in bound, she returns 1 β which is oversampling disabled, so basically the "guess we're not doing that today" answer π not an error, not a crash, just 1, periodt
π§ SEE ALSO π§
- the Kernel file
./drivers/iio/adc/ad7380.cβ go read the source, iykyk π ad7380_update_xfers(9)π₯ad7380_osr_to_regval(9)π₯ (yeah she's the reverse-direction bestie, they come as a set π)
lowkey reminder that the ratio is the return, and 1 means oversampling is disabled β don't @ me, that's just what the manpage says π
and that's the page!! mwah π this gem lives over in ./drivers/iio/adc and the manual itself is dated October 2026, ad7380_regval_to_osr(9), Kernel API Manual β go off, king ππ¦πΈ
π¦ 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