mma9551_read_status_words(9)
π mma9551_read_status_words(9) β like, the Kernel API Manual era π
okay bestie so this is a page from the Kernel API Manual and the star of the show is mma9551_read_status_words β she reads multiple status words at once, no cap β¨
πΈ NAME πΈ
mma9551_read_status_words β read multiple status words π
π¦ SYNOPSIS π¦
int mma9551_read_status_words (struct i2c_client *client , u8 app_id ,
u16 reg , u8 len , u16 *buf );
that's the whole signature, copy it exactly, do not come for me about the spacing π«Ά
β¨ ARGUMENTS β¨
clientβ the I2C client, your little connection to the device πapp_idβ the Application IDregβ the Application registerlenβ the length of the array to read, and it's counted in words (important!! not bytes!!) πbufβ the array of words you're reading into
π DESCRIPTION π
She reads multiple status registers β and we're talking word-sized registers here, not the little byte ones. main character energy fr fr π
β οΈ Locking note, bestie, this is the serious part: this function must be called with the device lock held. Locking is not handled inside the function. Callers should ensure they serialize access to the HW. like, that's on you, not on her π
π RETURN π
0 on success, negative value on failure. that's it, that's the vibe check β¨
π§ SEE ALSO π§
- Kernel file
./drivers/iio/accel/mma9551_core.cβ the source, go look at her π mma9551_read_config_byte(9)mma9551_write_config_byte(9)mma9551_read_status_byte(9)mma9551_read_config_word(9)mma9551_write_config_word(9)mma9551_read_status_word(9)mma9551_read_config_words(9)mma9551_write_config_words(9)mma9551_update_config_bits(9)mma9551_gpio_config(9)mma9551_read_version(9)mma9551_set_device_state(9)mma9551_set_power_state(9)mma9551_sleep(9)mma9551_read_accel_chan(9)mma9551_read_accel_scale(9)mma9551_app_reset(9)
the whole friend group, honestly β collect them all π«Ά
and that's the page, bestie!! this one's brought to you by ./drivers/iio/accel, dated October 2026 β iconic, no notes, periodt π
π
π¦ 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