mma9551_read_config_words(9)
π mma9551_read_config_words(9) β like, the official kernel API manual bestie β¨
okay so real talk, this one's from the Kernel API Manual and it's giving "I read multiple config words and I'm not sorry about it" π
πΈ NAME πΈ
mma9551_read_config_words β read multiple config words π¦
β¨ SYNOPSIS β¨
int mma9551_read_config_words (struct i2c_client *client , u8 app_id ,
u16 reg , u8 len , u16 *buf );
π«Ά ARGUMENTS π«Ά
clientβ your I2C client, the whole reason we're here πapp_idβ the Application ID, yes it matters, don't skip it bestieregβ the Application register, the exact one you're trying to vibe withlenβ length of the array you want to read, and it's measured in words π₯bufβ the array of words that gets read into, main character energy only π
π DESCRIPTION π
so this is the one that reads multiple configuration registers β and yeah, we mean word-sized registers, not the little byte ones π
β οΈ Locking note, and this is important so listen up: this function must be called with the device lock held. Locking is not handled inside the function β like, at all. Callers gotta make sure they serialize access to the HW themselves, fr fr. no cap, that's on you π
π RETURN π
0on success, slay π- a negative value on failure π
π SEE ALSO π
the kernel file where this lives:
./drivers/iio/accel/mma9551_core.c
and the whole friend group of related functions, all of them, no gatekeeping:
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_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 whole page π§π this came from ./drivers/iio/accel, dated October 2026 β iconic, timestamped, and archived in the group chat forever βπΈπ¦
π¦ 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