twi_avr.h
Go to the documentation of this file.00001
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
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