Configures the analog voltage input pin for A/D conversion.
The value specified in argument channel is set to A/D channel select register A0 (ADANSA0) or A/D conversion extended input control register (ADEXICR). |
#include "r_cg_macrodriver.h" #include "r_cg_12adc.h" MD_STATUS R_12ADC_Set_ADChannel ( ad_sel_register_t register, uint16_t data ); |
ad_sel_register_t register; |
SEL_ADANSA0: A/D channel select register A0 (ADANSA0) SEL_ADEXICR: A/D conversion extended input control register (ADEXICR) |
|
uint16_t data; |