English
Language : 

SED1374 Datasheet, PDF (147/420 Pages) Epson Company – SED1374 Embedded Memory Color LCD Controller
Epson Research and Development
Vancouver Design Center
Page 51
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
Width
Height
- registered device ID
- pointer to an integer to receive the display width
- 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 SED1374 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 SED1374 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 135X 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
Programming Notes and Examples
Issue Date: 99/04/27
SED1374
X26A-G-002-02