Page 52
Epson Research and Development
Vancouver Design Center
S1D13504
Programming Notes and Examples
X19A-G-002-07
Issue Date: 01/02/01
int seSetPixel(int device, int x, int y, DWORD color)
Description: Writes a pixel to the display buffer.
Parameter:
device - Registered device ID
x - horizontal coordinate of the pixel (starting from 0)
y - vertical coordinate of the pixel (starting from 0)
color - for 1,2,4,8 BPP: refers to index into LUT/DAC. For 15,16 BPP: defines color
directly (not LUT/DAC index)
Return Value: ERR_OK - operation completed with no problems
ERR_INVALID_REG_DEVICE - device argument is not valid.
8.2.5 Register Manipulation
int seGetReg(int device, int index, BYTE *pVal)
Description: Reads a register value.
Parameter:
device - registered device ID
index - register index
pVal - returns value of the register
Return Value: ERR_OK - operation completed with no problems
ERR_INVALID_REG_DEVICE - device argument is not valid.
int seSetReg(int device, int index, BYTE val)
Description: Writes a register value.
Parameter:
device - registered device ID
index - register index
val - value to write to the register
Return Value: ERR_OK - operation completed with no problems
ERR_INVALID_REG_DEVICE - device argument is not valid.
8.2.6 Miscellaneous
int seDelay(int device, DWORD Seconds)
Description: Delays for the given amount of time. For non-Intel platforms, the 13504 registers
must be initialized and the VNDP set active (the VNDP is used as the timer).
Parameter:
device - registered device ID
Seconds - delay time in seconds
Return Value: ERR_OK - operation completed with no problems
ERR_INVALID_REG_DEVICE - device argument is not valid.
ERR_FAILED - registers have not been initialized (for non-Intel platforms).