Subversion Repositories group.NITPanels

Rev

Rev 8 | Details | Compare with Previous | 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();
26 pfowler 14
unsigned char i2cbb_Sniff(unsigned char i2c_addr);
8 pfowler 15
void i2cbb_Stop();
16
void i2cbb_Start();
17
void i2cbb_Init();
18
 
19
#define I2CBB_DELAY 10
20
 
21
#ifndef I2CBB_DDR
22
#error "I2CBB lib: Must define I2CBB_DDR"
23
#endif
24
 
25
#ifndef I2CBB_PIN
26
#error "I2CBB lib: Must define I2CBB_PIN"
27
#endif
28
 
29
#ifndef I2CBB_PORT
30
#error "I2CBB lib: Must define I2CBB_PORT"
31
#endif
32
 
33
#ifndef I2CBB_CLK
34
#error "I2CBB lib: Must define I2CBB_CLK"
35
#endif
36
 
37
#ifndef I2CBB_DAT
38
#error "I2CBB lib: Must define I2CBB_DAT"
39
#endif
40
 
41
#endif /* I2CBB_H_ */