Go to the documentation of this file.
23 #define I2C_IOP3XX_H 1
28 #define IOP3XX_ICR_FAST_MODE 0x8000
29 #define IOP3XX_ICR_UNIT_RESET 0x4000
30 #define IOP3XX_ICR_SAD_IE 0x2000
31 #define IOP3XX_ICR_ALD_IE 0x1000
32 #define IOP3XX_ICR_SSD_IE 0x0800
33 #define IOP3XX_ICR_BERR_IE 0x0400
34 #define IOP3XX_ICR_RXFULL_IE 0x0200
35 #define IOP3XX_ICR_TXEMPTY_IE 0x0100
36 #define IOP3XX_ICR_GCD 0x0080
41 #define IOP3XX_ICR_UE 0x0040
50 #define IOP3XX_ICR_SCLEN 0x0020
51 #define IOP3XX_ICR_MABORT 0x0010
53 #define IOP3XX_ICR_TBYTE 0x0008
54 #define IOP3XX_ICR_NACK 0x0004
55 #define IOP3XX_ICR_MSTOP 0x0002
56 #define IOP3XX_ICR_MSTART 0x0001
59 #define IOP3XX_ISR_BERRD 0x0400
60 #define IOP3XX_ISR_SAD 0x0200
61 #define IOP3XX_ISR_GCAD 0x0100
62 #define IOP3XX_ISR_RXFULL 0x0080
63 #define IOP3XX_ISR_TXEMPTY 0x0040
64 #define IOP3XX_ISR_ALD 0x0020
65 #define IOP3XX_ISR_SSD 0x0010
66 #define IOP3XX_ISR_BBUSY 0x0008
67 #define IOP3XX_ISR_UNITBUSY 0x0004
68 #define IOP3XX_ISR_NACK 0x0002
69 #define IOP3XX_ISR_RXREAD 0x0001
71 #define IOP3XX_ISR_CLEARBITS 0x07f0
73 #define IOP3XX_ISAR_SAMASK 0x007f
75 #define IOP3XX_IDBR_MASK 0x00ff
77 #define IOP3XX_IBMR_SCL 0x0002
78 #define IOP3XX_IBMR_SDA 0x0001
80 #define IOP3XX_GPOD_I2C0 0x00c0
81 #define IOP3XX_GPOD_I2C1 0x0030
86 #define I2C_ERR_BERR (I2C_ERR+0)
87 #define I2C_ERR_ALD (I2C_ERR+1)
92 #define SAR_OFFSET 0x8
93 #define DBR_OFFSET 0xc
94 #define CCR_OFFSET 0x10
95 #define BMR_OFFSET 0x14
97 #define IOP3XX_I2C_IO_SIZE 0x18