Philips S1D13505 Computer Monitor User Manual


 
Page 64
Epson Research and Development
Vancouver Design Center
S1D13505 Programming Notes and Examples
X23A-G-003-07 Issue Date: 01/02/05
Return Value: ERR_OK - operation completed with no problems
ERR_HAL_BAD_ARG - returned in three situations
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
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 - registered device ID
WhichScreen- must be set to 1 or 2, or use the constants SCREEN1 or SCREEN2,
to identify which screen to base calculations on
x - new starting X position in pixels
y - new starting Y position in pixels
Return Value: ERR_OK - operation completed with no problems
ERR_HAL_BAD_ARG- there are several reasons for this return value:
1) WhichScreen is not SCREEN1 or SCREEN2.
2) the y argument is greater than the last available line.
Note
seVirtInit() must be called before calling seVirtMove().
11.5.3 Register / Memory Access
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 - registered device ID
Index - register index to set
Value - value to write to the register
Return Value: ERR_OK - operation completed with no problems
int seSetWordReg(int DevID, int Index, WORD Value)
Description: Writes WORD sized Value to the register specified by Index.