Getadcall - Renesas M16C/62P Group Reference Manual

Group renesas embedded application programming interface
Hide thumbs Also See for M16C/62P Group:
Table of Contents

Advertisement

__GetADCAll

Synopsis
<Get A/D converted value (all registers)>
Boolean __GetADCAll(unsigned int *data)
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.
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,
Program example
#include "rapi_ad_m16c_62p.h"
void func( void )
{
}
Rev.1.00
2007.11.1
REC10B0002-0100
data
Pointer to the buffer in which A/D converted value is stored.
[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
unsigned int data[8];
/* Get A/D convertered datas of A/D register */
__GetADCAll( data );
__GetADC
97

Advertisement

Table of Contents
loading

Table of Contents