Contains the BSP driver for the B-L475E-IOT01 board.

Dependents:   mbed-os-example-ble-Thermometer DISCO_L475VG_IOT01-Telegram-BOT DISCO_L475VG_IOT01-sche_cheveux DISCO_L475VG_IOT01-QSPI_FLASH_FILE_SYSTEM ... more

https://os.mbed.com/platforms/ST-Discovery-L475E-IOT01A/

Committer:
bcostm
Date:
Fri Jan 19 14:27:51 2018 +0100
Revision:
6:9dfa42666f03
Parent:
2:87208512ab66
Child:
7:bfe8272ced90
Update BSP files with STM32Cube L4 V1.11.0

Who changed what in which revision?

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