User`s manual

8: HARDWARE ABSTRACTION LAYER (HAL)
S1D13504 PROGRAMMING NOTES EPSON 2-37
AND EXAMPLES (S19A-G-002-06)
8.2.5 Register Manipulation
int seGetReg(int device, int index, BYTE *pVal)
Description: Reads a register value.
Parameter: device - registered device ID
index - register index
pVal - returns value of the register
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.
int seSetReg(int device, int index, BYTE val)
Description: Writes a register value.
Parameter: device - registered device ID
index - register index
val - value to write to the register
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.
8.2.6 Miscellaneous
int seDelay(int device, DWORD Seconds)
Description: Delays for the given amount of time. For non-Intel platforms, the 13504 registers
must be initialized and the VNDP set active (the VNDP is used as the timer).
Parameter: device - registered device ID
Seconds - delay time in seconds
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.
ERR_FAILED - registers have not been initialized (for non-Intel platforms).
WORD seRotateByteLeft(BYTE val, BYTE bits)
Description: Rotates the bits in “val” left as many times as stated in “bits”.
Parameter: val - value to rotate
bits - how many bits to rotate
Return Value: bits 15–8: non-zero if carry flag set
bits 7–0: rotated byte
WORD seRotateByteRight(BYTE val, BYTE bits)
Description: Rotates the bits in “val” right as many times as stated in “bits”.
Parameter: val - value to rotate
bits - how many bits to rotate
Return Value: bits 15–8: non-zero if carry flag set
bits 7–0: rotated byte