twi_at91.h

Go to the documentation of this file.
00001 
00041 #ifndef DRV_AT91_TWI_H
00042 #define DRV_AT91_TWI_H
00043 
00044 #include <cfg/compiler.h>
00045 
00046 typedef int16_t twi_iaddr_t;
00047 
00048 #define TWI_NO_IADDR (-1)
00049 
00050 void twi_init(void);
00051 bool twi_read(uint8_t id, twi_iaddr_t byte1, twi_iaddr_t byte2, twi_iaddr_t byte3, void *_buf, size_t len);
00052 bool twi_write(uint8_t id, twi_iaddr_t byte1, twi_iaddr_t byte2, twi_iaddr_t byte3, const void *_buf, size_t len);
00053 
00054 #endif /* DRV_AT91_TWI_H */