00001 00010 /* 00011 * twi.h 00012 * 00013 * Created on: 02.06.2009 00014 * Author: tst 00015 */ 00016 00017 #ifndef TWI_H_ 00018 #define TWI_H_ 00019 00020 #include <avr/io.h> 00021 #include <util/twi.h> 00022 00023 00030 int8_t TWI_Init(uint8_t BR); 00031 00038 int8_t TWI_Init_default(); 00039 00040 00041 00054 int8_t TWIMasterTransmit(int8_t SLA, uint8_t * data, uint8_t count); 00055 00069 int8_t TWIMasterReceive(uint8_t SLA_R, uint8_t * data, uint8_t length); 00070 00071 #endif /* TWI_H_ */