STRUCT THC_I2C_CONFIG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct thc_i2c_config(9) β€” the Kernel API Manual era πŸŽ€

okay so bestie, welcome to the Kernel API Manual page for struct thc_i2c_config β€” literally the glow-up sheet where you tell the THC I2C bus how to behave. it's giving "bus configuration main character energy" and we're obsessed πŸ’–


✨ NAME ✨

struct thc_i2c_config β€” the THC I2C bus configuration, periodt 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

struct thc_i2c_config {
    u16 target_addr;
    u8 addr_mode;
    u32 speed;
    u32 scl_hcnt;
    u32 scl_lcnt;
    u32 sda_tx_hold;
    u32 sda_rx_hold;
 };

like, that's the whole vibe right there πŸ”₯


πŸ‘‘ Members πŸ‘‘

every field is a little moment, so let's do a vibe check on all seven, no cap:

  • target_addr β€” the slave address of the touch device (TIC). yes, that's who we're talking to πŸ’…
  • addr_mode β€” the slave address mode of the touch device (TIC), and it's either 7bit or 10bit. pick your fighter ✨
  • speed β€” the I2C bus frequency speed mode. how fast are we going, bestie 🏎️
  • scl_hcnt β€” the I2C clock SCL high count πŸ•
  • scl_lcnt β€” the I2C clock SCL low count πŸ•“
  • sda_tx_hold β€” the I2C Data SDA transmit hold period 🫢
  • sda_rx_hold β€” the I2C Data SDA receive hold period πŸ™ˆ
ngl, this is a struct where every single member pulls its weight β€” no filler fields, we love to see it πŸ’€

🌈 SEE ALSO 🌈

  • the kernel file ./drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.h πŸ“
  • struct thc_device(9) β€” go read that one next, iykyk 🧚

and that's the page, bestie!! this drop came from ./drivers/hid/intel-thc-hid/in... and it's dated October 2026 β€” so yes, technically from the future, and it still says struct thc_i2c_config(9) at the bottom πŸ’œ stay configured, slay, bye πŸŽ€β­

πŸ“¦ where this page comes from