Go to the documentation of this file. 1 #ifndef _LINUX_I2C_ALGO_PCA_H
2 #define _LINUX_I2C_ALGO_PCA_H
5 #define I2C_PCA_CHIP_9564 0x00
6 #define I2C_PCA_CHIP_9665 0x01
9 #define I2C_PCA_OSC_PER 3
12 #define I2C_PCA_CON_330kHz 0x00
13 #define I2C_PCA_CON_288kHz 0x01
14 #define I2C_PCA_CON_217kHz 0x02
15 #define I2C_PCA_CON_146kHz 0x03
16 #define I2C_PCA_CON_88kHz 0x04
17 #define I2C_PCA_CON_59kHz 0x05
18 #define I2C_PCA_CON_44kHz 0x06
19 #define I2C_PCA_CON_36kHz 0x07
22 #define I2C_PCA_STA 0x00
23 #define I2C_PCA_TO 0x00
24 #define I2C_PCA_DAT 0x01
25 #define I2C_PCA_ADR 0x02
26 #define I2C_PCA_CON 0x03
29 #define I2C_PCA_INDPTR 0x00
30 #define I2C_PCA_IND 0x02
33 #define I2C_PCA_ICOUNT 0x00
34 #define I2C_PCA_IADR 0x01
35 #define I2C_PCA_ISCLL 0x02
36 #define I2C_PCA_ISCLH 0x03
37 #define I2C_PCA_ITO 0x04
38 #define I2C_PCA_IPRESET 0x05
39 #define I2C_PCA_IMODE 0x06
42 #define I2C_PCA_MODE_STD 0x00
43 #define I2C_PCA_MODE_FAST 0x01
44 #define I2C_PCA_MODE_FASTP 0x02
45 #define I2C_PCA_MODE_TURBO 0x03
48 #define I2C_PCA_CON_AA 0x80
49 #define I2C_PCA_CON_ENSIO 0x40
50 #define I2C_PCA_CON_STA 0x20
51 #define I2C_PCA_CON_STO 0x10
52 #define I2C_PCA_CON_SI 0x08
53 #define I2C_PCA_CON_CR 0x07