mma9551_write_config_byte(9)
β¨ mma9551_write_config_byte β the kernel API glow-up π
okay bestie so this is a page from the Kernel API Manual, and it's about one lil function that writes a single config byte. tiny function, big main character energy. let's get into it π
πΈ NAME πΈ
mma9551_write_config_byte β literally just writes 1 configuration byte. one. single. byte. and she ate π«Ά
π SYNOPSIS π
int mma9551_write_config_byte (struct i2c_client *client , u8 app_id ,
u16 reg , u8 val );
like look at her go πβ¨
π¦ ARGUMENTS π¦
clientβ the I2C client. your device bestie, basically π«Άapp_idβ the Application ID. yep, that one πregβ the Application register. the lil address you're poking at πvalβ the Value to write. the payload, the moment, the whole point ngl β¨
π DESCRIPTION π
so basically she writes one configuration byte from the device, using the MMA955xL command format. and no cap, commands to the MMA955xL platform are a whole two-step vibe: a write, followed by one or more reads. she's not a one-and-done girlie, she's a "write then read read read" girlie πΈ
π locking note, and this is important bestie, don't skip it: this function must be called with the device lock held. locking is not handled inside the function β she does not do it for you, she will not hold your hand on this. callers should ensure they serialize access to the HW. periodt. π
β RETURN β
0on success π₯³- a negative value on failure π
π SEE ALSO π
- Kernel file
./drivers/iio/accel/mma9551_core.cβ the source, go read her π mma9551_read_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_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 fr fr, they all live in ./drivers/iio/accel and honestly? iconic lineup π§π
mwah π that's the page β sourced from ./drivers/iio/accel, dated October 2026, and this whole manual-page moment was brought to you by the Kernel API Manual. go forth and hold that lock, bestie π«Άβ¨
π¦ 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