English
Language : 

R01US0068EJ0100 Datasheet, PDF (33/56 Pages) Renesas Technology Corp – EEPROM Emulation Library
RL78 Family
EEPROM Emulation Library Pack02
Chapter 5 User Interface
5. 2 EEL Function Calls
This section describes how to call the EEL functions from a user program written in C or assembly language.
- C language
When an EEL function is called from a user program in C language in the same way as a normal C function is
called, the EEL function’s parameters are passed to the EEL as arguments and the required processing is
performed.
- Assembly language
Before calling an EEL function from a user program in assembly language, take necessary procedures (such as
setting parameters or return addresses) based on the function-calling rules for the C compiler package used by the
user as a development environment. The EEL function’s parameters are passed to the EEL as arguments and the
required processing is performed.
Remarks 1: To call the EEL functions offered by the EEL from a user program, you should define the following
standard header file and include it in that program:
C language
fdl.h: FDL header file
fdl_types.h: FDL definition setting header file
eel.h: EEL header file
eel_types.h: EEL definition setting header file
Assembly language
fdl.inc: FDL header file
eel.inc: EEL header file
eel_types.inc: EEL definition setting header file
Remarks 2: If an EEL function other than EEL_Init is called before EEL_Init is called, the correct operation is not guaranteed.
Remarks 3: If an EEL function other than FDL_Init is called before FDL_Init is called, the correct operation is not guaranteed.
5. 3 Data Types
Below are the data types of the parameters to be specified for calling the EEL functions offered by the EEL.
eel_u08
eel_u16
eel_u32
Macro name
Description
Unsigned 8-bit integers (unsigned char)
Unsigned 16-bit integers (unsigned short)
Unsigned 32-bit integers (unsigned long)
R01US0068EJ0100 Rev.1.00
Mar. 28, 2014
Page 33 of 53