lcd.h 2.2 KB

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