00001 #ifndef _DEV_TWIBUS_BBIF_H_ 00002 #define _DEV_TWIBUS_BBIF_H_ 00003 00004 #include <sys/types.h> 00005 00006 typedef struct _NUTTWIICB NUTTWIICB; 00007 /* 00008 * Runtime Data container. 00009 * This is installed in heap at initializaton 00010 * of a bus. 00011 */ 00012 struct _NUTTWIICB { 00013 /********** Master mode *********/ 00014 00017 volatile uint_fast8_t tw_mm_error; 00018 }; 00019 00020 extern NUTTWIBUS TwBbifBus; 00021 00022 #ifndef DEF_TWIBUS 00023 #define DEF_TWIBUS TwBbifBus 00024 #endif 00025 00026 #endif /* _DEV_TWIBUS_BBIF_H_ */