Epson S1D13708 用户手册
Epson Research and Development
Page 69
Vancouver Design Center
Programming Notes and Examples
S1D13708
Issue Date: 01/11/20
X39A-G-003-01
ADVANCE
D
IN
FOR
MAT
ION
Subje
ct to C
ha
nge
void halWriteReg16(UInt32 Index, UInt16 Value)
Description:
Writes a 16 bit value to the S1D13708 register at the requested offset.
Parameters:
Index
32 bit byte offset to the register to write. Index is zero-based from the
beginning of register address space.
beginning of register address space.
Value
The word value to write to the register.
Return Value:
Nothing.
void halWriteReg32(UInt32 Index, UInt32 Value)
Description:
Writes a 32 bit value (dword) to the register at the requested offset.
Parameters:
Index
32 bit byte offset to the register to write. Index is zero-based from the
beginning of register address space.
beginning of register address space.
Value
The dword value to write to the register.
Return Value:
Nothing.
9.2.4 Clock Support
To maximize flexibility, S5U13708B00B evaluation boards include a programmable clock.
The following HAL routines provide support for the programmable clock.
The following HAL routines provide support for the programmable clock.
Boolean halSetClock(UInt32 ClkiFreq, UInt32 Clki2Freq)
Description:
This routine program the ICD2061A programmable clock generator to the specified fre-
quency.
quency.
Parameters:
ClkiFreq
The desired frequency, in Hz, for CLKI.
Clki2Freq
The desired frequency, in Hz, for CLKI2.
Return Value:
TRUE (non-zero) if the function was successful in setting the clock.
FALSE (zero) if there was an error detected while trying to set the clock.
If additional error information is required call halGetLastError().
If additional error information is required call halGetLastError().