R_S12ADn_Get_ValueResult

Gets the result of conversion.

[Syntax]

#include "r_cg_s12ad.h"

void R_S12ADn_Get_ValueResult ( ad_channel_t channel, uint16_t * const buffer );

Remark n is the unit number.

[Argument(s)]

I/O

Argument

Description

I

ad_channel_t channel;

Channel number

ADCHANNEL0 : Input channel AN000

ADCHANNEL1 : Input channel AN001

ADCHANNEL2 : Input channel AN002

ADCHANNEL3 : Input channel AN003

ADCHANNEL4 : Input channel AN004

ADCHANNEL5 : Input channel AN005

ADCHANNEL6 : Input channel AN006

ADCHANNEL7 : Input channel AN007

ADCHANNEL8 : Input channel AN008

ADCHANNEL9 : Input channel AN009

ADCHANNEL10 : Input channel AN010

ADCHANNEL11 : Input channel AN011

ADCHANNEL12 : Input channel AN012

ADCHANNEL13 : Input channel AN013

ADCHANNEL14 : Input channel AN014

ADCHANNEL15 : Input channel AN015

ADCHANNEL16 : Input channel AN016

ADCHANNEL17 : Input channel AN017

ADCHANNEL18 : Input channel AN018

ADCHANNEL19 : Input channel AN019

ADCHANNEL20 : Input channel AN020

ADTEMPSENSOR : Extended analog input

(temperature sensor output)

ADINTERREFVOLT : Extended analog input

(internal reference voltage)

O

uint16_t * const buffer;

Pointer to the area where the results of conversion are stored

[Return value]

None.