
Page 56
Epson Research and Development
Vancouver Design Center
S1D13505
X23A-G-003-07
Programming Notes and Examples
Issue Date: 01/02/05
11.5 Initialization
The following section describes the HAL functions dealing with initialization of the
S1D13505. Typically a programmer will only use the calls seRegisterDevice() and
seSetInit().
int seRegisterDevice(const LPHAL_STRUC lpHalInfo, int * pDevice)
Description
: This function registers the S1D13505 device parameters with the HAL library. The
device parameters include address range, register values, desired frame rate, etc.,
and are stored in the HAL_STRUCT structure pointed to by lpHalInfo. Additionally
this routine allocates system memory as address space for accessing registers and the
display buffer.
Parameters:
lpHalInfo
- pointer to HAL_STRUCT information structure as defined in
appcfg.h (HalInfo)
- pointer to the integer to receive the device ID
pDevice
seCursorOn
seCursorOff
Enable the cursor
Disable the cursor
Determine the offset of the first byte of cursor memory in the display buffer (landscape
mode)
Move the cursor to the (x.y) position specified
Sets the specified cursor color entry (0-1) to color
Draw one pixel into the cursor memory at (x,y) from top left corner of cursor
Draw a line into the cursor memory from (x1,y1) to (x2,y2) in specified color
Draw a rectangle into the cursor memory from (x1,y1) to (x2,y2) in specified color
Draw an ellipse into the cursor memory centered at (xc,yc) of radius (xr,yr) in specified color
Draw a circle into the cursor memory centered at (x,y) of radius r in specified color
Ink Layer:
Initialize the Ink layer variables and registers; enable ink layer
Enables the Ink layer
Disables the Ink layer
Determine the offset of the first byte of Ink layer memory in the display buffer (landscape
mode)
Sets the specified Ink layer color entry (0-1) to color
Draw one pixel into the Ink layer memory at (x,y) from top left corner of cursor
Draw a line into the Ink layer memory from (x1,y1) to (x2,y2) in specified color
Draw a rectangle into the Ink layer memory from (x1,y1) to (x2,y2) in specified color
Draw an ellipse into the Ink layer memory centered at (xc,yc) of radius (xr,yr) in specified
color
Draw a circle into the Ink layer memory centered at (x,y) of radius r in specified color
Power Save:
Control S1D13505 SW suspend mode (enable/disable)
Control S1D13505 HW suspend mode (enable/disable)
seGetCursorStartAddr
seMoveCursor
seSetCursorColor
seSetCursorPixel
seDrawCursorLine
seDrawCursorRect
seDrawCursorEllipse
seDrawCursorCircle
seInitInk
seInkOn
seInkOff
seGetInkStartAddr
seSetInkColor
seSetInkPixel
seDrawInkLine
seDrawInkRect
seDrawInkEllipse
seDrawInkCircle
seSWSuspend
seHWSuspend
Table 11-1: HAL Functions (Continued)
Function
Description