Split twi/eeprom functions from eeprom module in separate twi module
[bertos.git] / drv / twi.h
1 /*!
2  * \file
3  * <!--
4  * Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
5  * This file is part of DevLib - See devlib/README for information.
6  * -->
7  *
8  * \version $Id$
9  *
10  * \author Stefano Fedrigo <aleph@develer.com>
11  * \author Bernardo Innocenti <bernie@develer.com>
12  *
13  * \brief Driver for the AVR ATMega TWI (interface)
14  */
15
16 /*#*
17  *#* $Log$
18  *#* Revision 1.1  2005/01/06 16:09:40  aleph
19  *#* Split twi/eeprom functions from eeprom module in separate twi module
20  *#*
21  *#*/
22 #ifndef DRV_TWI_H
23 #define DRV_TWI_H
24
25 #include <compiler.h>
26
27 bool twi_start_w(uint8_t slave_addr);
28 bool twi_start_r(uint8_t slave_addr);
29 void twi_stop(void);
30 bool twi_send(const void *_buf, size_t count);
31 bool twi_recv(void *_buf, size_t count);
32 void twi_init(void);
33
34 #endif /* DRV_EEPROM_H */