2 #define I2C_PCA9564_H 1
4 #define I2C_PCA_STA 0x00 /* STATUS Read Only */
5 #define I2C_PCA_TO 0x00 /* TIMEOUT Write Only */
6 #define I2C_PCA_DAT 0x01 /* DATA Read/Write */
7 #define I2C_PCA_ADR 0x02 /* OWN ADR Read/Write */
8 #define I2C_PCA_CON 0x03 /* CONTROL Read/Write */
10 #define I2C_PCA_CON_AA 0x80 /* Assert Acknowledge */
11 #define I2C_PCA_CON_ENSIO 0x40 /* Enable */
12 #define I2C_PCA_CON_STA 0x20 /* Start */
13 #define I2C_PCA_CON_STO 0x10 /* Stop */
14 #define I2C_PCA_CON_SI 0x08 /* Serial Interrupt */
15 #define I2C_PCA_CON_CR 0x07 /* Clock Rate (MASK) */
17 #define I2C_PCA_CON_330kHz 0x00
18 #define I2C_PCA_CON_288kHz 0x01
19 #define I2C_PCA_CON_217kHz 0x02
20 #define I2C_PCA_CON_146kHz 0x03
21 #define I2C_PCA_CON_88kHz 0x04
22 #define I2C_PCA_CON_59kHz 0x05
23 #define I2C_PCA_CON_44kHz 0x06
24 #define I2C_PCA_CON_36kHz 0x07
26 #endif /* I2C_PCA9564_H */