Page 102
Epson Research and Development
Vancouver Design Center
14 Hardware Abstraction Layer (HAL)
The HAL is a processor independent programming library designed to help port applica-
tions and utilities from one S1D13x0x product to another. Epson has provided this library
as a result of developing test utilities for the S1D13x0x LCD controller products.
The HAL contains functions which are designed to be consistent between S1D13x0x
products, but as the semiconductor products evolve, so must the HAL; consequently there
are some differences between HAL functions for different S1D13x0x products.
Note
As the S1D13x0x line of products changes, the HAL may change significantly or cease
to be a useful tool. Seiko Epson reserves the right to change the functionality of the
HAL or discontinue its use if no longer required.
14.1 API for 13506HAL
This section is a description of the HAL library Application Programmers Interface (API).
Updates and revisions to the HAL may include new functions not included in the following
documentation.
Table 14-1: HAL Functions
Function
Description
Initialization
Registers the S1D13506 parameters with the HAL.
seRegisterDevice MUST be the first HAL function called by an application.
seRegisterDevice
seInitReg
Initializes the registers, LUT, and allocates memory for and assigns.
Returns HAL library version information
seGetHalVersion
seGetId
Identifies the controller by interpreting the revision code register.
Return version information on the LIBSE libraries (for non-x86 platforms)
General HAL Support:
seGetLibseVersion
seGetInstalledMemorySize
seGetAvailableMemorySize
Returns the total size of the display buffer memory.
Determines the last byte of display memory, before the Dual Panel buffer, available to an
application
seGetResolution
seGetLcdResolution
seGetCrtResolution
seGetTvResolution
Retrieve the width and height of the physical display device.
seGetBytesPerScanline
seGetLcdBytesPerScanline
seGetCrtBytesPerScanline
seGetTvBytesPerScanline
Returns the number of bytes in each scanline of the display including non-display size.
seSetSoftwareSuspend
seGetSoftwareSuspend
seCheckEndian
Sets/resets software suspend mode.
Returns the current software suspend state.
Retrieves the “endian-ness” of the host CPU platform.
Returns the SwivelView orientation of the LCD panel.
Delays the given number of seconds before returning.
seGetLcdOrientation
seDelay
S1D13506
X25B-G-003-03
Programming Notes and Examples
Issue Date: 01/02/06