Subversion Repositories group.electronics

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
123 pfowler 1
#ifndef E2P_H
2
#define E2P_H
3
 
4
struct {
5
	uint8_t i2c_addr;
6
} e2p;
7
 
8
 
9
void e2p_init(void);
10
 
11
uint8_t e2p_busy(void);
12
void e2p_flush(void);
13
 
14
uint8_t e2p_readByte(uint16_t address);
15
void e2p_readBytes(uint16_t address, uint8_t* buffer, uint8_t length);
16
 
17
void e2p_writeByte(uint16_t address, uint8_t data);
18
void e2p_writeBytes(uint16_t address, uint8_t* data, uint8_t length);
19
 
20
#endif