User`s manual
8: HARDWARE ABSTRACTION LAYER (HAL)
S1D13504 PROGRAMMING NOTES EPSON 2-29
AND EXAMPLES (S19A-G-002-06)
8.2.2 Screen Manipulation
int seDisplayEnable(int device, BYTE NewState)
Description: Performs the necessary power sequencing to enable or disable the display.
Parameter: device - registered device ID
NewState - use the predefined definitions ENABLE and DISABLE.
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.
ERR_FAILED - unable to complete operation because registers have not been
initialized.
int seGetBitsPerPixel(int device, BYTE *pBitsPerPixel)
Description: Determines the color depth of current display mode.
Parameter: device - registered device ID
pBitsPerPixel - if ERR_OK, *pBitsPerPixel set
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.
ERR_COULD_NOT_GET_VALUE - value read from registers is invalid.
int seGetBytesPerScanline(int device, int *pBytes)
Description: Determines the number of bytes per scan line of current display mode. It is assumed
that the registers have already been correctly initialized before seGetBytesPer-
Scanline() is called.
Parameter: device - registered device ID
pBytes - pointer to an integer which indicates the number of bytes per scan
line
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.
int seGetLastUsableByte(int device, DWORD *pLastByte)
Description: Determines the address of the last byte in the display buffer which can be used by
applications. Addresses following LastByte are reserved for system use (such as the
half frame buffer for dual panels). It is assumed that the registers have already been
correctly initialized before seGetLastUsableByte() is called.
Parameter: device - registered device ID
pLastByte - pointer to an integer which indicates the last byte address
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.
int seGetLinearDispAddr(int device, DWORD *pDispLogicalAddr)
Description: Determines the logical address of the start of the display buffer. This address may
be used in programs for direct control over the display buffer.
Parameter: device - registered device ID
pDispLogicalAddr - logical address is returned in this variable.
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.