ads1018_spi_read_exclusive(9)
π ads1018_spi_read_exclusive(9) β Kernel API Manual β¨
okay so bestie, let me put you onto ads1018_spi_read_exclusive β it's giving "reads a conversion value from the device" and honestly? iconic. π
πΈ NAME πΈ
ads1018_spi_read_exclusive β literally just reads a conversion value from the device, no cap π«Ά
β¨ SYNOPSIS β¨
int ads1018_spi_read_exclusive (struct ads1018 *ads1018 , __be16 *cnv ,
bool hold_cs );
π¦ ARGUMENTS π¦
ads1018β the device data, your main character fr πcnvβ the ADC conversion value (it's optional, so no pressure bestie) β¨hold_csβ keeps the CS line asserted after the SPI transfer, iykyk π₯
π DESCRIPTION π
So what it does is read the most recent ADC conversion value β and the way it does it is without updating the device's configuration. Like, it just looks, it doesn't touch. Respect. πβ¨
π§ CONTEXT π§
Expects SPI bus exclusive use. Periodt. You gotta have the bus to yourself for this one, no sharing, no vibes-crashing. π
β RETURN β
0on success β slay π- negative errno on error β not slay, but that's the deal π
π SEE ALSO π
Kernel file ./drivers/iio/adc/ti-ads1018.c, plus ads1018_calc_delay(9) and ads1018_single_shot(9) β go read those too bestie, they're lowkey part of the lore π¦
ngl, the exclusive in the name is not a suggestion. Share that SPI bus and it's giving undefined chaos. π
okay that's the whole page! π this beauty lives in ./drivers/iio/adc, dated October 2026, and it's called ads1018_spi_read_exclusive(9) β go off, bestie πβ¨πΈ
π¦ 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