39 #ifndef NIBOBEE_I2CMASTER_H_
40 #define NIBOBEE_I2CMASTER_H_
48 #define I2C_BUF_SIZE 0x25
49 #define NIBO_I2C_TXRX 1
50 #define I2C_TWBR_INIT 100
70 extern volatile uint8_t i2c_size;
78 extern uint8_t
i2c_buf[I2C_BUF_SIZE];
105 extern volatile uint8_t i2c_last_TWSR;
106 extern volatile uint8_t i2c_pos;
113 #define I2C_TX(ADDR) ((ADDR)<<1)
114 #define I2C_RX(ADDR) (((ADDR)<<1)+1)
120 #endif // NIBOBEE_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]