Page 4 Epson Research and Development
Vancouver Design Center
S1D13705 Programming Notes and Examples
X27A-G-002-03 Issue Date: 02/01/22
8 Identifying the S1D13705 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47
9 Hardware Abstraction Layer (HAL) . . . . . . . . . . . . . . . . . . . . . . . . . . .48
9.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
9.2 Contents of the HAL_STRUCT . . . . . . . . . . . . . . . . . . . . . . . .48
9.3 Using the HAL library . . . . . . . . . . . . . . . . . . . . . . . . . . . .49
9.4 API for 13705HAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49
9.4.1 Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
9.4.2 General HAL Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
9.4.3 Advanced HAL Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
9.4.4 Register / Memory Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
9.4.5 Power Save . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
9.4.6 Drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
9.4.7 LUT Manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
9.5 Porting LIBSE to a new target platform . . . . . . . . . . . . . . . . . . . . .64
9.5.1 Building the LIBSE library for SH3 target example . . . . . . . . . . . . . . . . . 65
9.5.2 Building the HAL library for the target example . . . . . . . . . . . . . . . . . . . 65
10 Sample Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66
10.1 Sample code using the S1D13705 HAL API . . . . . . . . . . . . . . . . . . .66
10.2 Sample code without using the S1D13705 HAL API . . . . . . . . . . . . . . . .68
10.3 Header Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77