User`s manual

8: HARDWARE ABSTRACTION LAYER (HAL)
S1D13504 PROGRAMMING NOTES EPSON 2-35
AND EXAMPLES (S19A-G-002-06)
int seGet15BppInfo(int device, unsigned *RedMask, unsigned *GreenMask,
unsigned *BlueMask)
Description: Determines the bit fields for the red, green, and blue components of a 15 bpp stored
in a WORD.
Parameter: device - registered device ID
RedMask - all bits set to 1 are used by the red component.
GreenMask - all bits set to 1 are used by the green component.
BlueMask - all bits set to 1 are used by the blue component.
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.
8.2.4 Drawing
int seDrawLine(int device, int x1, int y1, int x2, int y2, DWORD color)
Description: Draws a line on the display.
Parameter: device - registered device ID
(x1, y1) - top left corner of line
(x2, y2) - bottom right corner of line (see note below)
color - color of line
For 1, 2, 4, and 8 bpp, color refers to the pixel value which points
to the respective LUT/DAC entry. For 15 and 16 bpp, color refers
to the pixel value which stores the red, green, and blue intensities
within a WORD.
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.
Note: seDrawLine() only draws horizontal and vertical lines, and that the line drawn does not include
the endpoint (x2, y2).
int seDrawText(int device, char *fmt, ...)
Description: For Intel platforms, draws text to standard output. For embedded platforms, draws
text to terminal.
Parameter: device - registered device ID
fmt - identical to printf() formatting strings
... - identical to printf() arguments for formatting strings
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.
ERR_INVALID_STD_DEVICE
- device is not HAL_STDOUT or HAL_STDIN
(but don't use HAL_STDIN for seDrawText()).
Note: seDrawText() currently doesn't write text to the display buffer.