ENUM CDNS_I2C_SLAVE_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

enum cdns_i2c_slave_state β€” bestie, this is the enum that tracks the slave state when I2C is out here operating in slave mode πŸ’…


✨ SYNOPSIS ✨

okay so here's the whole vibe, literally the entire enum, no cap:

enum cdns_i2c_slave_state {
    CDNS_I2C_SLAVE_STATE_IDLE ,
    CDNS_I2C_SLAVE_STATE_SEND ,
    CDNS_I2C_SLAVE_STATE_RECV

};

three constants, that's it, she's simple and iconic for it πŸŽ€


πŸ’– Constants πŸ’–

  • CDNS_I2C_SLAVE_STATE_IDLE β€” the I2C slave is just chilling. idle. not doing anything. main character resting energy πŸ¦‹
  • CDNS_I2C_SLAVE_STATE_SEND β€” the I2C slave is sending data to the master. she's the one talking now, periodt πŸ”₯
  • CDNS_I2C_SLAVE_STATE_RECV β€” the I2C slave is receiving data from the master. ears open, taking it all in, lowkey listener mode πŸ™ˆ

🫢 SEE ALSO 🫢

if you wanna go deeper (iykyk), the kernel file lives here: ./drivers/i2c/busses/i2c-cadence.c β€” and honestly the whole friend group is worth a look:


πŸ’€ reminder bestie: this is from the Kernel API Manual, sourced out of ./drivers/i2c/busses, dated October 2026, and yes the page title is enum cdns_i2c_slave_state(9) in case you forgot where you were πŸ’–

that's the whole page, slay, go forth and configure your Cadence I2C controller πŸŒˆβ­πŸ“

πŸ“¦ where this page comes from