adis_read_reg_16(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ adis_read_reg_16(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's a lil function called adis_read_reg_16 β€” and yes, the name is literally what it does: it reads 2 bytes from a 16-bit register. no cap, that's the whole vibe. πŸŽ€


🌸 NAME 🌸

adis_read_reg_16 β€” read 2 bytes from a 16-bit register πŸ’…


✨ SYNOPSIS ✨

int adis_read_reg_16 (struct adis *adis , unsigned int reg , u16 *val );

like, that's the whole signature, and yes you're gonna need all three of those args 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adis β€” the adis device, aka the main character here πŸ‘‘ this is the struct you're working with.
  • reg β€” the address of the lower of the two registers. yes, the lower one β€” it's doing a two-register situation, iykyk. πŸ“
  • val β€” where the value read back from the device lands. it gets written into your u16 * pointer, so it's giving output parameter energy ✨

⭐ RETURN ⭐

0 on success πŸŽ‰ β€” and if it's not feeling it, a negative error code instead 😭 that's it, that's the deal.


🌈 SEE ALSO 🌈

Kernel file ./include/linux/iio/imu/adis.h πŸ“ β€” and honestly the whole adis friend group is here, so lemme introduce everyone:

ngl the double-underscore ones are the lowkey internal versions and the no-underscore ones are the public-facing slay versions β€” go read their pages if you wanna know the deets πŸ’€ (this page only promises what's above, fr fr)

and that's the page, bestie πŸ§šπŸ’œ this lil moment was brought to you by ./include/linux/iio/imu, dated October 2026, living under the adis_read_reg_16(9) header β€” periodt. πŸ’…πŸŽ€

πŸ“¦ where this page comes from