max9611_read_single(9)
π NAME π
okay so bestie, this is max9611_read_single(9) from the Kernel API Manual, and her whole thing is to read a single value from the ADC interface β¨ like that's the assignment and she ate π
π¦ SYNOPSIS π¦
here's the exact signature, no cap:
int max9611_read_single (struct max9611_dev *max9611 , enum
max9611_conf_ids selector , u16 *raw_val );
π ARGUMENTS π
max9611β themax9611device, aka the main character π«Άselectorβ the index for mux and register configuration π₯raw_valβ the value returned from the ADC π
π₯ DESCRIPTION π₯
so the data registers are 16 bit long, spread between two 8 bit registers with consecutive addresses β iconic little duo fr fr π
configure the ADC mux first, then read the register at address "reg_addr" β
the smbus_read_word routine asks for 16 bits, and the ADC is kind enough to return values from "reg_addr" and "reg_addr + 1" consecutively ππ«Ά
and the data are transmitted with big-endian ordering: MSB arrives first π periodt.
π SEE ALSO π
- Kernel file
./drivers/iio/adc/max9611.cβ also peepmax9611_read_csa_voltage(9)π
okay that's the page, bestie π«Ά this cutie comes from ./drivers/iio/adc, dated October 2026 β 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