Rev.1.00 2007.11.1
REC10B0002-0100
93
RAPI_AN21 Uses AN
21
pin for the analog input pin.
Selectable only when one-shot mode or repeat mode is used.
RAPI_AN22 Uses AN
22
pin for the analog input pin.
Selectable only when one-shot mode or repeat mode is used.
RAPI_AN23 Uses AN
23
pin for the analog input pin.
Selectable only when one-shot mode or repeat mode is used.
RAPI_AN24 Uses AN
24
pin for the analog input pin.
Selectable only when one-shot mode or repeat mode is used.
RAPI_AN25 Uses AN
25
pin for the analog input pin.
Selectable only when one-shot mode or repeat mode is used.
RAPI_AN26 Uses AN
26
pin for the analog input pin.
Selectable only when one-shot mode or repeat mode is used.
RAPI_AN27 Uses AN
27
pin for the analog input pin.
Selectable only when one-shot mode or repeat mode is used.
RAPI_ANEX0 Uses ANEX0 pin for the analog input pin.
Selectable only when one-shot mode or repeat mode is used.
RAPI_ANEX1 Uses ANEX1 pin for the analog input pin.
Selectable only when one-shot mode or repeat mode is used.
RAPI_P0_GROUP
Uses port P
0
group for the analog input pin. Selectable only when
sweep mode, repeat sweep mode 0, or repeat sweep mode 1 is used.
RAPI_P10_GROUP
Uses port P
10
group for the analog input pin. Selectable only when
sweep mode, repeat sweep mode 0, or repeat sweep mode 1 is used.
RAPI_P2_GROUP
Uses port P
2
group for the analog input pin. Selectable only when
sweep mode, repeat sweep mode 0, or repeat sweep mode 1 is used.
RAPI_AD_ON Sets the A/D converter to start operating.
RAPI_AD_OFF Sets the A/D converter to stop operating.
[data2]
The set value differs with the A/D conversion mode used.
One-shot mode Specify 1.
Repeat mode
Single sweep mode Specify 2, 4, 6, or 8.
Repeat sweep mode 0
Repeat sweep mode 1 Specify 1, 2, 3, or 4.
Return value
If A/D converter was successfully controlled, RAPI_TRUE is returned; if failed,
RAPI_FALSE is returned.
Functionality
A/D converter
Reference
__CreateADC, __DestroyADC, __GetADC, __GetADCAll
Remark
•
If an undefined value is specified in the first argument, operation of the API cannot
be guaranteed.