adxrs450_spi_write_reg_16(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« adxrs450_spi_write_reg_16 β€” a kernel API manual, but make it cute

okay so bestie, welcome to the adxrs450_spi_write_reg_16 page from the Kernel API Manual πŸ’… this one is short and sweet and it does exactly one thing, but it does it iconically.


✨ NAME ✨

adxrs450_spi_write_reg_16 β€” write 2 bytes data to a register pair πŸŽ€

like, literally two whole bytes. a little pair of them. going into a register. slay.


🌸 SYNOPSIS 🌸

int adxrs450_spi_write_reg_16 (struct iio_dev *indio_dev , u8
reg_address , u16 val );

that's the whole vibe check right there πŸ‘‘ it returns an int, takes an indio_dev, a u8 address, and a u16 value.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • indio_dev β€” device associated with child of actual actual iio_dev 🫢 yes, the manual really does say "actual actual", we are not fixing it, it's part of the lore now. this is your device handle.
  • reg_address β€” the address of the lower of the two registers, which should be an even address, the second register's address is reg_address + 1. πŸŽ€ so like… it's a package deal, you give the low one and the high one comes free with the +1. no cap.
  • val β€” value to be written. πŸ’– that's it. that's the value. it gets written. periodt.

🌈 SEE ALSO 🌈

go read the read version after this one, it's giving sibling energy πŸ”₯


ngl this page is tiny but every detail matters, so keep the even-address thing in mind for reg_address β€” the second register is literally reg_address + 1 and that's not a suggestion, that's just how it is πŸ’€

and that's the whole page bestie 🧚 this little beauty lives in ./drivers/iio/gyro and the manual is dated October 2026 β€” go forth and write your two bytes πŸ’œβœ¨πŸ“

πŸ“¦ where this page comes from