Rev.1.01 2007.02.16
RJJ10J1643-0101
198
__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
[R8C]
(2 bytes)
: A/D register
[H8/300H] : [0] A/D register A
(8 bytes) [1] A/D register B
[2] A/D register C
[3] A/D register D
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_r8c_13.h"
void func( void )
{
unsigned int data[8];
/* Get A/D convertered datas of A/D register */
__GetADCAll( data );
}