Renesas H8S LCDInit, Format, Parameters, Return Values, Properties, Description, Example, none

Models: H8S H8SX

1 26
Download 26 pages 51.3 Kb
Page 17
Image 17
4.1.3LCDInit

Direct Drive LCD Design Guide

4.1.3LCDInit

Direct Driver Initialization.

Format

LCDErrorType LCDInit(void);

Parameters

none

Return Values

0 if successful, non-zero if failure.

Properties

Prototyped in file ”DirectLCD.h”

Implemented in file “DirectLCD_SBF.c” for H8S family or “DirectLCD_XBCFT.c” for H8SX family.

Description

This function is used to initialize the hardware necessary for the Direct Drive LCD to execute. This function uses the configuration macros to set up the TPU and ExDMAC peripherals to transfer data from the frame RAM to the LCD panel. After this function successfully executes the transfer of data to the panel by ExDMAC will start and interrupts will be generated on every line to service the ExDMAC.

Example

{

LCDErrorType error = LCDInit(); if (error != 0) …

}

16

Page 17
Image 17
Renesas H8SX user manual LCDInit, Format, Parameters, Return Values, Properties, Description, Example, none