beautypg.com

Getadcall – Renesas M16C/62P Group User Manual

Page 99

background image

Rev.1.00 2007.11.1
REC10B0002-0100

97

__GetADCAll

Synopsis

Boolean __GetADCAll(unsigned int *data)

data

Pointer to the buffer in which A/D converted value is stored.

Description

Gets the A/D converted value from all A/D registers.

The A/D registers from which A/D converted values are acquired are listed below.

[M16C]

: [0] A/D register 0

(16 bytes)

[1] A/D register 1

[2] A/D register 2

[3] A/D register 3

[4] A/D register 4

[5] A/D register 5

[6] A/D register 6

[7] A/D register 7

Return value

If A/D converted values were successfully acquired, RAPI_TRUE is returned; if failed,

RAPI_FALSE is returned.

Functionality

A/D converter

Reference

__CreateADC

,

__EnableADC

,

__DestroyADC

,

__GetADC

Program example

#include "rapi_ad_m16c_62p.h"

void func( void )
{
unsigned int data[8];

/* Get A/D convertered datas of A/D register */
__GetADCAll( data );
}