ads1018_spi_read_exclusive(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

  • 0 on 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