adis_write_reg_8(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… adis_write_reg_8 (9) β€” from the Kernel API Manual, bestie ✨

okay so picture this: you're deep in the kernel, you've got an adis device staring at you, and you just need to yeet one single byte into one single register. that's it. that's the whole vibe. this function is the "just one chip, just one byte" icon that we all needed πŸŽ€


✨ NAME ✨

adis_write_reg_8 β€” writes a single byte to a register. one byte. no cap. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

int adis_write_reg_8 (struct adis *adis , unsigned int reg , u8 val );

🌸 ARGUMENTS 🌸

  • adis β€” the adis device itself, your main character 🫢
  • reg β€” the address of the register you're writing to (where the byte is gonna live, iykyk)
  • val β€” the value to write. literally the value. that's it. that's the byte πŸ“

⭐ RETURN ⭐

0 on success, and a negative error code otherwise 😭 (so like, check it. pls check it.)


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/linux/iio/imu/adis.h β€” and the whole friend group:


ngl bestie, 8 in the name is not a drill β€” this one writes 8 bits and nothing more. if you wanted 16 or 32, the squad above has you covered πŸ’€

and that's the page!! 🧚 from ./include/linux/iio/imu, dated October 2026 β€” stay slay, stay byte-sized, and go write that register πŸ’œπŸŒˆ

πŸ“¦ where this page comes from