User`s manual
8: HARDWARE ABSTRACTION LAYER (HAL)
2-32 EPSON S1D13504 PROGRAMMING NOTES
AND EXAMPLES (S19A-G-002-06)
int seVirtMove(int device, BYTE WhichScreen, int x, int y)
Description: Pans or scrolls the virtual display.
Parameter: device - registered device ID
WhichScreen - Use one of the following definitions: SCREEN1 or SCREEN2.
SCREEN1 is the top screen.
x - new starting X position in pixels
y - new starting Y position in pixels
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.
ERR_HAL_BAD_ARG
- argument WhichScreen is not SCREEN1 or SCREEN2.
- argument Y is too large.
- bpp is invalid in HAL structure (this would occur if the
application changed the registers directly instead of
calling seSetBitsPerPixel()).
Note: seVirtInit() must have been called once before calling seVirtMove().
int seWriteDisplayBytes(int device, DWORD addr, BYTE val, DWORD count)
Description: Writes one or more bytes to the display buffer.
Parameter: device - registered device ID
addr - offset from start of the display buffer
val - value to write
count - number of bytes to write
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.
int seWriteDisplayWords(int device, DWORD addr, WORD val, DWORD count)
Description: Writes one or more words to the display buffer.
Parameter: device - registered device ID
addr - offset from start of the display buffer
val - value to write
count - number of words to write
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.
int seWriteDisplayDwords(int device, DWORD addr, DWORD val, DWORD count)
Description: Writes one or more dwords to the display buffer.
Parameter: device - registered device ID
addr - offset from start of the display buffer
val - value to write
count - number of dwords to write
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.