Renesas Stub Generator V.1.00 Informacje Techniczne Strona 86

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 144
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 85
Section 6 Definitions of Server Functions
Rev. 1.01 Mar. 17, 2008 Page 74 of 128
REJ10J1822-0101
Examples:
Example 1
Specification of a server function
int func(struct ST *ptr);
ptr points to an array for output that has 10 elements. func outputs all 10 elements.
Definition of the server function
int ret = func([OUT ARY]struct ST *ptr,[COUNT]10, [COUNT]10));
Example 2
Specification of a server function
int func(struct ST *ptr, int *p_count);
ptr points to an array for output that has 10 elements. *p_count, which is the return parameter of
func, indicates the number of elements to be output.
Definition of the server function
int ret = func([OUT ARY]struct ST *ptr,
[COUNT
]10,[COUNT]*p_count,[OUT PTR]int *p_count);
Example 3
Specification of a server function
int func(struct ST *ptr);
ptr points to an array for output that has 10 elements. The return value from func indicates the
number of elements to be output.
Definition of the server function
int ret = func([OUT ARY]struct ST *ptr,[COUNT]10, [COUNT]ret);
Przeglądanie stron 85
1 2 ... 81 82 83 84 85 86 87 88 89 90 91 ... 143 144

Komentarze do niniejszej Instrukcji

Brak uwag