Subversion Repositories group.electronics

Rev

Rev 123 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef E2P_H
#define E2P_H

struct {
        uint8_t i2c_addr;
} e2p;


void e2p_init(void);

uint8_t e2p_busy(void);
void e2p_flush(void);

uint8_t e2p_readByte(uint16_t address);
void e2p_readBytes(uint16_t address, uint8_t* buffer, uint8_t length);

void e2p_writeByte(uint16_t address, uint8_t data);
void e2p_writeBytes(uint16_t address, uint8_t* data, uint8_t length);

#endif