A/D Converter; Createadc - Renesas M16C/62P Group Reference Manual

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

Advertisement

4.2.5 A/D converter

__CreateADC

Synopsis
<Set A/D converter>
Boolean __CreateADC(unsigned long data1, unsigned int data2, unsigned int
data3, void* func)
Description
Sets the A/D converter to specified mode and operating condition.
[data1]
For data1, the following definition values can be set. To set multiple definition values at
the same time, use the symbol "|" to separate each specified value. Note, however,
that multiple analog input pin symbols cannot be specified at the same time.
Rev.1.00
2007.11.1
REC10B0002-0100
data1
Setup data 1
data2
Number of analog input pins used by A/D converter
data3
Setup data 3
func
Callback function pointer
(Specify 0 if no callback functions are set.)
RAPI_ONE_SHOT
RAPI_REPEAT
RAPI_SINGLE_SWEEP
RAPI_REPEAT_SWEEP0
RAPI_REPEAT_SWEEP1
RAPI_AN0
RAPI_AN1
RAPI_AN2
RAPI_AN3
RAPI_AN4
RAPI_AN5
RAPI_AN6
RAPI_AN7
RAPI_AN00
RAPI_AN01
RAPI_AN02
RAPI_AN03
RAPI_AN04
RAPI_AN05
RAPI_AN06
RAPI_AN07
RAPI_AN20
RAPI_AN21
RAPI_AN22
RAPI_AN23
RAPI_AN24
RAPI_AN25
RAPI_AN26
Selects one-shot mode.
Selects repeat mode.
Selects single sweep mode.
Selects repeat sweep mode 0.
Selects repeat sweep mode 1.
Uses AN
pin for the analog input pin.
0
Uses AN
pin for the analog input pin.
1
Uses AN
pin for the analog input pin.
2
Uses AN
pin for the analog input pin.
3
Uses AN
pin for the analog input pin.
4
Uses AN
pin for the analog input pin.
5
Uses AN
pin for the analog input pin.
6
Uses AN
pin for the analog input pin.
7
Uses AN
pin for the analog input pin.
00
Uses AN
pin for the analog input pin.
01
Uses AN
pin for the analog input pin.
02
Uses AN
pin for the analog input pin.
03
Uses AN
pin for the analog input pin.
04
Uses AN
pin for the analog input pin.
05
Uses AN
pin for the analog input pin.
06
Uses AN
pin for the analog input pin.
07
Uses AN
pin for the analog input pin.
20
Uses AN
pin for the analog input pin.
21
Uses AN
pin for the analog input pin.
22
Uses AN
pin for the analog input pin.
23
Uses AN
pin for the analog input pin.
24
Uses AN
pin for the analog input pin.
25
Uses AN
pin for the analog input pin.
26
87

Advertisement

Table of Contents
loading

Table of Contents