STRUCT THC_I2C_CONFIG(9)
π 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
- 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