G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
Configuration of ADC transversal scope: oversampling

Functions

__STATIC_INLINE void DDL_ADC16_SetOverSamplingScope (ADC16_TypeDef *ADCx, uint32_t OvsScope)
 Set ADC oversampling scope: ADC groups regular and-or injected.
__STATIC_INLINE uint32_t DDL_ADC16_GetOverSamplingScope (ADC16_TypeDef *ADCx)
 Get ADC oversampling scope: ADC groups regular and-or injected.
__STATIC_INLINE void DDL_ADC16_SetOverSamplingDiscont (ADC16_TypeDef *ADCx, uint32_t OverSamplingDiscont)
 Set ADC oversampling discontinuous mode (triggered mode) on the selected ADC group.
__STATIC_INLINE uint32_t DDL_ADC16_GetOverSamplingDiscont (ADC16_TypeDef *ADCx)
 Get ADC oversampling discontinuous mode (triggered mode) on the selected ADC group.
__STATIC_INLINE void DDL_ADC16_ConfigOverSamplingRatioShift (ADC16_TypeDef *ADCx, uint32_t Ratio, uint32_t Shift)
 Set ADC oversampling (impacting both ADC groups regular and injected).
__STATIC_INLINE uint32_t DDL_ADC16_GetOverSamplingRatio (ADC16_TypeDef *ADCx)
 Get ADC oversampling ratio (impacting both ADC groups regular and injected).
__STATIC_INLINE uint32_t DDL_ADC16_GetOverSamplingShift (ADC16_TypeDef *ADCx)
 Get ADC oversampling shift (impacting both ADC groups regular and injected).

Detailed Description

Function Documentation

◆ DDL_ADC16_ConfigOverSamplingRatioShift()

__STATIC_INLINE void DDL_ADC16_ConfigOverSamplingRatioShift ( ADC16_TypeDef * ADCx,
uint32_t Ratio,
uint32_t Shift )

Set ADC oversampling (impacting both ADC groups regular and injected).

Note
This function set the 2 items of oversampling configuration:
  • ratio
  • shift
Parameters
ADCxADC instance
RatioThis parameter can be one of the following values:
ShiftThis parameter can be one of the following values:
Return values
None

Definition at line 2902 of file g32r4xx_ddl_adc16.h.

◆ DDL_ADC16_GetOverSamplingDiscont()

__STATIC_INLINE uint32_t DDL_ADC16_GetOverSamplingDiscont ( ADC16_TypeDef * ADCx)

Get ADC oversampling discontinuous mode (triggered mode) on the selected ADC group.

Note
Number of oversampled conversions are done either in:
  • continuous mode (all conversions of oversampling ratio are done from 1 trigger)
  • discontinuous mode (each conversion of oversampling ratio needs a trigger)
Parameters
ADCxADC instance
Return values
Returnedvalue can be one of the following values:

Definition at line 2877 of file g32r4xx_ddl_adc16.h.

◆ DDL_ADC16_GetOverSamplingRatio()

__STATIC_INLINE uint32_t DDL_ADC16_GetOverSamplingRatio ( ADC16_TypeDef * ADCx)

Get ADC oversampling ratio (impacting both ADC groups regular and injected).

Parameters
ADCxADC instance
Return values
RatioThis parameter can be one of the following values:

Definition at line 2917 of file g32r4xx_ddl_adc16.h.

◆ DDL_ADC16_GetOverSamplingScope()

__STATIC_INLINE uint32_t DDL_ADC16_GetOverSamplingScope ( ADC16_TypeDef * ADCx)

Get ADC oversampling scope: ADC groups regular and-or injected.

Note
If both groups regular and injected are selected, specify behavior of ADC group injected interrupting group regular: when ADC group injected is triggered, the oversampling on ADC group regular is either temporary stopped and continued, or resumed from start (oversampler buffer reset).
Parameters
ADCxADC instance
Return values
Returnedvalue can be one of the following values:

Definition at line 2837 of file g32r4xx_ddl_adc16.h.

◆ DDL_ADC16_GetOverSamplingShift()

__STATIC_INLINE uint32_t DDL_ADC16_GetOverSamplingShift ( ADC16_TypeDef * ADCx)

Get ADC oversampling shift (impacting both ADC groups regular and injected).

Parameters
ADCxADC instance
Return values
ShiftThis parameter can be one of the following values:

Definition at line 2933 of file g32r4xx_ddl_adc16.h.

◆ DDL_ADC16_SetOverSamplingDiscont()

__STATIC_INLINE void DDL_ADC16_SetOverSamplingDiscont ( ADC16_TypeDef * ADCx,
uint32_t OverSamplingDiscont )

Set ADC oversampling discontinuous mode (triggered mode) on the selected ADC group.

Note
Number of oversampled conversions are done either in:
  • continuous mode (all conversions of oversampling ratio are done from 1 trigger)
  • discontinuous mode (each conversion of oversampling ratio needs a trigger)
Oversampling discontinuous mode (triggered mode) can be used only when oversampling is set on group regular only and in resumed mode.
Parameters
ADCxADC instance
OverSamplingDiscontThis parameter can be one of the following values:
Return values
None

Definition at line 2859 of file g32r4xx_ddl_adc16.h.

◆ DDL_ADC16_SetOverSamplingScope()

__STATIC_INLINE void DDL_ADC16_SetOverSamplingScope ( ADC16_TypeDef * ADCx,
uint32_t OvsScope )

Set ADC oversampling scope: ADC groups regular and-or injected.

Note
If both groups regular and injected are selected, specify behavior of ADC group injected interrupting group regular: when ADC group injected is triggered, the oversampling on ADC group regular is either temporary stopped and continued, or resumed from start (oversampler buffer reset).
Parameters
ADCxADC instance
OvsScopeThis parameter can be one of the following values:
Return values
None

Definition at line 2816 of file g32r4xx_ddl_adc16.h.