Renesas M16C/62P Group Computer Hardware User Manual


 
Rev.1.00 2007.11.1
REC10B0002-0100
97
__GetADCAll
Synopsis
<Get A/D converted value (all registers)>
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 );
}