X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Ftwi.h;h=b2b7d8b82e8ccd80302f3f222e311549dc837539;hb=46626ce710c12ab2799c63893b09d06831297213;hp=90564234725f07c61ac089faca7dfd1792a5d544;hpb=17f6b83057f60aae39ed0124f8015fc4c8d578b6;p=bertos.git diff --git a/drv/twi.h b/drv/twi.h index 90564234..b2b7d8b8 100755 --- a/drv/twi.h +++ b/drv/twi.h @@ -1,8 +1,8 @@ -/*! +/** * \file * * * \version $Id$ @@ -15,18 +15,28 @@ /*#* *#* $Log$ - *#* Revision 1.1 2005/01/06 16:09:40 aleph - *#* Split twi/eeprom functions from eeprom module in separate twi module + *#* Revision 1.5 2006/07/19 12:56:26 bernie + *#* Convert to new Doxygen style. + *#* + *#* Revision 1.4 2006/03/20 17:49:49 bernie + *#* Make the TWI driver more generic to work with devices other than EEPROMS. + *#* + *#* Revision 1.3 2005/04/11 19:10:28 bernie + *#* Include top-level headers from cfg/ subdir. + *#* + *#* Revision 1.2 2005/02/18 11:19:52 bernie + *#* Update copyright info. *#* *#*/ #ifndef DRV_TWI_H #define DRV_TWI_H -#include +#include -bool twi_start_w(uint8_t slave_addr); -bool twi_start_r(uint8_t slave_addr); +bool twi_start_w(uint8_t id); +bool twi_start_r(uint8_t id); void twi_stop(void); +bool twi_put(const uint8_t data); bool twi_send(const void *_buf, size_t count); bool twi_recv(void *_buf, size_t count); void twi_init(void);