RX Family
ADC Module Using Firmware Integration Technology
R01AN1666EJ0220 Rev. 2.20
Page 52 of 74
Dec 01, 2016
3. API Functions
3.1
Summary
The following functions are included in this design:
Function
Description
R_ADC_Open()
Applies power to the A/D peripheral (and TEMPS peripheral on RX210 and RX63x),
sets the operational mode, trigger sources, interrupt priority, and configurations common
to all channels and sensors. Optionally takes a callback function pointer for notifying the
user at interrupt level whenever a scan has completed.
R_ADC_Control()
Provides commands for enabling channels and sensors, and for runtime operations.
These include enabling/disabling trigger sources and interrupts, initiating a software
trigger, and checking for scan completion.
R_ADC_Read()
Reads conversion results from a single channel, sensor, double trigger, or self-diagnosis
register.
R_ADC_ReadAll()
Reads conversion results from all potential channel sources, enabled or not.
R_ADC_Close()
Ends any scan in progress, disables interrupts, and removes power to the A/D peripheral.
R_ADC_GetVersion()
Returns at runtime the driver version number.