mma9551_write_config_words(9)
π mma9551_write_config_words(9) π
okay so bestie, welcome to the Kernel API Manual entry for mma9551_write_config_words β yes that's a whole mouthful, yes it's giving "my function name is a sentence," but she's iconic and we love her π«Ά
β¨ NAME β¨
mma9551_write_config_words β write multiple config words π
Like, plural. Words. Multiple of them. We're not doing the sad little one-word thing today, we're doing the whole array at once, no cap.
π¦ SYNOPSIS π¦
int mma9551_write_config_words (struct i2c_client *client , u8 app_id ,
u16 reg , u8 len , u16 *buf );
look at her. returning an int, taking five args, absolutely main character energy π
π ARGUMENTS π
clientβ the I2C client. your device. your baby. πapp_idβ the Application ID, iykyk π§regβ the Application register. where the party starts.lenβ length of the array to write, and yes bestie it's counted in words (not bytes, don't embarrass yourself π)bufβ the array of words to write. the actual payload. the moment. π₯
πΈ DESCRIPTION πΈ
So what she does is: write multiple configuration registers, and these are word-sized registers specifically. plural. word-sized. slay. β¨
β οΈ LOCKING NOTE, and this one is serious bestie, listen to me: this function must be called with the device lock held. Locking is not handled inside the function β she will not save you, she will not check, she's just gonna do the write. Callers should ensure they serialize access to the HW themselves. no cap, this is on you π
π RETURN π
0on success π- a negative value on failure π
that's it. that's the whole return situation. negative = bad vibes.
π SEE ALSO π
the whole friend group, fr fr:
- Kernel file
./drivers/iio/accel/mma9551_core.c 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_read_status_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)
and that's the page!! ok bye, go hold that lock first, mwah π
signed off from ./drivers/iio/accel, dated October 2026 β literally future vibes, we stay ahead of the timeline βπ
π¦ 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