/* param base ADC peripheral base address. param config Pointer to "adc_offest_config_t" structure.  */
void ADC_SetOffsetConfig(ADC_Type *base, const adc_offest_config_t *config)
/* param base ADC peripheral base address. param config Pointer to "adc_offest_config_t" structure.  */
void ADC_SetOffsetConfig(ADC_Type *base, const adc_offest_config_t *config)
{
    assert(NULL != config);
    uint32_t tmp32;
    tmp32 = ADC_OFS_OFS(config->offsetValue);
    if (config->enableSigned)
    {
        tmp32 |= ADC_OFS_SIGN_MASK;
    }
    base->OFS = tmp32;
}