Page 44
Epson Research and Development
Vancouver Design Center
S1D13504
Programming Notes and Examples
X19A-G-002-07
Issue Date: 01/02/01
int seSetBitsPerPixel(int device, BYTE BitsPerPixel)
Description: Sets the number of bpp. This function is equivalent to a mode set.
Parameter:
device - registered device ID
BitsPerPixel - desired number of bpp
Return Value: ERR_OK - operation completed with no problems
ERR_INVALID_REG_DEVICE - device argument is not valid.
ERR_COULD_NOT_GET_VALUE - value read from registers is invalid.
ERR_HAL_BAD_ARG - argument BitsPerPixel is invalid.
int seSplitInit(int device, DWORD Scrn1Addr, DWORD Scrn2Addr)
Description: Sets the relevant registers for split screen.
Parameter:
device - registered device ID
Scrn1Addr - starting address of top image (addr = 0 refers to beginning of the display
buffer)
Scrn2Addr - starting address of bottom image (addr = 0 refers to beginning of the
display buffer)
Return Value: ERR_OK - operation completed with no problems
ERR_INVALID_REG_DEVICE - device argument is not valid.
Note
seSetInit() must first be called before calling seSplitInit(). This is because the VNDP is used for
timing, and this would not be possible if the registers were not first initialized.
int seSplitScreen(int device, BYTE WhichScreen, int VisibleScanlines)
Description: Changes the relevant registers for moving the split screen up or down.
Parameter:
device - registered device ID
WhichScreen - Use one of the following definitions: SCREEN1 or SCREEN2.
SCREEN1 is the top screen.
VisibleScanlines - number of lines to show for the selected screen
Return Value: ERR_OK - operation completed with no problems
ERR_INVALID_REG_DEVICE - device argument is not valid.
ERR_HAL_BAD_ARG - argument VisibleScanlines is negative or is greater than
vertical panel size.
Note
seSplitInit() must have been called once before calling seSplitScreen().