{
lowgain = get_unipolar_lowgain( setup->dev, setup->ad_subdev );
highgain = get_unipolar_highgain( setup->dev, setup->ad_subdev );
-
- generic_prep_adc_caldacs( setup, layout, channel, highgain );
- reset_caldac( setup, layout->adc_postgain_offset( channel ) );
- /* need to make sure we aren't stuck on zero for unipolar,
- * by setting pregain offset to maximum */
- generic_peg( setup, layout->adc_ground_observable( setup, channel, lowgain ),
- layout->adc_offset( channel ), 1 );
- generic_peg( setup, layout->adc_ground_observable( setup, channel, lowgain ),
- layout->adc_offset_fine( channel ), 1 );
}else
{
lowgain = get_bipolar_lowgain( setup->dev, setup->ad_subdev );