G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
Configuration of ADC hierarchical scope: channels

Functions

__STATIC_INLINE void DDL_ADC12_SetChannelSamplingTime (ADC12_TypeDef *ADCx, uint32_t Channel, uint32_t SamplingTime)
 Set sampling time of the selected ADC channel Unit: ADC clock cycles.
__STATIC_INLINE uint32_t DDL_ADC12_GetChannelSamplingTime (ADC12_TypeDef *ADCx, uint32_t Channel)
 Get sampling time of the selected ADC channel Unit: ADC clock cycles.

Detailed Description

Function Documentation

◆ DDL_ADC12_GetChannelSamplingTime()

__STATIC_INLINE uint32_t DDL_ADC12_GetChannelSamplingTime ( ADC12_TypeDef * ADCx,
uint32_t Channel )

Get sampling time of the selected ADC channel Unit: ADC clock cycles.

Note
On this device, sampling time is on channel scope: independently of channel mapped on ADC group regular or injected.
Parameters
ADCxADC instance
ChannelThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 1920 of file g32r4xx_ddl_adc12.h.

◆ DDL_ADC12_SetChannelSamplingTime()

__STATIC_INLINE void DDL_ADC12_SetChannelSamplingTime ( ADC12_TypeDef * ADCx,
uint32_t Channel,
uint32_t SamplingTime )

Set sampling time of the selected ADC channel Unit: ADC clock cycles.

Note
On this device, sampling time is on channel scope: independently of channel mapped on ADC group regular or injected.
In case of internal channel (VrefInt, TempSensor, ...) to be converted: sampling time constraints must be respected (sampling time can be adjusted in function of ADC clock frequency and sampling time setting). Refer to device datasheet for timings values (parameters TS_vrefint, TS_temp, ...).
In case of ADC conversion of internal channel (VrefInt, temperature sensor, ...), a sampling time minimum value is required. Refer to device datasheet.
Parameters
ADCxADC instance
ChannelThis parameter can be one of the following values:
SamplingTimeThis parameter can be one of the following values:
Return values
None

Definition at line 1874 of file g32r4xx_ddl_adc12.h.