User`s manual

8: HARDWARE ABSTRACTION LAYER (HAL)
2-36 EPSON S1D13504 PROGRAMMING NOTES
AND EXAMPLES (S19A-G-002-06)
int seFillRect(int device, int x1, int y1, int x2, int y2, DWORD color)
Description: Draws a solid rectangle on the display.
Parameter: device - registered device ID
(x1, y1) - top left corner of rectangle
(x2, y2) - bottom right corner of rectangle (see note below)
color - color of rectangle
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: seFillRect() does not fill the rectangle's right and bottom sides.
int seGetchar(void)
Description: Gets a character from platform (typically from a terminal).
Parameter: None
Return Value: Character returned from platform.
int sePutchar(int ch)
Description: Writes a character to platform (typically to a terminal).
Parameter: ch - character to send to platform
Return Value: ERR_OK - operation completed with no problems.
ERR_FAILED - operation failed.
int sePutc(int device, int ch)
Description: Writes a character to platform (typically to a terminal).
Parameter: device - registered device ID
ch - character to send to platform
Return Value: ERR_OK - operation completed with no problems.
ERR_FAILED - operation failed.
int seSetPixel(int device, int x, int y, DWORD color)
Description: Writes a pixel to the display buffer.
Parameter: device - registered device ID
x - horizontal coordinate of the pixel (starting from 0)
y - vertical coordinate of the pixel (starting from 0)
color - for 1,2,4,8 bpp: refers to index into LUT/DAC. For 15,16 bpp:
defines color directly (not LUT/DAC index).
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.