/* Configures the specified ADC injected channel conversion value offset.  */
void ADC_ConfigInjectedOffset(ADC_T *adc, ADC_INJEC_CHANNEL_T channel, uint16_t offset)
/* Configures the specified ADC injected channel conversion value offset.  */
void ADC_ConfigInjectedOffset(ADC_T *adc, ADC_INJEC_CHANNEL_T channel, uint16_t offset)
{
    switch ((uint8_t)channel)
    {
    case 0x01:
        adc->INJDOF1_B.INJDOF1 = offset;
        break;
    case 0x02:
        adc->INJDOF2_B.INJDOF2 = offset;
        break;
    case 0x03:
        adc->INJDOF3_B.INJDOF3 = offset;
        break;
    case 0x04:
        adc->INJDOF4_B.INJDOF4 = offset;
        break;
    default :
        break;
    }
}