BSP driver for DISCO_L496AG
Dependents: DISCO_L496AG-LCD-prova_1 DISCO_L496AG-LCD-prova_2 DISCO_L496AG-LCD-demo DISCO_L496AG-SRAM-demo
Drivers/BSP/Components/Common/lcd.h@2:106c7b82e064, 2019-11-20 (annotated)
- Committer:
- Jerome Coutant
- Date:
- Wed Nov 20 16:48:24 2019 +0100
- Revision:
- 2:106c7b82e064
- Parent:
- 0:d83f1c8ca282
Update BSP files with CubeL4 V1.14.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bcostm | 0:d83f1c8ca282 | 1 | /** |
bcostm | 0:d83f1c8ca282 | 2 | ****************************************************************************** |
bcostm | 0:d83f1c8ca282 | 3 | * @file lcd.h |
bcostm | 0:d83f1c8ca282 | 4 | * @author MCD Application Team |
bcostm | 0:d83f1c8ca282 | 5 | * @brief This file contains all the functions prototypes for the LCD driver. |
bcostm | 0:d83f1c8ca282 | 6 | ****************************************************************************** |
bcostm | 0:d83f1c8ca282 | 7 | * @attention |
bcostm | 0:d83f1c8ca282 | 8 | * |
Jerome Coutant
2:106c7b82e064
|
9
|
* <h2><center>© Copyright (c) 2017 STMicroelectronics.
|
|
Jerome Coutant
2:106c7b82e064
|
10
|
* All rights reserved.</center></h2>
|
|
bcostm | 0:d83f1c8ca282 | 11 | * |
Jerome Coutant
2:106c7b82e064
|
12
|
* This software component is licensed by ST under BSD 3-Clause license,
|
|
Jerome Coutant
2:106c7b82e064
|
13
|
* the "License"; You may not use this file except in compliance with the
|
|
Jerome Coutant
2:106c7b82e064
|
14
|
* License. You may obtain a copy of the License at:
|
|
Jerome Coutant
2:106c7b82e064
|
15
|
* opensource.org/licenses/BSD-3-Clause
|
|
bcostm | 0:d83f1c8ca282 | 16 | * |
bcostm | 0:d83f1c8ca282 | 17 | ****************************************************************************** |
bcostm | 0:d83f1c8ca282 | 18 | */ |
bcostm | 0:d83f1c8ca282 | 19 | |
bcostm | 0:d83f1c8ca282 | 20 | /* Define to prevent recursive inclusion -------------------------------------*/ |
bcostm | 0:d83f1c8ca282 | 21 | #ifndef __LCD_H |
bcostm | 0:d83f1c8ca282 | 22 | #define __LCD_H |
bcostm | 0:d83f1c8ca282 | 23 | |
bcostm | 0:d83f1c8ca282 | 24 | #ifdef __cplusplus |
bcostm | 0:d83f1c8ca282 | 25 | extern "C" { |
bcostm | 0:d83f1c8ca282 | 26 | #endif |
bcostm | 0:d83f1c8ca282 | 27 | |
bcostm | 0:d83f1c8ca282 | 28 | /* Includes ------------------------------------------------------------------*/ |
bcostm | 0:d83f1c8ca282 | 29 | #include <stdint.h> |
bcostm | 0:d83f1c8ca282 | 30 | |
bcostm | 0:d83f1c8ca282 | 31 | /** @addtogroup BSP |
bcostm | 0:d83f1c8ca282 | 32 | * @{ |
bcostm | 0:d83f1c8ca282 | 33 | */ |
bcostm | 0:d83f1c8ca282 | 34 | |
bcostm | 0:d83f1c8ca282 | 35 | /** @addtogroup Components |
bcostm | 0:d83f1c8ca282 | 36 | * @{ |
bcostm | 0:d83f1c8ca282 | 37 | */ |
bcostm | 0:d83f1c8ca282 | 38 | |
bcostm | 0:d83f1c8ca282 | 39 | /** @addtogroup LCD |
bcostm | 0:d83f1c8ca282 | 40 | * @{ |
bcostm | 0:d83f1c8ca282 | 41 | */ |
bcostm | 0:d83f1c8ca282 | 42 | |
bcostm | 0:d83f1c8ca282 | 43 | /** @defgroup LCD_Exported_Types |
bcostm | 0:d83f1c8ca282 | 44 | * @{ |
bcostm | 0:d83f1c8ca282 | 45 | */ |
bcostm | 0:d83f1c8ca282 | 46 | |
bcostm | 0:d83f1c8ca282 | 47 | /** @defgroup LCD_Driver_structure LCD Driver structure |
bcostm | 0:d83f1c8ca282 | 48 | * @{ |
bcostm | 0:d83f1c8ca282 | 49 | */ |
bcostm | 0:d83f1c8ca282 | 50 | typedef struct |
bcostm | 0:d83f1c8ca282 | 51 | { |
bcostm | 0:d83f1c8ca282 | 52 | void (*Init)(void); |
bcostm | 0:d83f1c8ca282 | 53 | uint16_t (*ReadID)(void); |
bcostm | 0:d83f1c8ca282 | 54 | void (*DisplayOn)(void); |
bcostm | 0:d83f1c8ca282 | 55 | void (*DisplayOff)(void); |
bcostm | 0:d83f1c8ca282 | 56 | void (*SetCursor)(uint16_t, uint16_t); |
bcostm | 0:d83f1c8ca282 | 57 | void (*WritePixel)(uint16_t, uint16_t, uint16_t); |
bcostm | 0:d83f1c8ca282 | 58 | uint16_t (*ReadPixel)(uint16_t, uint16_t); |
bcostm | 0:d83f1c8ca282 | 59 | |
bcostm | 0:d83f1c8ca282 | 60 | /* Optimized operation */ |
bcostm | 0:d83f1c8ca282 | 61 | void (*SetDisplayWindow)(uint16_t, uint16_t, uint16_t, uint16_t); |
bcostm | 0:d83f1c8ca282 | 62 | void (*DrawHLine)(uint16_t, uint16_t, uint16_t, uint16_t); |
bcostm | 0:d83f1c8ca282 | 63 | void (*DrawVLine)(uint16_t, uint16_t, uint16_t, uint16_t); |
bcostm | 0:d83f1c8ca282 | 64 | |
bcostm | 0:d83f1c8ca282 | 65 | uint16_t (*GetLcdPixelWidth)(void); |
bcostm | 0:d83f1c8ca282 | 66 | uint16_t (*GetLcdPixelHeight)(void); |
bcostm | 0:d83f1c8ca282 | 67 | void (*DrawBitmap)(uint16_t, uint16_t, uint8_t*); |
bcostm | 0:d83f1c8ca282 | 68 | void (*DrawRGBImage)(uint16_t, uint16_t, uint16_t, uint16_t, uint8_t*); |
bcostm | 0:d83f1c8ca282 | 69 | }LCD_DrvTypeDef; |
bcostm | 0:d83f1c8ca282 | 70 | /** |
bcostm | 0:d83f1c8ca282 | 71 | * @} |
bcostm | 0:d83f1c8ca282 | 72 | */ |
bcostm | 0:d83f1c8ca282 | 73 | |
bcostm | 0:d83f1c8ca282 | 74 | /** |
bcostm | 0:d83f1c8ca282 | 75 | * @} |
bcostm | 0:d83f1c8ca282 | 76 | */ |
bcostm | 0:d83f1c8ca282 | 77 | |
bcostm | 0:d83f1c8ca282 | 78 | /** |
bcostm | 0:d83f1c8ca282 | 79 | * @} |
bcostm | 0:d83f1c8ca282 | 80 | */ |
bcostm | 0:d83f1c8ca282 | 81 | |
bcostm | 0:d83f1c8ca282 | 82 | /** |
bcostm | 0:d83f1c8ca282 | 83 | * @} |
bcostm | 0:d83f1c8ca282 | 84 | */ |
bcostm | 0:d83f1c8ca282 | 85 | |
bcostm | 0:d83f1c8ca282 | 86 | /** |
bcostm | 0:d83f1c8ca282 | 87 | * @} |
bcostm | 0:d83f1c8ca282 | 88 | */ |
bcostm | 0:d83f1c8ca282 | 89 | |
bcostm | 0:d83f1c8ca282 | 90 | #ifdef __cplusplus |
bcostm | 0:d83f1c8ca282 | 91 | } |
bcostm | 0:d83f1c8ca282 | 92 | #endif |
bcostm | 0:d83f1c8ca282 | 93 | |
bcostm | 0:d83f1c8ca282 | 94 | #endif /* __LCD_H */ |
bcostm | 0:d83f1c8ca282 | 95 | |
bcostm | 0:d83f1c8ca282 | 96 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |