45 #define IC_CON offsetof(I2C_REGS, ic_con)
46 #define IC_TAR offsetof(I2C_REGS, ic_tar)
47 #define IC_DATA_CMD offsetof(I2C_REGS, ic_data_cmd)
48 #define IC_SS_SCL_HCNT offsetof(I2C_REGS, ic_ss_scl_hcnt)
49 #define IC_SS_SCL_LCNT offsetof(I2C_REGS, ic_ss_scl_lcnt)
50 #define IC_FS_SCL_HCNT offsetof(I2C_REGS, ic_fs_scl_hcnt)
51 #define IC_FS_SCL_LCNT offsetof(I2C_REGS, ic_fs_scl_lcnt)
52 #define IC_INTR_STAT offsetof(I2C_REGS, ic_intr_stat)
53 #define IC_INTR_MASK offsetof(I2C_REGS, ic_intr_mask)
54 #define IC_RAW_INTR_STAT offsetof(I2C_REGS, ic_raw_intr_stat)
55 #define IC_RX_TL offsetof(I2C_REGS, ic_rx_tl)
56 #define IC_TX_TL offsetof(I2C_REGS, ic_tx_tl)
57 #define IC_CLR_INTR offsetof(I2C_REGS, ic_clr_intr)
58 #define IC_CLR_RX_UNDER offsetof(I2C_REGS, ic_clr_rx_under)
59 #define IC_CLR_RX_OVER offsetof(I2C_REGS, ic_clr_rx_over)
60 #define IC_CLR_TX_OVER offsetof(I2C_REGS, ic_clr_tx_over)
61 #define IC_CLR_RD_REQ offsetof(I2C_REGS, ic_clr_rd_req)
62 #define IC_CLR_TX_ABRT offsetof(I2C_REGS, ic_clr_tx_abrt)
63 #define IC_CLR_ACTIVITY offsetof(I2C_REGS, ic_clr_activity)
64 #define IC_CLR_STOP_DET offsetof(I2C_REGS, ic_clr_stop_det)
65 #define IC_CLR_START_DET offsetof(I2C_REGS, ic_clr_start_det)
66 #define IC_ENABLE offsetof(I2C_REGS, ic_enable)
67 #define IC_STATUS offsetof(I2C_REGS, ic_status)
68 #define IC_TXFLR offsetof(I2C_REGS, ic_txflr)
69 #define IC_RXFLR offsetof(I2C_REGS, ic_rxflr)
70 #define IC_SDA_HOLD offsetof(I2C_REGS, ic_sda_hold)
71 #define IC_TX_ABRT_SOURCE offsetof(I2C_REGS, ic_tx_abrt_source)
72 #define IC_ENABLE_STATUS offsetof(I2C_REGS, ic_enable_status)
73 #define IC_FS_SPKLEN offsetof(I2C_REGS, ic_fs_spklen)
76 #define IC_CON_RESTART_EN 0x00000020
77 #define IC_CON_10B 0x00000010
79 #define IC_CON_SPEED 0x00000006
80 #define IC_CON_SPEED_400_KHz 0x00000004
81 #define IC_CON_SPEED_100_KHz 0x00000002
82 #define IC_CON_MASTER_MODE 0x00000001
85 #define IC_DATA_CMD_RESTART 0x00000400
86 #define IC_DATA_CMD_STOP 0x00000200
87 #define IC_DATA_CMD_CMD 0x00000100
88 #define IC_DATA_CMD_READ IC_DATA_CMD_CMD
89 #define IC_DATA_CMD_WRITE 0
90 #define IC_DATA_CMD_DATA 0x000000ff
96 #define IC_INTR_START_DET 0x00000400
97 #define IC_INTR_STOP_DET 0x00000200
98 #define IC_INTR_ACTIVITY 0x00000100
99 #define IC_INTR_TX_ABRT 0x00000040
100 #define IC_INTR_RD_REQ 0x00000020
101 #define IC_INTR_TX_EMPTY 0x00000010
102 #define IC_INTR_TX_OVER 0x00000008
103 #define IC_INTR_RX_FULL 0x00000004
104 #define IC_INTR_RX_OVER 0x00000002
105 #define IC_INTR_RX_UNDER 0x00000001
110 #define IC_ENABLE_CONTROLLER 0x00000001
113 #define IC_STATUS_MST_ACTIVITY 0x00000020
114 #define IC_STATUS_RFF 0x00000010
115 #define IC_STATUS_RFNE 0x00000008
116 #define IC_STATUS_TFE 0x00000004
117 #define IC_STATUS_TFNF 0x00000002
118 #define IC_STATUS_ACTIVITY 0x00000001
volatile struct _I2C_REGS I2C_REGS
uint32_t ic_clr_start_det
volatile uint32_t ic_data_cmd
volatile uint32_t ic_enable_status
volatile uint32_t ic_tx_abrt_source
volatile uint32_t ic_status
uint32_t ic_raw_intr_stat
volatile uint32_t ic_enable
volatile uint32_t ic_intr_stat