Register Access - Epson S1D13706 Technical Manual

Embedded memory lcd controller
Hide thumbs Also See for S1D13706:
Table of Contents

Advertisement

Page 80

10.2.4 Register Access

unsigned seReadRegByte(DWORD Index)
Description:
Parameters:
Return Value:
unsigned seReadRegWord(DWORD Index)
Description:
Parameters:
Return Value:
DWORD seReadRegDword(DWORD Index)
Description:
Parameters:
Return Value:
void seWriteRegByte(DWORD Index, unsigned Value)
Description:
Parameters:
Return Value:
S1D13706
X31B-G-003-03
The Register Access functions provide a convenient method of accessing the control
registers of the S1D13706 controller using byte, word or dword widths.
To reduce the overhead of the function call as much as possible, two steps were taken:
• To gain maximum efficiency on all compilers and platforms, byte and word size argu-
ments are passed between the application and the HAL as unsigned integers. This typi-
cally allows a compiler to produce more efficient code for the platform.
• Index alignment for word and dword accesses is not tested. On non-Intel platforms
attempting to access a word or dword on a non-aligned boundary may result in a
processor trap. It is the responsibility of the caller to ensure that the requested index
offset is correctly aligned for the target platform.
• The word and dword register functions will swap bytes if the endian of the host CPU
differs from the S1D13706 (the S1D13706 is little-endian).
This routine reads the register specified by Index and returns the value.
Index
Offset, in bytes, to the register to read.
The least significant byte of the return value is the byte read from the register.
This routine reads two consecutive registers as a word and returns the value.
Index
Offset to the first register to read.
The least significant word of the return value is the word read from the S1D13706 regis-
ters.
This routine reads four consecutive registers as a dword and returns the value.
Index
Offset to the first of the four registers to read.
The return value is the dword read from the S1D13706 registers.
This routine writes Value to the register specified by Index.
Index
Offset to the register to be written
Value
The value, in the least significant byte, to write to the register
None
Epson Research and Development
Vancouver Design Center
Programming Notes and Examples
Issue Date: 01/02/23

Advertisement

Table of Contents
loading

Table of Contents