Renesas RJJ10J1643-0101 Network Card User Manual


 
Rev.1.01 2007.02.16
RJJ10J1643-0101
182
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)
data1 Setup data 1 (content differs with MCU type)
data2 Number of analog input pins used by A/D converter (differs with MCU type)
data3 Setup data 3 (content differs with MCU type)
func Callback function pointer
(Specify 0 if no callback functions are set.)
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.
(M16C)
RAPI_ONE_SHOT Selects one-shot mode.
RAPI_REPEAT Selects repeat mode.
RAPI_SINGLE_SWEEP Selects single sweep mode.
RAPI_REPEAT_SWEEP0 Selects repeat sweep mode 0.
RAPI_REPEAT_SWEEP1 Selects repeat sweep mode 1.
RAPI_SIMULTANEOUS_
SAMPLE_SWEEP
Selects simultaneous sampling sweep mode.
RAPI_DELAYED_TRIGGER0 Selects delayed trigger mode 0.
RAPI_DELAYED_TRIGGER1 Selects delayed trigger mode 1.
RAPI_AN0 Uses AN
0
pin for the analog input pin.
RAPI_AN1 Uses AN
1
pin for the analog input pin.
RAPI_AN2 Uses AN
2
pin for the analog input pin.
RAPI_AN3 Uses AN
3
pin for the analog input pin.
RAPI_AN4 Uses AN
4
pin for the analog input pin.
RAPI_AN5 Uses AN
5
pin for the analog input pin.
RAPI_AN6 Uses AN
6
pin for the analog input pin.
RAPI_AN7 Uses AN
7
pin for the analog input pin.
RAPI_AN00 Uses AN
00
pin for the analog input pin.
RAPI_AN01 Uses AN
01
pin for the analog input pin.
RAPI_AN02 Uses AN
02
pin for the analog input pin.
RAPI_AN03 Uses AN
03
pin for the analog input pin.
RAPI_AN04 Uses AN
04
pin for the analog input pin.
RAPI_AN05 Uses AN
05
pin for the analog input pin.
RAPI_AN06 Uses AN
06
pin for the analog input pin.
RAPI_AN07 Uses AN
07
pin for the analog input pin.
RAPI_AN20 Uses AN
20
pin for the analog input pin.
RAPI_AN21 Uses AN
21
pin for the analog input pin.