User`s manual
RX62N Group, RX621 Group 4. Library Reference
2) R_DAC_10_Destroy
Synopsis
Disable a DAC channel.
Prototype
bool R_DAC_10_Destroy(
uint8_t data
// Channel selection
);
Description
Disable the channel output.
[data1]
Disable selection. To set multiple options at the same time, use "|" to separate each value.
PDL_DAC_10_CHANNEL_0
Disable channel 0
PDL_DAC_10_CHANNEL_1
Disable channel 1
Return value
True if the parameter is valid; otherwise false.
Category
DAC
Reference
R_DAC_10_Create
Remarks
•
Once both channels are disabled, the module is put into the power-down state.
•
Do not select channel 0 for 100-pin package.
Program example
/* RPDL definitions */
#include "r_pdl_dac_10.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func( void )
{
/* Shut down both DAC channels */
R_DAC_10_Destroy(
PDL_DAC_10_CHANNEL_0 | PDL_DAC_10_CHANNEL_1
);
}
R20UT0084EE0112 Rev.1.12 Page 4-229
July. 16, 2014