EasyManuals Logo
Home>Renesas>Control Unit>RX110

Renesas RX110 User Manual

Renesas RX110
88 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #7 background imageLoading...
Page #7 background image
RX Family ADC Module Using Firmware Integration Technology
R01AN1666EJ0220 Rev. 2.20 Page 7 of 74
Dec 01, 2016
ADC_EVT_CONDITION_METB // 1+ chans/sensors met comparator condition
#endif
} adc_cb_evt_t;
typedef struct st_adc_cb_args // callback arguments
{
adc_cb_evt_t event;
#if (defined(BSP_MCU_RX64M) || defined(BSP_MCU_RX71M) ||
defined(BSP_MCU_RX65_ALL))
uint32_t compare_flags; // valid only for compare event
#if (defined(BSP_MCU_RX65_ALL))
uint32_t compare_flagsb; // valid only for compare event b
#endif
uint8_t unit;
#endif
} adc_cb_args_t;
/* INTERFACE FUNCTIONS */
adc_err_t R_ADC_Open(uint8_t const unit,
adc_mode_t const mode,
adc_cfg_t * const p_cfg,
void (* const p_callback)(void *p_args));
adc_err_t R_ADC_Control(uint8_t const unit,
adc_cmd_t const cmd,
void * const p_args);
adc_err_t R_ADC_Read(uint8_t const unit,
adc_reg_t const reg_id,
uint16_t * const p_data);
adc_err_t R_ADC_ReadAll(adc_data_t * const p_all_data);
adc_err_t R_ADC_Close(uint8_t const unit);
uint32_t R_ADC_GetVersion(void);
2.10.2 RX110 Interface Types ( r_s12ad_rx110_if.h )
/* ADC_OPEN() ARGUMENT DEFINITIONS */
typedef enum e_adc_mode
{
ADC_MODE_SS_TEMPERATURE, // single scan temperature sensor
ADC_MODE_SS_INT_REF_VOLT, // single scan internal ref voltage sensor
ADC_MODE_SS_ONE_CH, // single scan one channel
ADC_MODE_SS_MULTI_CH, // 1 trigger source, scan multiple channels
ADC_MODE_CONT_ONE_CH, // continuous scan one channel
ADC_MODE_CONT_MULTI_CH, // continuous scan multiple channels
ADC_MODE_SS_ONE_CH_DBLTRIG, // on even trig save to ADDBLDR & interrupt
ADC_MODE_SS_MULTI_CH_GROUPED, // 2 trigger sources, scan multiple channels
ADC_MODE_SS_MULTI_CH_GROUPED_DBLTRIG_A,
ADC_MODE_MAX // This definition DO NOT USE for R_ADC_Open() argument
} adc_mode_t;
typedef enum e_adc_trig // trigger sources (set to TRSA bit or TRSB bit)
{
ADC_TRIG_ASYNC_ADTRG = 0, // ext asynchronous trigger; not for
// Group modes nor double trigger modes
ADC_TRIG_SYNC_TRG0AN = 1, // MTU0 TRGA
ADC_TRIG_SYNC_TRG0BN = 2, // MTU0 TRGB
ADC_TRIG_SYNC_TRGAN = 3, // MTUx TRGA

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RX110 and is the answer not in the manual?

Renesas RX110 Specifications

General IconGeneral
BrandRenesas
ModelRX110
CategoryControl Unit
LanguageEnglish

Related product manuals