R_12ADC_Get_ValueResult


Reads the results of A/D conversion (12 bits).

[Syntax]

#include    "r_cg_macrodriver.h"
void    R_12ADC_Get_ValueResult ( ad_channel_t channel, uint16_t * const buffer );

[Argument(s)]

I/O

Argument

Description

I

ad_channel_t channel

Analog voltage input pin

O

uint16_t  * const buffer;

Pointer to area in which to store read results of A/D conversion

[Return value]

Macro

Description

MD_OK

Normal completion

MD_ARGERROR

Invalid argument specification