dmdif_ssd2119_spi.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*************************************************************************//**
  2. * @file dmdif_ssd2119_spi.h
  3. * @brief Dot matrix display SSD2119 interface using EBI
  4. * @author Energy Micro AS
  5. ******************************************************************************
  6. * @section License
  7. * <b>(C) Copyright 2012 Energy Micro AS, http://www.energymicro.com</b>
  8. ******************************************************************************
  9. *
  10. * Permission is granted to anyone to use this software for any purpose,
  11. * including commercial applications, and to alter it and redistribute it
  12. * freely, subject to the following restrictions:
  13. *
  14. * 1. The origin of this software must not be misrepresented; you must not
  15. * claim that you wrote the original software.
  16. * 2. Altered source versions must be plainly marked as such, and must not be
  17. * misrepresented as being the original software.
  18. * 3. This notice may not be removed or altered from any source distribution.
  19. * 4. The source and compiled code may only be used on Energy Micro "EFM32"
  20. * microcontrollers and "EFR4" radios.
  21. *
  22. * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Energy Micro AS has no
  23. * obligation to support this Software. Energy Micro AS is providing the
  24. * Software "AS IS", with no express or implied warranties of any kind,
  25. * including, but not limited to, any implied warranties of merchantability
  26. * or fitness for any particular purpose or warranties against infringement
  27. * of any proprietary rights of a third party.
  28. *
  29. * Energy Micro AS will not be liable for any consequential, incidental, or
  30. * special damages, or any other relief, or for any claim by any third party,
  31. * arising from your use of this Software.
  32. *
  33. *****************************************************************************/
  34. #ifndef __DMDIF_SSD2119_SPI_H_
  35. #define __DMDIF_SSD2119_SPI_H_
  36. #include <stdint.h>
  37. /* Module Prototypes */
  38. EMSTATUS DMDIF_init(uint32_t cmdRegAddr, uint32_t dataRegAddr);
  39. EMSTATUS DMDIF_writeReg(uint8_t reg, uint16_t data);
  40. uint16_t DMDIF_readDeviceCode(void);
  41. EMSTATUS DMDIF_prepareDataAccess(void);
  42. EMSTATUS DMDIF_writeData(uint32_t data);
  43. uint32_t DMDIF_readData(void);
  44. #endif