     }
 
     /* update specified channel configuration */
-    write_adc_register(channel, value, 2);
+    set_adc_register(channel, value, 2);
     /* return error code */
     return 0;
 }

}

/*
============================================
initializes the SPI connection with the ADC
@return bool - is ADC ID valid

#define GAIN6_REG 0x3E
#define GAIN7_REG 0x3F
#define IFMODE_REG 0x02
#define STATUS_REG 0x00
#define ADCMODE_REG 0x01
#define OFFSET0_REG 0x30
#define OFFSET1_REG 0x31
