Everything

R_ADC_Set_TestChannel

Sets the operation mode of A/D converter.

 

[Syntax]

#include      “r_cg_macrodriver.h”

#include      “r_cg_adc.h”

MD_STATUS  R_ADC_Set_TestChannel ( test_channel_t channel );

 

[Argument(s)]

I/O

Argument

Description

I

test_channel_t channel;

Operation mode of A/D converter

ADNORMALINPUT     Normal mode (Normal A/D conver-

sion)

ADNORMALINPUT     Test mode (AVREFM input)

ADNORMALINPUT     Test mode (AVREFP input)

 

[Return value]

Macro

Description

MD_OK

Normal completion

MD_ARGERROR

Invalid argument specification