00001 00008 /* 00009 * twi.h 00010 * 00011 * Created on: 02.06.2009 00012 * Author: tst 00013 */ 00014 00015 #ifndef TWI_H_ 00016 #define TWI_H_ 00017 00018 #include <avr/io.h> 00019 #include <util/twi.h> 00020 00021 00026 int8_t TWI_Init(uint8_t BR); 00027 00032 int8_t TWI_Init_default(); 00033 00034 00035 00047 int8_t TWIMasterTransmit(int8_t SLA, uint8_t * data, uint8_t count); 00048 00060 int8_t TWIMasterReceive(uint8_t SLA_R, uint8_t * data, uint8_t length); 00061 00062 #endif /* TWI_H_ */