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:
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.
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.
Reads conversion results from a single channel, sensor, double trigger, or self-diagnosis
register.
Reads conversion results from all potential channel sources, enabled or not.
Ends any scan in progress, disables interrupts, and removes power to the A/D peripheral.
Returns at runtime the driver version number.