EasyManua.ls Logo

Epson S1D13706 - Page 232

Epson S1D13706
672 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Page 72
Epson Research and Development
Vancouver Design Center
S1D13706 Programming Notes and Examples
X31B-G-003-03 Issue Date: 01/02/23
int seSetSwivelViewMode(int rotate)
Description:
This function sets the SwivelView orientation of the LCD display. Display memory is
automatically released and then reallocated as necessary for the display size.
IMPORTANT
When the SwivelView mode is changed, memory allocated for both the main window and
sub-window display buffer is freed and the display buffer memory is reassigned. The
application must redraw the display and re-initialize the sub-window (if used) and redraw
after calling seSetSwivelViewMode().
Parameters:
rotate The values for rotate are:
LANDSCAPE: display not rotated
ROTATE90: display rotated 90 degrees counterclockwise
ROTATE180: display rotated 180 degrees counterclockwise
ROTATE270: display rotated 270 degrees counterclockwise
Return Value:
ERR_OK The new rotation was completed with no problems.
ERR_NOT_ENOUGH_MEMORYInsufficient display buffer.
int seGetSwivelViewMode(void)
Description:
This function retrieves the SwivelView orientation of the LCD display.
The SwivelView status is read directly from the S1D13706 registers. Calling this function
when the LCD display is not initialized will result in an erroneous return value.
Note
seGetSwivelViewMode() was previously called seGetLcdOrientation(). It is now rec-
ommended to call seGetSwivelViewMode() instead of seGetLcdOrientation().
Parameters:
None.
Return Value:
LANDSCAPE Not rotated.
ROTATE90 Display is rotated 90 degrees counterclockwise.
ROTATE180 Display is rotated 180 degrees counterclockwise.
ROTATE270 Display is rotated 270 degrees counterclockwise.
int seCheckSwivelViewClocks(unsigned BitsPerPixel, unsigned Rotate)
Description:
This function verifies that the clocks are properly configured for the a SwivelView mode
given the bits-per-pixel and rotation (see the section titled SwivelView in the S1D13706
Hardware Functional Specification document).
Parameters:
BitsPerPixel The given color depth. BitsPerPixel can be one of the following:
1, 2, 4, 8, 16.
Rotate The values for Rotate are:
LANDSCAPE: display not rotated
ROTATE90: display rotated 90 degrees counterclockwise
ROTATE180: display rotated 180 degrees counterclockwise
ROTATE270: display rotated 270 degrees counterclockwise
Return Value:
ERR_OK The function completed with no problems
ERR_SWIVELVIEW_CLOCK The clocks are not configured correctly.

Table of Contents

Other manuals for Epson S1D13706

Related product manuals