spinal.lib.com

i2c

package i2c

Visibility
  1. Public
  2. All

Type Members

  1. case class I2C() extends Bundle with IMasterSlave with Product with Serializable

    I2C interface definition

  2. case class I2CMasteHALCmd(g: I2CMasterHALGenerics) extends Bundle with Product with Serializable

    Define the command interface

  3. class I2CMasterHAL extends Component

    Definition of the component I2C Master HAL

  4. case class I2CMasterHALConfig(g: I2CMasterHALGenerics) extends Bundle with Product with Serializable

    Used to config the I2C master HAL at runtime

  5. case class I2CMasterHALGenerics(dataWidth: Int = 8, clockDividerWidth: Int = 20, multiMaster_en: Boolean = true) extends Product with Serializable

    Global configuration of the I2C Master

    Global configuration of the I2C Master

    dataWidth

    : Width of the data send

    clockDividerWidth

    : Width of the clockDivider value

    multiMaster_en

    : Multi-Master or Single-Master

  6. case class I2CMasterHALRsp(g: I2CMasterHALGenerics) extends Bundle with Product with Serializable

    Define the response interface

  7. case class I2CMasterHALio(g: I2CMasterHALGenerics) extends Bundle with Product with Serializable

    Define the interface of the I2C Master HAL

  8. class I2CSlaveHAL extends Component

    Definition of the component I2C Slave HAL

  9. case class I2CSlaveHALCmd(g: I2CSlaveHALGenerics) extends Bundle with Product with Serializable

    Define the command interface

  10. case class I2CSlaveHALGenerics(dataWidth: Int = 8) extends Product with Serializable

    Global configuration of the I2C Slave

    Global configuration of the I2C Slave

    dataWidth

    : Width of the data send/read

  11. case class I2CSlaveHALRsp(g: I2CSlaveHALGenerics) extends Bundle with Product with Serializable

    Define the response interface

  12. case class I2CSlaveHALio(g: I2CSlaveHALGenerics) extends Bundle with Product with Serializable

    Interface I2C Slave HAL

Value Members

  1. object I2C extends Serializable

    Define I2C constants

  2. object I2CMasterHALCmdMode extends SpinalEnum

    6 different modes can be used to manage the master START : Send the start/restart sequence WRITE : Write a data READ : Read a data ACK : Send an ACK after reading NACK : Send a NACK after reading STOP : Send the stop sequence

  3. object I2CMasterHALRspMode extends SpinalEnum

    4 different modes are available for a response ACK : ACK received after writting NACK : NACK recieved after writting DATA : Data read on the bus COLLISION : Collision detected during a write

  4. object I2CSlaveHALCmdMode extends SpinalEnum

    5 different modes START : START sequence detected NACK : NACK received ACK : ACK received STOP : STOP sequence detected DATA : DATA received

  5. object I2CSlaveHALRspMode extends SpinalEnum

    3 different modes DATA : Send a data to the master NONE : NO operation / NACK ACK : ACK (FREEZE) is done with the stream

Ungrouped