User`s manual
RX62N Group, RX621 Group 4. Library Reference
2) R_ADC_12_Destroy
Synopsis
Shut down the ADC unit.
Prototype
bool R_ADC_12_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 to be shut down. This must always be 0.
Return value
True if a valid unit is selected; otherwise false.
Category
12-bit ADC
Reference
R_ADC_12_Create
Remarks
•
This function includes a 1ms delay to allow the ADC to stop any current scan cycle.
Program example
/* RPDL definitions */
#include "r_pdl_adc_12.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func( void )
{
/* Shut down the ADC unit */
R_ADC_12_Destroy(
0
);
}
R20UT0084EE0112 Rev.1.12 Page 4-218
July. 16, 2014