fsdfsdf
Fork of BSP_DISCO_F469NI by
Components/Common/lcd.h@1:9e4eb47092ed, 2016-05-30 (annotated)
- Committer:
- bcostm
- Date:
- Mon May 30 11:09:05 2016 +0000
- Revision:
- 1:9e4eb47092ed
- Parent:
- 0:0002c86c2220
Fix issue with LCD in Portrait mode
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bcostm | 0:0002c86c2220 | 1 | /** |
bcostm | 0:0002c86c2220 | 2 | ****************************************************************************** |
bcostm | 0:0002c86c2220 | 3 | * @file lcd.h |
bcostm | 0:0002c86c2220 | 4 | * @author MCD Application Team |
bcostm | 0:0002c86c2220 | 5 | * @version V4.0.1 |
bcostm | 0:0002c86c2220 | 6 | * @date 21-July-2015 |
bcostm | 0:0002c86c2220 | 7 | * @brief This file contains all the functions prototypes for the LCD driver. |
bcostm | 0:0002c86c2220 | 8 | ****************************************************************************** |
bcostm | 0:0002c86c2220 | 9 | * @attention |
bcostm | 0:0002c86c2220 | 10 | * |
bcostm | 0:0002c86c2220 | 11 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
bcostm | 0:0002c86c2220 | 12 | * |
bcostm | 0:0002c86c2220 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
bcostm | 0:0002c86c2220 | 14 | * are permitted provided that the following conditions are met: |
bcostm | 0:0002c86c2220 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
bcostm | 0:0002c86c2220 | 16 | * this list of conditions and the following disclaimer. |
bcostm | 0:0002c86c2220 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
bcostm | 0:0002c86c2220 | 18 | * this list of conditions and the following disclaimer in the documentation |
bcostm | 0:0002c86c2220 | 19 | * and/or other materials provided with the distribution. |
bcostm | 0:0002c86c2220 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
bcostm | 0:0002c86c2220 | 21 | * may be used to endorse or promote products derived from this software |
bcostm | 0:0002c86c2220 | 22 | * without specific prior written permission. |
bcostm | 0:0002c86c2220 | 23 | * |
bcostm | 0:0002c86c2220 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
bcostm | 0:0002c86c2220 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
bcostm | 0:0002c86c2220 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
bcostm | 0:0002c86c2220 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
bcostm | 0:0002c86c2220 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
bcostm | 0:0002c86c2220 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
bcostm | 0:0002c86c2220 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
bcostm | 0:0002c86c2220 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
bcostm | 0:0002c86c2220 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
bcostm | 0:0002c86c2220 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
bcostm | 0:0002c86c2220 | 34 | * |
bcostm | 0:0002c86c2220 | 35 | ****************************************************************************** |
bcostm | 0:0002c86c2220 | 36 | */ |
bcostm | 0:0002c86c2220 | 37 | |
bcostm | 0:0002c86c2220 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
bcostm | 0:0002c86c2220 | 39 | #ifndef __LCD_H |
bcostm | 0:0002c86c2220 | 40 | #define __LCD_H |
bcostm | 0:0002c86c2220 | 41 | |
bcostm | 0:0002c86c2220 | 42 | #ifdef __cplusplus |
bcostm | 0:0002c86c2220 | 43 | extern "C" { |
bcostm | 0:0002c86c2220 | 44 | #endif |
bcostm | 0:0002c86c2220 | 45 | |
bcostm | 0:0002c86c2220 | 46 | /* Includes ------------------------------------------------------------------*/ |
bcostm | 0:0002c86c2220 | 47 | #include <stdint.h> |
bcostm | 0:0002c86c2220 | 48 | |
bcostm | 0:0002c86c2220 | 49 | /** @addtogroup BSP |
bcostm | 0:0002c86c2220 | 50 | * @{ |
bcostm | 0:0002c86c2220 | 51 | */ |
bcostm | 0:0002c86c2220 | 52 | |
bcostm | 0:0002c86c2220 | 53 | /** @addtogroup Components |
bcostm | 0:0002c86c2220 | 54 | * @{ |
bcostm | 0:0002c86c2220 | 55 | */ |
bcostm | 0:0002c86c2220 | 56 | |
bcostm | 0:0002c86c2220 | 57 | /** @addtogroup LCD |
bcostm | 0:0002c86c2220 | 58 | * @{ |
bcostm | 0:0002c86c2220 | 59 | */ |
bcostm | 0:0002c86c2220 | 60 | |
bcostm | 0:0002c86c2220 | 61 | /** @defgroup LCD_Exported_Types |
bcostm | 0:0002c86c2220 | 62 | * @{ |
bcostm | 0:0002c86c2220 | 63 | */ |
bcostm | 0:0002c86c2220 | 64 | |
bcostm | 0:0002c86c2220 | 65 | /** @defgroup LCD_Driver_structure LCD Driver structure |
bcostm | 0:0002c86c2220 | 66 | * @{ |
bcostm | 0:0002c86c2220 | 67 | */ |
bcostm | 0:0002c86c2220 | 68 | typedef struct |
bcostm | 0:0002c86c2220 | 69 | { |
bcostm | 0:0002c86c2220 | 70 | void (*Init)(void); |
bcostm | 0:0002c86c2220 | 71 | uint16_t (*ReadID)(void); |
bcostm | 0:0002c86c2220 | 72 | void (*DisplayOn)(void); |
bcostm | 0:0002c86c2220 | 73 | void (*DisplayOff)(void); |
bcostm | 0:0002c86c2220 | 74 | void (*SetCursor)(uint16_t, uint16_t); |
bcostm | 0:0002c86c2220 | 75 | void (*WritePixel)(uint16_t, uint16_t, uint16_t); |
bcostm | 0:0002c86c2220 | 76 | uint16_t (*ReadPixel)(uint16_t, uint16_t); |
bcostm | 0:0002c86c2220 | 77 | |
bcostm | 0:0002c86c2220 | 78 | /* Optimized operation */ |
bcostm | 0:0002c86c2220 | 79 | void (*SetDisplayWindow)(uint16_t, uint16_t, uint16_t, uint16_t); |
bcostm | 0:0002c86c2220 | 80 | void (*DrawHLine)(uint16_t, uint16_t, uint16_t, uint16_t); |
bcostm | 0:0002c86c2220 | 81 | void (*DrawVLine)(uint16_t, uint16_t, uint16_t, uint16_t); |
bcostm | 0:0002c86c2220 | 82 | |
bcostm | 0:0002c86c2220 | 83 | uint16_t (*GetLcdPixelWidth)(void); |
bcostm | 0:0002c86c2220 | 84 | uint16_t (*GetLcdPixelHeight)(void); |
bcostm | 0:0002c86c2220 | 85 | void (*DrawBitmap)(uint16_t, uint16_t, uint8_t*); |
bcostm | 0:0002c86c2220 | 86 | void (*DrawRGBImage)(uint16_t, uint16_t, uint16_t, uint16_t, uint8_t*); |
bcostm | 0:0002c86c2220 | 87 | }LCD_DrvTypeDef; |
bcostm | 0:0002c86c2220 | 88 | /** |
bcostm | 0:0002c86c2220 | 89 | * @} |
bcostm | 0:0002c86c2220 | 90 | */ |
bcostm | 0:0002c86c2220 | 91 | |
bcostm | 0:0002c86c2220 | 92 | /** |
bcostm | 0:0002c86c2220 | 93 | * @} |
bcostm | 0:0002c86c2220 | 94 | */ |
bcostm | 0:0002c86c2220 | 95 | |
bcostm | 0:0002c86c2220 | 96 | /** |
bcostm | 0:0002c86c2220 | 97 | * @} |
bcostm | 0:0002c86c2220 | 98 | */ |
bcostm | 0:0002c86c2220 | 99 | |
bcostm | 0:0002c86c2220 | 100 | /** |
bcostm | 0:0002c86c2220 | 101 | * @} |
bcostm | 0:0002c86c2220 | 102 | */ |
bcostm | 0:0002c86c2220 | 103 | |
bcostm | 0:0002c86c2220 | 104 | /** |
bcostm | 0:0002c86c2220 | 105 | * @} |
bcostm | 0:0002c86c2220 | 106 | */ |
bcostm | 0:0002c86c2220 | 107 | |
bcostm | 0:0002c86c2220 | 108 | #ifdef __cplusplus |
bcostm | 0:0002c86c2220 | 109 | } |
bcostm | 0:0002c86c2220 | 110 | #endif |
bcostm | 0:0002c86c2220 | 111 | |
bcostm | 0:0002c86c2220 | 112 | #endif /* __LCD_H */ |
bcostm | 0:0002c86c2220 | 113 | |
bcostm | 0:0002c86c2220 | 114 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |