PageRenderTime 16ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/drivers/i2c/algos/i2c-algo-pca.h

https://bitbucket.org/evzijst/gittest
C Header | 26 lines | 22 code | 4 blank | 0 comment | 0 complexity | 64c29f090780d0fe3a55b3080592fb02 MD5 | raw file
 1#ifndef I2C_PCA9564_H
 2#define I2C_PCA9564_H 1
 3
 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 */
 9
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) */
16
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
25
26#endif /* I2C_PCA9564_H */