Epson S1D13708 Camera Accessories User Manual


 
Epson Research and Development Page 63
Vancouver Design Center
Programming Notes and Examples S1D13708
Issue Date: 01/11/20 X39A-G-003-01
ADVANCE
D
IN
F
ORMATION
Subje
ct to C
ha
nge
9 Hardware Abstraction Layer
9.1 Introduction
The S1D13708 Hardware Abstraction Layer (HAL) is a collection of routines intended to
simplify the programming for the S5U13708B00B evaluation board. Programmers can use
the HAL to assist in rapid software prototyping for the S5U13708B00B evaluation board.
The HAL routines are divided into discrete functional blocks. The functions for startup and
clock control offer specific support for the S5U13708B00B evaluation board, while other
routines demonstrate memory and register access techniques. For a complete list, see Table
9-1:, “HAL Library API” .
9.2 API for the HAL Library
The following table lists the functions provided by the S1D13708 HAL library.
Table 9-1: HAL Library API
Function Description
Startup
halAcquireController
This routine loads the driver required to access the S1D13708, locates the and returns the address of
the controller.
halInitController
Initializes the controller for use. This includes setting the programmable clock and initializing registers as
well as setting the lookup table and clearing video memory.
Memory Access
halReadDisplay8 Reads one byte from display memory
halReadDisplay16 Reads one word from display memory
halReadDisplay32 Reads one double word from display memory
halWriteDisplay8 Writes one byte to display memory
halWriteDisplay16 Writes on word to display memory
halWriteDisplay32 Writes on double word to display memory
Register Access
halReadReg8 Reads one byte from a control register
halReadReg16 Reads one word from a control register
halReadReg32 Reads one dword from a control register
halWriteReg8 Writes one byte to a control register
halWriteReg16 Writes one word to a control register
halWriteReg32 Writes one dword to a control registers
Clock Support
halSetClock Programs the ICD2061A Programmable Clock Generator.
halGetClock Returns the frequency of the requested ICD2061A clock
Miscellaneous
halGetVersionInfo Returns a standardized startup banner message
halGetLastError Returns the numerical value of the last error and optionally an ASCII string describing the error
halInitLUT This routine sets the LUT to uniform values for color/mono panels at all color depths