STRUCT ST_I2C_DEV(9)
π struct st_i2c_dev(9) β the kernel API manual, bestie edition β¨
Okay so this page is literally all about struct st_i2c_dev, and the vibe is: private data of the controller. That's it, that's the whole personality. It's the little data bag that the ST I2C controller keeps all to itself π
β¨ SYNOPSIS β¨
Here's the whole struct, no cap β every field, exactly as it appears:
struct st_i2c_dev {
struct i2c_adapter adap;
struct device *dev;
void __iomem *base;
struct completion complete;
int irq;
struct clk *clk;
int mode;
u32 scl_min_width_us;
u32 sda_min_width_us;
struct st_i2c_client client;
bool busy;
};
π¦ Members β meet the cast π«Ά
adapβ the I2C adapter for this controller. main character energy honestly πdevβ the device for this controller πbaseβ virtual memory area. yes queen, memory-mapped β¨completeβ completion of I2C message. it's giving "wait for itβ¦" πirqβ the interrupt line for the controller β‘clkβ the hw ssc block clock π°οΈmodeβ the I2C mode of the controller. Standard or Fast only supported β so like, don't come in here with High-Speed dreams, it's not that kind of party πscl_min_width_usβ SCL line minimum pulse width in us πsda_min_width_usβ SDA line minimum pulse width in us πclientβ I2C transfert information π§busyβ I2C transfer on-going. lowkey the most relatable field in the whole struct, fr fr π«Ά
π SEE ALSO π
Kernel file ./drivers/i2c/busses/i2c-st.c plus this whole friend group:
struct st_i2c_timings(9)struct st_i2c_client(9)st_i2c_hw_config(9)st_i2c_write_tx_fifo(9)st_i2c_wr_fill_tx_fifo(9)st_i2c_rd_fill_tx_fifo(9)st_i2c_terminate_xfer(9)st_i2c_handle_write(9)st_i2c_handle_read(9)st_i2c_isr_thread(9)st_i2c_xfer_msg(9)st_i2c_xfer(9)
π Real talk for a sec: those parenthesised (9) numbers mean they're kernel API pages too, so go read them if you want the whole story. iykyk.
That's the page, bestie β go forth and slay your I2C transfers π β¨
This icon was brought to you from the ./drivers/i2c/busses directory, dated October 2026, and it's all about struct st_i2c_dev(9). Stan. π
π¦ 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