Hardware Abstraction Layer (Hal); Introduction; Contents Of The Hal_Struct - Epson S1D13505 Technical Manual

Embedded ramdac lcd/crt controller
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center

11 Hardware Abstraction Layer (HAL)

11.1 Introduction

11.2 Contents of the HAL_STRUCT

typedef struct tagHalStruct
{
char
szIdString[16];
WORD
wDetectEndian;
WORD
wSize;
WORD
wDefaultMode;
BYTE
Regs[MAX_DISP_MODE][MAX_REG + 1];
DWORD dwClkI;
DWORD dwBusClk;
DWORD dwRegAddr;
DWORD dwDispMem;
WORD
wPanelFrameRate;
WORD
wCrtFrameRate;
WORD
wMemSpeed;
WORD
wTrc;
WORD
wTrp;
WORD
wTrac;
WORD
wHostBusWidth;
} HAL_STRUCT;
Programming Notes and Examples
Issue Date: 01/02/05
The HAL is a processor independent programming library provided by Epson. The HAL
was developed to aid the implementation of internal test programs, and provides an easy,
consistent method of programming the S1D13505 on different processor platforms. The
HAL also allows for easier porting of programs between S1D1350X products. Integral to
the HAL is an information structure (HAL_STRUCT) that contains configuration data on
clocks, display modes, and default register values. This structure combined with the utility
13505CFG.EXE allows quick customization of a program for a new target display or
environment.
Using the HAL keeps sample code simpler, although some programmers may find the HAL
functions to be limited in their scope, and may wish to program the S1D13505 without
using the HAL.
The HAL_STRUCT below is contained in the file "hal.h" and is required to use the HAL
library.
/* Input Clock Frequency (in kHz) */
/* Bus Clock Frequency (in kHz) */
/* Starting address of registers */
/* Starting address of display buffer memory */
/* Desired panel frame rate */
/* Desired CRT rate */
/* Memory speed in ns */
/* Ras to Cas Delay in ns */
/* Ras Precharge time in ns */
/* Ras Access Charge time in ns */
/* Host CPU bus width in bits */
Page 53
S1D13505
X23A-G-003-07

Advertisement

Table of Contents
loading

Table of Contents