Renesas V.1.00 Manuale Utente

Pagina di 142
Section 6   Definitions of Server Functions 
 
 
Rev. 1.01  Mar. 17, 2008  Page 69 of 128 
 
 REJ10J1822-0101 
Example 2 
Specification of a server function 
int func(struct ST *ptr, int count); 
 
Pointer ptr to an array of count elements of the structure type (ST) will be passed. 
Definition of the server function 
int ret = func([IN ARY]struct ST *ptr, [COUNT]count,[IN DFLT]int 
count); 
 
Example 3 
Specification of a server function 
int func(int count , struct ST *ptr); 
 
Pointer ptr to an array of count elements of the structure type (ST) will be passed. 
Definition of the server function 
int ret = func([IN DFLT]int count, [IN ARY]struct ST *ptr, 
[COUNT]count); 
 
Example 4 
Specification of a server function 
int func(struct ST *ptr, int *p_count); 
 
Pointer ptr to an array of *p_count elements of the structure type (ST) will be passed. 
Definition of the server function 
int ret = func([IN ARY]struct ST *ptr, [COUNT]*p_count, [IN PTR]int 
*p_count);