/** * \file * * * \brief Driver for the AT91 ARM TWI (implementation) * * \author Francesco Sacchi */ #ifndef DRV_AT91_TWI_H #define DRV_AT91_TWI_H #include typedef int16_t twi_iaddr_t; #define TWI_NO_IADDR (-1) void twi_init(void); bool twi_read(uint8_t id, twi_iaddr_t byte1, twi_iaddr_t byte2, twi_iaddr_t byte3, void *_buf, size_t len); bool twi_write(uint8_t id, twi_iaddr_t byte1, twi_iaddr_t byte2, twi_iaddr_t byte3, const void *_buf, size_t len); #endif /* DRV_AT91_TWI_H */