mma9551_write_config_word(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« 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 to
  • reg β€” Application register, the exact spot we're poking
  • val β€” 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:


🌈 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