twibus_bbif.h 480 B

1234567891011121314151617181920212223242526
  1. #ifndef _DEV_TWIBUS_BBIF_H_
  2. #define _DEV_TWIBUS_BBIF_H_
  3. #include <sys/types.h>
  4. typedef struct _NUTTWIICB NUTTWIICB;
  5. /*
  6. * Runtime Data container.
  7. * This is installed in heap at initializaton
  8. * of a bus.
  9. */
  10. struct _NUTTWIICB {
  11. /********** Master mode *********/
  12. /*! \brief Bus last error condition.
  13. */
  14. volatile int_fast8_t tw_mm_error;
  15. };
  16. extern NUTTWIBUS TwBbifBus;
  17. #ifndef DEF_TWIBUS
  18. #define DEF_TWIBUS TwBbifBus
  19. #endif
  20. #endif /* _DEV_TWIBUS_BBIF_H_ */