Go to the documentation of this file.
30 #ifndef _PIC24_I2C1_H_
31 #define _PIC24_I2C1_H_
37 #if (NUM_I2C_MODS >= 1)
63 #define I2C_WADDR(x) (x & 0xFE) //clear R/W bit of I2C addr
64 #define I2C_RADDR(x) (x | 0x01) //set R/W bit of I2C addr
84 #endif // #if (NUM_I2C_MODS >= 1)
85 #endif // #ifndef _PIC24_I2C1_H_
120 #ifndef _PIC24_I2C2_H_
121 #define _PIC24_I2C2_H_
127 #if (NUM_I2C_MODS >= 2)
153 #define I2C_WADDR(x) (x & 0xFE) //clear R/W bit of I2C addr
154 #define I2C_RADDR(x) (x | 0x01) //set R/W bit of I2C addr
159 void startI2C2(
void);
160 void rstartI2C2(
void);
174 #endif // #if (NUM_I2C_MODS >= 2)
175 #endif // #ifndef _PIC24_I2C2_H_