twi_avr.h

Go to the documentation of this file.
00001 
00041 /*#*
00042  *#* $Log$
00043  *#* Revision 1.5  2006/07/19 12:56:26  bernie
00044  *#* Convert to new Doxygen style.
00045  *#*
00046  *#* Revision 1.4  2006/03/20 17:49:49  bernie
00047  *#* Make the TWI driver more generic to work with devices other than EEPROMS.
00048  *#*
00049  *#* Revision 1.3  2005/04/11 19:10:28  bernie
00050  *#* Include top-level headers from cfg/ subdir.
00051  *#*
00052  *#* Revision 1.2  2005/02/18 11:19:52  bernie
00053  *#* Update copyright info.
00054  *#*
00055  *#*/
00056 #ifndef DRV_TWI_H
00057 #define DRV_TWI_H
00058 
00059 #include <cfg/compiler.h>
00060 
00061 bool twi_start_w(uint8_t id);
00062 bool twi_start_r(uint8_t id);
00063 void twi_stop(void);
00064 bool twi_put(const uint8_t data);
00065 bool twi_send(const void *_buf, size_t count);
00066 bool twi_recv(void *_buf, size_t count);
00067 void twi_init(void);
00068 
00069 #endif /* DRV_EEPROM_H */