ads112c14_i2c_read_bytes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ads112c14_i2c_read_bytes β€” the Kernel API Manual moment πŸ’–

okay so bestie, we're in the kernel API manual (that's the manual name, bestie, it's literally right there in the header) and this page is all about one function: ads112c14_i2c_read_bytes. It's giving "read bytes off the device over I2C" and honestly? iconic.


✨ NAME ✨

ads112c14_i2c_read_bytes β€” Read bytes from the device over I2C πŸ¦‹


🌸 SYNOPSIS 🌸

int ads112c14_i2c_read_bytes (struct i2c_client *client , u8 cmd , u8
*buf , u8 len , bool use_crc );

no cap, that's the whole signature, copy it exactly bestie πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • client β€” the I2C client for the device 🫢 like, who we're talking to, basically.
  • cmd β€” the command we send to the device before reading. yes, before. we're polite like that ✨
  • buf β€” the buffer where the read bytes get stashed. your little byte hotel 🏨
  • len β€” how many bytes to read. the count, the vibe check, the amount 🌈
  • use_crc β€” whether to use CRC8 for the data integrity check. true = we're checking, false = we're living dangerously (jk, it's just off) πŸ’€

πŸ’œ DESCRIPTION πŸ’œ

It's lowkey simple: if I2C_CRC is enabled, you can set use_crc to true and it'll perform a CRC8 check on the received data. that's the whole tea β˜•βœ¨

fr fr though β€” that CRC8 check only happens when I2C_CRC is enabled, so don't go thinking use_crc = true does anything magical if it isn't. the manpage said what it said πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹


okay that's the whole page, mwah πŸ’‹ and for the cute sign-off: this beauty lives under ./drivers/iio/adc, dated October 2026 β€” main character source-and-version energy, periodt πŸŒŸπŸŽ€

πŸ“¦ where this page comes from