Epson Research and Development
Page 51
Vancouver Design Center
Programming Notes and Examples
S1D13704
Issue Date: 01/02/12
X26A-G-002-03
int seGetScreenSize(int DevID, 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 SwivelView mode the dimensions will be swapped. (i.e. a
640x480 display in SwivelView mode will return a width and height of 480 and
height of 640.
Parameters:
DevID
- registered device ID
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 S1D13704 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: DevID
-
registered
device
ID
MilliSeconds- time to delay in seconds
Return Value: ERR_OK
- operation completed with no problems
ERR_FAILED- returned on non-PC platforms when the S1D13704 registers have
not bee initialized
int seGetLastUsableByte(int DevID, long * plLastByte)
Description: This functions returns a pointer, as a long integer, to the last byte of usable display
memory.
This function is a holdover from 1350X products which support different amounts
of memory.
Parameters: DevID
-
registered
device
ID
plLastByte
- pointer to a long integer to receive the offset to the last byte of
display memory
*