dv-bfin_twi.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* Blackfin Two Wire Interface (TWI) model
  2. Copyright (C) 2010-2015 Free Software Foundation, Inc.
  3. Contributed by Analog Devices, Inc.
  4. This file is part of simulators.
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  15. #ifndef DV_BFIN_TWI_H
  16. #define DV_BFIN_TWI_H
  17. /* TWI_MASTER_STAT Masks */
  18. #define MPROG (1 << 0)
  19. #define LOSTARB (1 << 1)
  20. #define ANAK (1 << 2)
  21. #define DNAK (1 << 3)
  22. #define BUFRDERR (1 << 4)
  23. #define BUFWRERR (1 << 5)
  24. #define SDASEN (1 << 6)
  25. #define SCLSEN (1 << 7)
  26. #define BUSBUSY (1 << 8)
  27. #endif