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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers lcd.h Source File

lcd.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    lcd.h
00004   * @author  MCD Application Team
00005   * @brief   This file contains all the functions prototypes for the LCD driver.   
00006   ******************************************************************************
00007   * @attention
00008   *
00009   * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
00010   * All rights reserved.</center></h2>
00011   *
00012   * This software component is licensed by ST under BSD 3-Clause license,
00013   * the "License"; You may not use this file except in compliance with the
00014   * License. You may obtain a copy of the License at:
00015   *                        opensource.org/licenses/BSD-3-Clause
00016   *
00017   ******************************************************************************
00018   */ 
00019 
00020 /* Define to prevent recursive inclusion -------------------------------------*/
00021 #ifndef __LCD_H
00022 #define __LCD_H
00023 
00024 #ifdef __cplusplus
00025  extern "C" {
00026 #endif 
00027 
00028 /* Includes ------------------------------------------------------------------*/
00029 #include <stdint.h>
00030    
00031 /** @addtogroup BSP
00032   * @{
00033   */
00034 
00035 /** @addtogroup Components
00036   * @{
00037   */
00038 
00039 /** @addtogroup LCD
00040   * @{
00041   */
00042  
00043 /** @defgroup LCD_Exported_Types
00044   * @{
00045   */
00046 
00047 /** @defgroup LCD_Driver_structure  LCD Driver structure
00048   * @{
00049   */
00050 typedef struct
00051 {
00052   void     (*Init)(void);
00053   uint16_t (*ReadID)(void);
00054   void     (*DisplayOn)(void);
00055   void     (*DisplayOff)(void);
00056   void     (*SetCursor)(uint16_t, uint16_t);
00057   void     (*WritePixel)(uint16_t, uint16_t, uint16_t);
00058   uint16_t (*ReadPixel)(uint16_t, uint16_t);
00059   
00060    /* Optimized operation */
00061   void     (*SetDisplayWindow)(uint16_t, uint16_t, uint16_t, uint16_t);
00062   void     (*DrawHLine)(uint16_t, uint16_t, uint16_t, uint16_t);
00063   void     (*DrawVLine)(uint16_t, uint16_t, uint16_t, uint16_t);
00064   
00065   uint16_t (*GetLcdPixelWidth)(void);
00066   uint16_t (*GetLcdPixelHeight)(void);
00067   void     (*DrawBitmap)(uint16_t, uint16_t, uint8_t*);
00068   void     (*DrawRGBImage)(uint16_t, uint16_t, uint16_t, uint16_t, uint8_t*);
00069 }LCD_DrvTypeDef;    
00070 /**
00071   * @}
00072   */
00073 
00074 /**
00075   * @}
00076   */
00077 
00078 /**
00079   * @}
00080   */
00081 
00082 /**
00083   * @}
00084   */
00085 
00086 /**
00087   * @}
00088   */
00089 
00090 #ifdef __cplusplus
00091 }
00092 #endif
00093 
00094 #endif /* __LCD_H */
00095 
00096 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/