adxrs450_spi_write_reg_16(9)
π« 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 isreg_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 π
- Kernel file
./drivers/iio/gyro/adxrs450.c struct adxrs450_state(9)adxrs450_spi_read_reg_16(9)adxrs450_spi_sensor_data(9)adxrs450_spi_initial(9)
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 forreg_addressβ the second register is literallyreg_address + 1and 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
- 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