#ifndef __I2C_H__
#define __I2C_H__

#include "typedefs.h"

//pins
#define SCL       PORTBbits.RB1   	// SCL output pin
#define SDA       PORTBbits.RB0   	// SDA output pin

#define SCL_TRIS  TRISBbits.TRISB1  // SCL direction pin
#define SDA_TRIS  TRISBbits.TRISB0  // SDA direction pin

#define I2CCMD_SETTINGS1	21
#define I2CCMD_SETTINGS2	22
#define I2CCMD_POSITION		30

extern volatile U8 i2cdataReady;
extern volatile U8 bufferRx[64];
extern volatile U8 bufferTx[64];

extern void i2c_config(void);

#endif

