X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Ftwi.h;h=cd2fdb2d54df0c4465f1ee2599655dcf0619e511;hb=77c1d6ba65a199f60faa0e0a68e63ef0eb87677c;hp=ac8c46f20f2eff8f03aa30d03c2a1e740e51aa99;hpb=af9c555446161016fdd76c1cdff96ce76bb6cba2;p=bertos.git diff --git a/drv/twi.h b/drv/twi.h old mode 100755 new mode 100644 index ac8c46f2..cd2fdb2d --- a/drv/twi.h +++ b/drv/twi.h @@ -1,6 +1,31 @@ -/*! +/** * \file * @@ -15,6 +40,12 @@ /*#* *#* $Log$ + *#* 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. *#* @@ -27,9 +58,10 @@ #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);