37 #ifndef NIBOBURGER_I2CMASTER_H_
38 #define NIBOBURGER_I2CMASTER_H_
46 #define I2C_BUF_SIZE 0x25
47 #define NIBO_I2C_TXRX 1
48 #define I2C_TWBR_INIT 100
68 extern volatile uint8_t i2c_size;
76 extern uint8_t
i2c_buf[I2C_BUF_SIZE];
103 extern volatile uint8_t i2c_last_TWSR;
104 extern volatile uint8_t i2c_pos;
111 #define I2C_TX(ADDR) ((ADDR)<<1)
112 #define I2C_RX(ADDR) (((ADDR)<<1)+1)
118 #endif // NIBOBURGER_I2CMASTER_H_
volatile uint8_t i2c_rx_size
uint8_t i2c_start_transmission(void)
volatile uint8_t i2c_tx_size
uint8_t i2c_wait_transmission(void)
uint8_t i2c_buf[I2C_BUF_SIZE]