G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference

Topics

 ADC registers compliant with specific purpose
 ADC instance - Offset number
 ADC instance - Channel number
 ADC group regular - Continuous mode
 ADC group regular - DMA transfer of ADC conversion data
 ADC group injected - Trigger source
 ADC group injected - Trigger edge
 ADC group injected - Sequencer ranks
 ADC group injected - Automatic trigger mode
 Channel - Sampling time
 Analog watchdog - Analog watchdog number
 Analog watchdog - Monitored channels
 Analog watchdog - Thresholds
 ADC flags
 Flags defines which can be used with DDL_ADC12_ReadReg function.
 ADC interruptions for configuration (interruption enable or disable)
 IT defines which can be used with DDL_ADC12_ReadReg and DDL_ADC12_WriteReg functions.
 alignment

Macros

#define __ADC12_PTR_REG_OFFSET(__REG__, __REG_OFFFSET__)
 Driver macro reserved for internal use: set a pointer to a register from a register basis from which an offset is applied.
#define __DDL_ADC12_CHANNEL_TO_DECIMAL_NB(__CHANNEL__)
 Helper macro to get ADC channel number in decimal format from literals DDL_ADC12_CHANNEL_x.

Detailed Description

Macro Definition Documentation

◆ __ADC12_PTR_REG_OFFSET

#define __ADC12_PTR_REG_OFFSET ( __REG__,
__REG_OFFFSET__ )
Value:
((__IO uint32_t *)((uint32_t) ((uint32_t)(&(__REG__)) + ((__REG_OFFFSET__) << 2UL))))

Driver macro reserved for internal use: set a pointer to a register from a register basis from which an offset is applied.

Parameters
__REG__Register basis from which the offset is applied.
__REG_OFFFSET__Offset to be applied (unit: number of registers).
Return values
Pointerto register address

Definition at line 762 of file g32r4xx_ddl_adc12.h.

◆ __DDL_ADC12_CHANNEL_TO_DECIMAL_NB

#define __DDL_ADC12_CHANNEL_TO_DECIMAL_NB ( __CHANNEL__)
Value:
((uint32_t)((__CHANNEL__ & ADC_CFGR_AWD1CH_Msk) >> ADC_CFGR_AWD1CH_Pos))

Helper macro to get ADC channel number in decimal format from literals DDL_ADC12_CHANNEL_x.

Note
Example: __DDL_ADC12_CHANNEL_TO_DECIMAL_NB(DDL_ADC12_CHANNEL_4) will return decimal number "4".
The input can be a value from functions where a channel number is returned, either defined with number or with bitfield (only one bit must be set).
Parameters
__CHANNEL__This parameter can be one of the following values:
Return values
Valuebetween Min_Data=0 and Max_Data=15

Definition at line 793 of file g32r4xx_ddl_adc12.h.