Bug fix: arbLost should be asserted when bitState =/= s_bit_idle (#49)
[sifive-blocks.git] / src / main / scala / devices / i2c / I2CCtrlRegs.scala
1 // See LICENSE for license details.
2 package sifive.blocks.devices.i2c
3
4 // matching Open Cores I2C to re-use Linux driver
5 // http://lxr.free-electrons.com/source/drivers/i2c/busses/i2c-ocores.c?v=4.6
6
7 object I2CCtrlRegs {
8 val prescaler_lo = 0x00 // low byte clock prescaler register
9 val prescaler_hi = 0x04 // high byte clock prescaler register
10 val control = 0x08 // control register
11 val data = 0x0c // write: transmit byte, read: receive byte
12 val cmd_status = 0x10 // write: command, read: status
13 }