From b0d8f22f3492fbb3f6dc0e8026e63c803af59007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 17 Oct 2015 15:40:51 +0200 Subject: Complete commit of current work --- twi.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'twi.h') diff --git a/twi.h b/twi.h index e69de29..514b17a 100644 --- a/twi.h +++ b/twi.h @@ -0,0 +1,25 @@ +#include +#include +#include + +#include "mcu/mcu_def.h" +#include "buffers.h" + +#ifndef _IOE_TWI_H_ +#define _IOE_TWI_H_ + +#ifndef MCUSUPPORT_TWI +#error "No TWI interface is known on your mcu." +#endif + +enum twiMode { + TWI_MODE_MASTER, + TWI_MODE_SLAVE +}; + +void twi_init(enum twiMode); +int8_t twi_busy(void); +void twi_join(void); +void twi_send(uint8_t data); + +#endif /* _IOE_TWI_H_ */ -- cgit v1.2.3