epd.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /**
  2. ******************************************************************************
  3. * @file epd.h
  4. * @author MCD Application Team
  5. * @brief This file contains all the functions prototypes for the
  6. * EPD (E Paper Display) driver.
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
  11. * All rights reserved.</center></h2>
  12. *
  13. * This software component is licensed by ST under BSD 3-Clause license,
  14. * the "License"; You may not use this file except in compliance with the
  15. * License. You may obtain a copy of the License at:
  16. * opensource.org/licenses/BSD-3-Clause
  17. *
  18. ******************************************************************************
  19. */
  20. /* Define to prevent recursive inclusion -------------------------------------*/
  21. #ifndef __EPD_H
  22. #define __EPD_H
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. /* Includes ------------------------------------------------------------------*/
  27. #include <stdint.h>
  28. /** @addtogroup BSP
  29. * @{
  30. */
  31. /** @addtogroup Components
  32. * @{
  33. */
  34. /** @addtogroup Common
  35. * @{
  36. */
  37. /** @addtogroup EPD
  38. * @{
  39. */
  40. /** @defgroup EPD_Exported_Types
  41. * @{
  42. */
  43. /** @defgroup EPD_Driver_structure E Paper Display Driver structure
  44. * @{
  45. */
  46. typedef struct
  47. {
  48. void (*Init)(void);
  49. void (*WritePixel)(uint8_t);
  50. /* Optimized operation */
  51. void (*SetDisplayWindow)(uint16_t, uint16_t, uint16_t, uint16_t);
  52. void (*RefreshDisplay)(void);
  53. void (*CloseChargePump)(void);
  54. uint16_t (*GetEpdPixelWidth)(void);
  55. uint16_t (*GetEpdPixelHeight)(void);
  56. void (*DrawImage)(uint16_t, uint16_t, uint16_t, uint16_t, uint8_t*);
  57. }
  58. EPD_DrvTypeDef;
  59. /**
  60. * @}
  61. */
  62. /**
  63. * @}
  64. */
  65. /**
  66. * @}
  67. */
  68. /**
  69. * @}
  70. */
  71. /**
  72. * @}
  73. */
  74. #ifdef __cplusplus
  75. }
  76. #endif
  77. #endif /* EPD_H */
  78. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/