User`s manual
RX62N Group, RX621 Group 4. Library Reference
2) R_ADC_10_Destroy
Synopsis
Shut down an ADC unit.
Prototype
bool R_ADC_10_Destroy(
uint8_t data
// ADC unit selection
);
Description
Put the ADC into the Power-down state, with minimal power consumption.
[data]
Select the ADC unit (0 or 1) to be shut down.
Return value
True if a valid unit is selected; otherwise false.
Category
ADC
Reference
R_ADC_10_Create
Remarks
•
This function waits for the ADST flag to indicate that the converter has stopped. If the ADC unit’s
control registers are directly modified by the user, this function may lock up.
Program example
/* RPDL definitions */
#include "r_pdl_adc_10.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func( void )
{
/* Shut down ADC unit 1 */
R_ADC_10_Destroy(
1
);
}
R20UT0084EE0112 Rev.1.12 Page 4-225
July. 16, 2014