Page 54 Epson Research and Development
Vancouver Design Center
S1D13705 Programming Notes and Examples
X27A-G-002-03 Issue Date: 02/01/22
int seGetScreenSize(int * Width, int * Height)
Description: Retrieves the width and height in pixels of the display surface. The width and height
are derived by reading the horizontal and vertical size registers and calculating the
dimensions. Virtual dimensions are not taken into account for this calculation.
When the display is in portrait mode the dimensions will be swapped. (i.e. a 640x480
display in portrait mode will return a width of 480 and height of 640).
Parameters: Width - pointer to an integer to receive the display width
Height - pointer to an integer to receive the display height
Return value: ERR_OK - the operation completed successfully
int seDelay(int MilliSeconds)
Description: This function will delay for the length of time specified in “MilliSeconds” before
returning to the caller.
This function was originally intended for non-PC platforms. Information about how
to access the timers was not always available however we do know frame rate and
can use that for timing calculations.
The S1D13705 registers must be initialized for this function to work correctly. On
the PC platform this is simply a call to the C timing functions and is therefore
independent of the register settings.
Parameters: MilliSeconds- time to delay in seconds
Return Value: ERR_OK - operation completed with no problems
ERR_FAILED- returned on non-PC platforms when the S1D13705 registers have
not bee initialized
int seGetLastUsableByte(long * plLastByte)
Description: This functions returns a pointer, as a long integer, to the last byte of usable display
memory.
The returned value never changes for the S1D13705.
Parameters: plLastByte - pointer to a long integer to receive the offset to the last byte of
display memory
Return Value: ERR_OK - operation completed with no problems