14 #define FAST_MODE_PLUS 0
17 #define MAX_TIMEOUT 0x00FFFFFF
19 #define I2CMASTER 0x01
22 #define MPU6050_W 0xd0
23 #define MPU6050_R 0xd1
26 #define PCF8594_ADDR 0xA0
28 #define READ_WRITE 0x01
34 #define I2C_RESTARTED 2
35 #define I2C_REPEATED_START 3
39 #define I2CONSET_I2EN 0x00000040
40 #define I2CONSET_AA 0x00000004
41 #define I2CONSET_SI 0x00000008
42 #define I2CONSET_STO 0x00000010
43 #define I2CONSET_STA 0x00000020
45 #define I2CONCLR_AAC 0x00000004
46 #define I2CONCLR_SIC 0x00000008
47 #define I2CONCLR_STAC 0x00000020
48 #define I2CONCLR_I2ENC 0x00000040
50 #define I2DAT_I2C 0x00000000
51 #define I2ADR_I2C 0x00000000
52 #define I2SCLH_SCLH 0x00000180
53 #define I2SCLL_SCLL 0x00000180
54 #define I2SCLH_HS_SCLH 0x00000020
55 #define I2SCLL_HS_SCLL 0x00000020
void I2C_IRQHandler(void)
uint32_t I2CInit(uint32_t I2cMode)