Include top-level headers from cfg/ subdir.
[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 README.devlib 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.3  2005/04/11 19:10:28  bernie
19  *#* Include top-level headers from cfg/ subdir.
20  *#*
21  *#* Revision 1.2  2005/02/18 11:19:52  bernie
22  *#* Update copyright info.
23  *#*
24  *#*/
25 #ifndef DRV_TWI_H
26 #define DRV_TWI_H
27
28 #include <cfg/compiler.h>
29
30 bool twi_start_w(uint8_t slave_addr);
31 bool twi_start_r(uint8_t slave_addr);
32 void twi_stop(void);
33 bool twi_send(const void *_buf, size_t count);
34 bool twi_recv(void *_buf, size_t count);
35 void twi_init(void);
36
37 #endif /* DRV_EEPROM_H */