SAM3S8/SD8 Software Package: libraries/sam-gui/source/disp/backends/ILI9325/backend_ILI9325.c File Reference

SAM3S8/SD8 Software Package 1.2
Defines | Typedefs | Functions | Variables

# backend_ILI9325.c File Reference

`#include "board.h"`
`#include "libsam_gui.h"`
`#include <stdio.h>`

Go to the source code of this file.

## Defines

#define | ILI9325_IR (*((vByte *)(BOARD_LCD_BASE)))
#define | ILI9325_SR (*((vByte *)(BOARD_LCD_BASE)))
#define | ILI9325_D (*((vByte *)((uint32_t)(BOARD_LCD_BASE) + BOARD_LCD_RS)))
#define | ILI9325_WIDTH 240
#define | ILI9325_HEIGTH 320
#define | ILI9325_RGB_MODE
#define | ILI9325_DEVICE_CODE 0x9325
#define | TS_INS_START_OSC 0x00
#define | TS_INS_DRIV_OUT_CTRL 0x01
#define | TS_INS_DRIV_WAV_CTRL 0x02
#define | TS_INS_ENTRY_MOD 0x03
#define | TS_INS_RESIZE_CTRL 0x04
#define | TS_INS_DISP_CTRL1 0x07
#define | TS_INS_DISP_CTRL2 0x08
#define | TS_INS_DISP_CTRL3 0x09
#define | TS_INS_DISP_CTRL4 0x0A
#define | TS_INS_RGB_DISP_IF_CTRL1 0x0C
#define | TS_INS_FRM_MARKER_POS 0x0D
#define | TS_INS_RGB_DISP_IF_CTRL2 0x0F
#define | TS_INS_POW_CTRL1 0x10
#define | TS_INS_POW_CTRL2 0x11
#define | TS_INS_POW_CTRL3 0x12
#define | TS_INS_POW_CTRL4 0x13
#define | TS_INS_GRAM_HOR_AD 0x20
#define | TS_INS_GRAM_VER_AD 0x21
#define | TS_INS_RW_GRAM 0x22
#define | TS_INS_POW_CTRL7 0x29
#define | TS_INS_FRM_RATE_COL_CTRL 0x2B
#define | TS_INS_GAMMA_CTRL1 0x30
#define | TS_INS_GAMMA_CTRL2 0x31
#define | TS_INS_GAMMA_CTRL3 0x32
#define | TS_INS_GAMMA_CTRL4 0x35
#define | TS_INS_GAMMA_CTRL5 0x36
#define | TS_INS_GAMMA_CTRL6 0x37
#define | TS_INS_GAMMA_CTRL7 0x38
#define | TS_INS_GAMMA_CTRL8 0x39
#define | TS_INS_GAMMA_CTRL9 0x3C
#define | TS_INS_GAMMA_CTRL10 0x3D
#define | TS_INS_HOR_START_AD 0x50
#define | TS_INS_HOR_END_AD 0x51
#define | TS_INS_VER_START_AD 0x52
#define | TS_INS_VER_END_AD 0x53
#define | TS_INS_GATE_SCAN_CTRL1 0x60
#define | TS_INS_GATE_SCAN_CTRL2 0x61
#define | TS_INS_GATE_SCAN_CTRL3 0x6A
#define | TS_INS_PART_IMG1_DISP_POS 0x80
#define | TS_INS_PART_IMG1_START_AD 0x81
#define | TS_INS_PART_IMG1_END_AD 0x82
#define | TS_INS_PART_IMG2_DISP_POS 0x83
#define | TS_INS_PART_IMG2_START_AD 0x84
#define | TS_INS_PART_IMG2_END_AD 0x85
#define | TS_INS_PANEL_IF_CTRL1 0x90
#define | TS_INS_PANEL_IF_CTRL2 0x92
#define | TS_INS_PANEL_IF_CTRL3 0x93
#define | TS_INS_PANEL_IF_CTRL4 0x95
#define | TS_INS_PANEL_IF_CTRL5 0x97
#define | TS_INS_PANEL_IF_CTRL6 0x98
#define | TS_INS_PANEL_IF_OTP_PC 0xA1
#define | TS_INS_PANEL_IF_OTP_STATUS 0xA2
#define | TS_INS_PANEL_IF_OTP_KEY 0xA5
#define | TS_ORN_PORTRAIT
#define | TS_SIZE_X 240
#define | TS_SIZE_Y 320
#define | TS_VAL_ENTRY_MOD 0x0030
#define | TS_INS_GRAM_ADX TS_INS_GRAM_HOR_AD
#define | TS_INS_GRAM_ADY TS_INS_GRAM_VER_AD
#define | TS_INS_START_ADX TS_INS_HOR_START_AD
#define | TS_INS_END_ADX TS_INS_HOR_END_AD
#define | TS_INS_START_ADY TS_INS_VER_START_AD
#define | TS_INS_END_ADY TS_INS_VER_END_AD

## Typedefs

typedef volatile uint8_t | vByte

## Functions

struct _SBMPHeader | __attribute__ ((packed))
| Driver structure for an CCID device.

## Variables

uint16_t | wType
uint32_t | dwFileSize
uint16_t | wReserved1
uint16_t | wReserved2
uint32_t | dwOffset
uint32_t | dwHeaderSize
uint32_t | dwWidth
uint32_t | dwHeight
uint16_t | wPlanes
uint16_t | wBits
uint32_t | dwCompression
uint32_t | dwImageSize
uint32_t | dwHResolution
uint32_t | dwVResolution
uint32_t | dwColours
uint32_t | dwImportantcolours
SDISPBackend | sDISP_Backend_ILI9325

## Detailed Description

## Purpose

Implementation of ILI9325 driver.

## Usage

The ILI9325 LCD Controller can be accessed through the SDISPBackend DISP Backend interface

Definition in file backend_ILI9325.c.

## Define Documentation

#define ILI9325_D (*((vByte *)((uint32_t)(BOARD_LCD_BASE) + BOARD_LCD_RS)))

LCD data address

Definition at line 94 of file backend_ILI9325.c.

#define ILI9325_IR (*((vByte *)(BOARD_LCD_BASE)))

LCD index register address

Definition at line 90 of file backend_ILI9325.c.

#define ILI9325_SR (*((vByte *)(BOARD_LCD_BASE)))

LCD status register address

Definition at line 92 of file backend_ILI9325.c.

## Variable Documentation

SDISPBackend sDISP_Backend_ILI9325

Initial value:

    {
        .sData=
        {
            .dwID=DISP_BACKEND_ILI9325,
        },

        .Reset=_DBE_ILI9325_Reset,
        .Initialize=_DBE_ILI9325_Initialize,
        .GetPixel=_DBE_ILI9325_GetPixel,
        .DrawPixel=_DBE_ILI9325_DrawPixel,
        .DrawLine=_DBE_ILI9325_DrawLine,
        .DrawCircle=_DBE_ILI9325_DrawCircle,
        .DrawFilledCircle=_DBE_ILI9325_DrawFilledCircle,
        .DrawRectangle=_DBE_ILI9325_DrawRectangle,
        .DrawFilledRectangle=_DBE_ILI9325_DrawFilledRectangle,
        .DrawBitmap=_DBE_ILI9325_DrawBitmap,
        .DrawText=_DBE_ILI9325_DrawText,
        .Fill=NULL,
        .IOCtl=_DBE_ILI9325_IOCtl
    }

Definition at line 1439 of file backend_ILI9325.c.

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines