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

Functions

__STATIC_INLINE void DDL_ADC12_INJ_SetOffset (ADC12_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetLevel)
 Set ADC selected offset number 1, 2, 3 or 4.
__STATIC_INLINE uint32_t DDL_ADC12_INJ_GetOffset (ADC12_TypeDef *ADCx, uint32_t Offsety)
 Get for the ADC selected offset number 1, 2, 3 or 4: Offset level (offset to be subtracted from the raw converted data).

Detailed Description

Function Documentation

◆ DDL_ADC12_INJ_GetOffset()

__STATIC_INLINE uint32_t DDL_ADC12_INJ_GetOffset ( ADC12_TypeDef * ADCx,
uint32_t Offsety )

Get for the ADC selected offset number 1, 2, 3 or 4: Offset level (offset to be subtracted from the raw converted data).

Parameters
ADCxADC instance
OffsetyThis parameter can be one of the following values:
Return values
Valuebetween Min_Data=0x0000 and Max_Data=0xFFF

Definition at line 897 of file g32r4xx_ddl_adc12.h.

◆ DDL_ADC12_INJ_SetOffset()

__STATIC_INLINE void DDL_ADC12_INJ_SetOffset ( ADC12_TypeDef * ADCx,
uint32_t Offsety,
uint32_t OffsetLevel )

Set ADC selected offset number 1, 2, 3 or 4.

Note
This function set the 2 items of offset configuration:
  • ADC channel to which the offset programmed will be applied (independently of channel mapped on ADC group regular or group injected)
  • Offset level (offset to be subtracted from the raw converted data).
This function enables the offset, by default. It can be forced to disable state using function DDL_ADC12_SetOffsetState().
If a channel is mapped on several offsets numbers, only the offset with the lowest value is considered for the subtraction.
Parameters
ADCxADC instance
OffsetyThis parameter can be one of the following values:
OffsetLevelValue between Min_Data=0x0000 and Max_Data=0xFFF
Return values
None

Definition at line 876 of file g32r4xx_ddl_adc12.h.