Page 56 Epson Research and Development
Vancouver Design Center
S1D13505 Programming Notes and Examples
X23A-G-003-07 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)
pDevice - pointer to the integer to receive the device ID
seCursorOn Enable the cursor
seCursorOff Disable the cursor
seGetCursorStartAddr Determine the offset of the first byte of cursor memory in the display buffer (landscape
mode)
seMoveCursor Move the cursor to the (x.y) position specif ied
seSetCursorColor Sets the specified cursor color entry (0-1) to color
seSetCursorPixel Draw one pixel into the cursor memory at (x,y) from top left corner of cursor
seDrawCursorLine Draw a line into the cursor memory from (x1,y1) to (x2,y2) in specified color
seDrawCursorRect Draw a rectangle into the cursor memory from (x1,y1) to (x2,y2) in specified color
seDrawCursorEllipse Draw an ellipse into the cursor memory centered at (xc,yc) of radius (xr,yr) in specified color
seDrawCursorCircle Draw a circle into the cursor memory centered at (x,y) of radius r in specified color
Ink Layer:
seInitInk Initialize the Ink layer variables and registers; enable ink layer
seInkOn Enables the Ink layer
seInkOff Disables the Ink layer
seGetInkStartAddr Determine the offset of the first byte of Ink layer memory in the display buffer (landscape
mode)
seSetInkColor Sets the specified Ink layer color entry (0-1) to color
seSetInkPixel Draw one pixel into the Ink layer memory at (x,y) from top left corner of cursor
seDrawInkLine Draw a line into the Ink layer memory from (x1,y1) to (x2,y2) in specified color
seDrawInkRect Draw a rectangle into the Ink layer memory from (x1,y1) to (x2,y2) in specified color
seDrawInkEllipse Draw an ellipse into the Ink layer memory centered at (xc,yc) of radius (xr,yr) in specified
color
seDrawInkCircle Draw a circle into the Ink layer memory centered at (x,y) of radius r in specified color
Power Save:
seSWSuspend Control S1D13505 SW suspend mode (enable/disable)
seHWSuspend Control S1D13505 HW suspend mode (enable/disable)

Table 11-1: HAL Functions (Continued)

Function Description