The sampling rate of ADC

Is there an API of setting the sampling rate?

It seem to exist only BitResolution and AvgSamples.

Best regards.

@Rajat can you please look into libs for this.