pca9564.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * File: include/pca9564.h
  3. * Author:
  4. *
  5. * Created: 2009-06-23
  6. * Description: PCA9564 i2c bridge driver
  7. *
  8. * Modified:
  9. * Copyright 2009 CJSC "NII STT", http://www.niistt.ru/
  10. *
  11. * Bugs:
  12. *
  13. * This program is free software; you can redistribute it and/or modify
  14. * it under the terms of the GNU General Public License as published by
  15. * the Free Software Foundation; either version 2 of the License, or
  16. * (at your option) any later version.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU General Public License
  24. * along with this program; if not, see the file COPYING, or write
  25. * to the Free Software Foundation, Inc.,
  26. * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  27. */
  28. #ifndef _PCA9564_H
  29. #define _PCA9564_H
  30. /* Clock speeds for the bus */
  31. #define PCA_CON_330kHz 0x00
  32. #define PCA_CON_288kHz 0x01
  33. #define PCA_CON_217kHz 0x02
  34. #define PCA_CON_146kHz 0x03
  35. #define PCA_CON_88kHz 0x04
  36. #define PCA_CON_59kHz 0x05
  37. #define PCA_CON_44kHz 0x06
  38. #define PCA_CON_36kHz 0x07
  39. #define PCA_CON_AA 0x80 /* Assert Acknowledge */
  40. #define PCA_CON_ENSIO 0x40 /* Enable */
  41. #define PCA_CON_STA 0x20 /* Start */
  42. #define PCA_CON_STO 0x10 /* Stop */
  43. #define PCA_CON_SI 0x08 /* Serial Interrupt */
  44. #define PCA_CON_CR 0x07 /* Clock Rate (MASK) */
  45. #endif