STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Macros | Functions
otm8009a.h File Reference

This file contains all the constants parameters for the OTM8009A which is the LCD Driver for KoD KM-040TMP-02-0621 (WVGA) DSI LCD Display. More...

#include <stdint.h>

Go to the source code of this file.

Macros

#define OTM8009A_ORIENTATION_PORTRAIT   ((uint32_t)0x00) /* Portrait orientation choice of LCD screen */
 LCD_OrientationTypeDef Possible values of Display Orientation. More...
 
#define OTM8009A_ORIENTATION_LANDSCAPE   ((uint32_t)0x01) /* Landscape orientation choice of LCD screen */
 
#define OTM8009A_FORMAT_RGB888   ((uint32_t)0x00) /* Pixel format chosen is RGB888 : 24 bpp */
 Possible values of pixel data format (ie color coding) transmitted on DSI Data lane in DSI packets. More...
 
#define OTM8009A_FORMAT_RBG565   ((uint32_t)0x02) /* Pixel format chosen is RGB565 : 16 bpp */
 
#define OTM8009A_480X800_WIDTH   ((uint16_t)480) /* LCD PIXEL WIDTH */
 otm8009a_480x800 Size More...
 
#define OTM8009A_480X800_HEIGHT   ((uint16_t)800) /* LCD PIXEL HEIGHT */
 
#define OTM8009A_800X480_WIDTH   ((uint16_t)800) /* LCD PIXEL WIDTH */
 
#define OTM8009A_800X480_HEIGHT   ((uint16_t)480) /* LCD PIXEL HEIGHT */
 
#define OTM8009A_480X800_HSYNC   ((uint16_t)120) /* Horizontal synchronization */
 OTM8009A_480X800 Timing parameters for Portrait orientation mode. More...
 
#define OTM8009A_480X800_HBP   ((uint16_t)120) /* Horizontal back porch */
 
#define OTM8009A_480X800_HFP   ((uint16_t)120) /* Horizontal front porch */
 
#define OTM8009A_480X800_VSYNC   ((uint16_t)12) /* Vertical synchronization */
 
#define OTM8009A_480X800_VBP   ((uint16_t)12) /* Vertical back porch */
 
#define OTM8009A_480X800_VFP   ((uint16_t)12) /* Vertical front porch */
 
#define OTM8009A_800X480_HSYNC   OTM8009A_480X800_HSYNC /* Horizontal synchronization */
 OTM8009A_800X480 Timing parameters for Landscape orientation mode Same values as for Portrait mode in fact. More...
 
#define OTM8009A_800X480_HBP   OTM8009A_480X800_HBP /* Horizontal back porch */
 
#define OTM8009A_800X480_HFP   OTM8009A_480X800_HFP /* Horizontal front porch */
 
#define OTM8009A_800X480_VSYNC   OTM8009A_480X800_VSYNC /* Vertical synchronization */
 
#define OTM8009A_800X480_VBP   OTM8009A_480X800_VBP /* Vertical back porch */
 
#define OTM8009A_800X480_VFP   OTM8009A_480X800_VFP /* Vertical front porch */
 
#define OTM8009A_CMD_NOP   0x00 /* NOP command */
 
#define OTM8009A_CMD_SWRESET   0x01 /* Sw reset command */
 
#define OTM8009A_CMD_RDDMADCTL   0x0B /* Read Display MADCTR command : read memory display access ctrl */
 
#define OTM8009A_CMD_RDDCOLMOD   0x0C /* Read Display pixel format */
 
#define OTM8009A_CMD_SLPIN   0x10 /* Sleep In command */
 
#define OTM8009A_CMD_SLPOUT   0x11 /* Sleep Out command */
 
#define OTM8009A_CMD_PTLON   0x12 /* Partial mode On command */
 
#define OTM8009A_CMD_DISPOFF   0x28 /* Display Off command */
 
#define OTM8009A_CMD_DISPON   0x29 /* Display On command */
 
#define OTM8009A_CMD_CASET   0x2A /* Column address set command */
 
#define OTM8009A_CMD_PASET   0x2B /* Page address set command */
 
#define OTM8009A_CMD_RAMWR   0x2C /* Memory (GRAM) write command */
 
#define OTM8009A_CMD_RAMRD   0x2E /* Memory (GRAM) read command */
 
#define OTM8009A_CMD_PLTAR   0x30 /* Partial area command (4 parameters) */
 
#define OTM8009A_CMD_TEOFF   0x34 /* Tearing Effect Line Off command : command with no parameter */
 
#define OTM8009A_CMD_TEEON   0x35 /* Tearing Effect Line On command : command with 1 parameter 'TELOM' */
 
#define OTM8009A_TEEON_TELOM_VBLANKING_INFO_ONLY   0x00
 
#define OTM8009A_TEEON_TELOM_VBLANKING_AND_HBLANKING_INFO   0x01
 
#define OTM8009A_CMD_MADCTR   0x36 /* Memory Access write control command */
 
#define OTM8009A_MADCTR_MODE_PORTRAIT   0x00
 
#define OTM8009A_MADCTR_MODE_LANDSCAPE   0x60 /* MY = 0, MX = 1, MV = 1, ML = 0, RGB = 0 */
 
#define OTM8009A_CMD_IDMOFF   0x38 /* Idle mode Off command */
 
#define OTM8009A_CMD_IDMON   0x39 /* Idle mode On command */
 
#define OTM8009A_CMD_COLMOD   0x3A /* Interface Pixel format command */
 
#define OTM8009A_COLMOD_RGB565   0x55
 
#define OTM8009A_COLMOD_RGB888   0x77
 
#define OTM8009A_CMD_RAMWRC   0x3C /* Memory write continue command */
 
#define OTM8009A_CMD_RAMRDC   0x3E /* Memory read continue command */
 
#define OTM8009A_CMD_WRTESCN   0x44 /* Write Tearing Effect Scan line command */
 
#define OTM8009A_CMD_RDSCNL   0x45 /* Read Tearing Effect Scan line command */
 
#define OTM8009A_CMD_WRDISBV   0x51 /* Write Display Brightness command */
 
#define OTM8009A_CMD_WRCTRLD   0x53 /* Write CTRL Display command */
 
#define OTM8009A_CMD_WRCABC   0x55 /* Write Content Adaptive Brightness command */
 
#define OTM8009A_CMD_WRCABCMB   0x5E /* Write CABC Minimum Brightness command */
 
#define OTM8009A_480X800_FREQUENCY_DIVIDER   2 /* LCD Frequency divider */
 OTM8009A_480X800 frequency divider. More...
 

Functions

__weak void DSI_IO_WriteCmd (uint32_t NbrParams, uint8_t *pParams)
 DSI IO write short/long command. More...
 
uint8_t OTM8009A_Init (uint32_t ColorCoding, uint32_t orientation)
 Initializes the LCD KoD display part by communication in DSI mode in Video Mode with IC Display Driver OTM8009A (see IC Driver specification for more information). More...
 
void OTM8009A_IO_Delay (uint32_t Delay)
 OTM8009A delay. More...
 

Detailed Description

This file contains all the constants parameters for the OTM8009A which is the LCD Driver for KoD KM-040TMP-02-0621 (WVGA) DSI LCD Display.

Author
MCD Application Team
Version
V1.0.0
Date
03-August-2015
Attention

© COPYRIGHT(c) 2015 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file otm8009a.h.