Register / Memory Access - Epson S1D13505 Technical Manual

Embedded ramdac lcd/crt controller
Table of Contents

Advertisement

Page 64

11.5.3 Register / Memory Access

S1D13505
X23A-G-003-07
Return Value: ERR_OK
ERR_HAL_BAD_ARG - returned in three situations
Note
The system must have been properly initialized prior to calling seVirtInit()
int seVirtMove(int DevID, int WhichScreen, DWORD x, DWORD y)
Description:
This routine pans and scrolls the display. In the case where split screen operation is
being used the WhichScreen argument specifies which screen to move. The x and y
parameters specify, in pixels, the starting location in the virtual image for the top left
corner of the applicable display.
Parameter:
DevID
WhichScreen- must be set to 1 or 2, or use the constants SCREEN1 or SCREEN2,
x
y
Return Value: ERR_OK
ERR_HAL_BAD_ARG- there are several reasons for this return value:
Note
seVirtInit() must be called before calling seVirtMove().
The Register/Memory Access functions provide access to the S1D13505 registers and
display buffer through the HAL.
int seSetReg(int DevID, int Index, BYTE Value)
Description:
Writes Value to the register specified by Index.
Parameters:
DevID
Index
Value
Return Value: ERR_OK
int seSetWordReg(int DevID, int Index, WORD Value)
Description:
Writes WORD sized Value to the register specified by Index.
- operation completed with no problems
1) the virtual width (VirtX) is greater than the largest attainable width
The maximum allowable xVirt is 7FFh * (16 / bpp))
2) the virtual width is less than the physical width, or
3) the maximum number of lines is less than the physical number of
lines
- registered device ID
to identify which screen to base calculations on
- new starting X position in pixels
- new starting Y position in pixels
- operation completed with no problems
1) WhichScreen is not SCREEN1 or SCREEN2.
2) the y argument is greater than the last available line.
- registered device ID
- register index to set
- value to write to the register
- operation completed with no problems
Epson Research and Development
Vancouver Design Center
Programming Notes and Examples
Issue Date: 01/02/05

Advertisement

Table of Contents
loading

Table of Contents