Renesas Single-Chip Microcomputer M38C89T-ADF Manual do Utilizador Página 22

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 138
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 21
Library Reference
4.2 Description of Each API
4
REJ09B0566
4.2. Description of Each API
This section describes each API and explains how to use them, showing a program example for each. The
description of each API is divided into the following items.
Synopsis
Summarises processing by the API
function.
Prototype
The function format and a brief explanation of the arguments.
Description Explains how to use the API function and shows assignable parameters separating each
argument with [argument].
Return value
Describes the returned value of the API function.
Category
Indicates the category of the API function.
Reference
Indicates the API functions to be referred.
Remark
Describes notes to use the API function.
Program example Represents how to use the API function by a program example.
Two examples of return value checking are shown below.
/* PDL definitions */
#include r_pdl_pfc.h
#include r_pdl_sci.h
/* PDL device-specific definitions */
#include r_pdl_definitions.h
/* Application-specific definitions */
#include <stddef.h>
void func( void )
{
bool result;
/* Write 0xFF to register PFC1 */
result = (R_PFC_Write(
1,
0xFF
);
if (result == false)
{
/* Handle the error here */
}
/* Keep trying to send a string (if the channel is busy) */
do
{
result = R_SCISendString(
2,
Renesas RX,
NULL,
PDL_NO_FUNC
);
} while (result == false);
)
For clarity, the return value is not checked in the examples used in this manual.
Rev.1.00 May 22 2012
4-2
Vista de página 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 137 138

Comentários a estes Manuais

Sem comentários