def setMode(self
                    ,mode  
                    ,polarity 
                    ,den 
                    ,iovalue 
                    ,data_length 
                    ,reference 
                    ,input_range 
                    ,clock_enable 
                    ,burn_out 
                    ,channel):
        '''
        def setMode(self
                    ,mode = self.AD7730_IDLE_MODE 
                    ,polarity = self.AD7730_UNIPOLAR_MODE
                    ,den = self.AD7730_IODISABLE_MODE
                    ,iovalue = 0b00
                    ,data_lenght = self.AD7730_24bitDATA_MODE
                    ,reference = self.AD7730_REFERENCE_5V
                    ,input_range = self.AD7730_40mVIR_MODE
                    ,clock_enable = self.AD7730_MCLK_ENABLE_MODE
                    ,burn_out = self.AD7730_BURNOUT_DISABLE
                    ,channel = self.AD7730_AIN1P_AIN1N
               ):
        '''
        mode_MSB = (mode << 5) + (polarity << 4) + (den << 3) + (iovalue << 1) + data_length
        mode_LSB = (reference << 7) + (0b0 << 6) + (input_range << 4) + (clock_enable << 3) + (burn_out << 2) + channel
    
        self.single_write(self.AD7730_MODE_REG, [mode_MSB, mode_LSB])