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
-
| ADCx | ADC instance |
| Offsety | This parameter can be one of the following values:
|
| OffsetLevel | Value between Min_Data=0x0000 and Max_Data=0xFFF |
- Return values
-
Definition at line 876 of file g32r4xx_ddl_adc12.h.