Subversion Repositories group.NITPanels

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
8 pfowler 1
/*
2
 * i2cbb.h
3
 *
4
 *  Created on: 10 Aug 2014
5
 *      Author: pfowler
6
 */
7
 
8
#ifndef I2CBB_H_
9
#define I2CBB_H_
10
 
11
unsigned char i2cbb_Read(unsigned char ack);
12
unsigned char i2cbb_Write(unsigned char c);
13
unsigned char i2cbb_ReadBit();
14
void i2cbb_Stop();
15
void i2cbb_Start();
16
void i2cbb_Init();
17
 
18
#define I2CBB_DELAY 10
19
 
20
#ifndef I2CBB_DDR
21
#error "I2CBB lib: Must define I2CBB_DDR"
22
#endif
23
 
24
#ifndef I2CBB_PIN
25
#error "I2CBB lib: Must define I2CBB_PIN"
26
#endif
27
 
28
#ifndef I2CBB_PORT
29
#error "I2CBB lib: Must define I2CBB_PORT"
30
#endif
31
 
32
#ifndef I2CBB_CLK
33
#error "I2CBB lib: Must define I2CBB_CLK"
34
#endif
35
 
36
#ifndef I2CBB_DAT
37
#error "I2CBB lib: Must define I2CBB_DAT"
38
#endif
39
 
40
#endif /* I2CBB_H_ */