mma9551_write_config_word(9)
π« NAME π«
mma9551_write_config_word β ok so bestie, this one writes 1 config word, that's literally the whole vibe β¨
π SYNOPSIS π
int mma9551_write_config_word (struct i2c_client *client , u8 app_id ,
u16 reg , u16 val );
π¦ ARGUMENTS π¦
clientβ the I2C client, your lil connection to the device π«Άapp_idβ Application ID, telling the platform which app we're talking toregβ Application register, the exact spot we're pokingvalβ Value to write, the payload, the main character of this whole operation π
πΈ DESCRIPTION πΈ
So the way this works: it writes one configuration word to the device using the MMA955xL command format π Commands to the MMA955xL platform are built as a write followed by one or more reads β that's just how it rolls, no cap.
β οΈ Locking note, and this one matters fr fr: this function must be called with the device lock held. Locking is not handled inside the function β it does not do that for you π Callers should make sure they serialize access to the HW themselves. Like, do your own homework on this one, bestie.
β RETURN β
0 on success, and a negative value on failure π that's it, that's the tea.
π₯ SEE ALSO π₯
Kernel file ./drivers/iio/accel/mma9551_core.c β go read it, iykyk π
The whole friend group, in order:
mma9551_read_config_byte(9)mma9551_write_config_byte(9)mma9551_read_status_byte(9)mma9551_read_config_word(9)mma9551_read_status_word(9)mma9551_read_config_words(9)mma9551_read_status_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)
π aaaand that's the page! brought to you from ./drivers/iio/accel, stamped October 2026 β mwah, love you, go hold that lock ππ
π¦ 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