ad4695_osr_to_regval(9)
π NAME π
okay so bestie, this page is all about ad4695_osr_to_regval(9) from the Kernel API Manual β and yes, the title is literally the function name, main character energy fr fr π
β¨. Its whole job? convert ratio to OSR register value. Iconic.
β¨ SYNOPSIS β¨
int ad4695_osr_to_regval (int ratio );
π ARGUMENTS π
ratioβ theratioto check, bestie π«Ά no cap.
πΈ DESCRIPTION πΈ
So here's the vibe check: this function checks if ratio is present in the list of available ratios πβ¨. If it is, it returns the corresponding value that needs to be written to the register to select that ratio. It's giving βmatch made in register heavenβ ππ.
π«Ά RETURN π«Ά
It returns the register value (0 to 3) when there's an exact match ππ β or -EINVAL if there is not an exact match. Periodt π.
π₯ SEE ALSO π₯
- Kernel file:
./drivers/iio/adc/ad4695.c ad4695_set_single_cycle_mode(9)ad4695_enter_advanced_sequencer_mode(9)ad4695_exit_conversion_mode(9)ad4695_read_one_sample(9)
These are the linked function besties, iykyk π¦π.
that's the whole page, bestie! π source/version situation: ./drivers/iio/adc, dated October 2026, and the star of the show is ad4695_osr_to_regval(9) β catch u later, mwah πβ¨
π¦ 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