Subversion Repositories group.electronics

Rev

Blame | Last modification | View Log | RSS feed

/*
 * i2cbb.h
 *
 *  Created on: 10 Aug 2014
 *      Author: pfowler
 */

#ifndef I2CBB_H_
#define I2CBB_H_

unsigned char i2cbb_Read(unsigned char ack);
unsigned char i2cbb_Write(unsigned char c);
unsigned char i2cbb_ReadBit();
void i2cbb_Stop();
void i2cbb_Start();
void i2cbb_Init();

#define I2CBB_DELAY 10

#ifndef I2CBB_DDR
#error "I2CBB lib: Must define I2CBB_DDR"
#endif

#ifndef I2CBB_PIN
#error "I2CBB lib: Must define I2CBB_PIN"
#endif

#ifndef I2CBB_PORT
#error "I2CBB lib: Must define I2CBB_PORT"
#endif

#ifndef I2CBB_CLK
#error "I2CBB lib: Must define I2CBB_CLK"
#endif

#ifndef I2CBB_DAT
#error "I2CBB lib: Must define I2CBB_DAT"
#endif

#endif /* I2CBB_H_ */