public void VBIT(ADC_MUX mux, out float fval) { fval = new ByteAssembler(Query(Cmd.VBIT_MEAS, new byte[] { (byte)mux, 27, 16 }, 4), (INFO.m_cfg_ver > 127) ? ByteAssembler.Order.LE : ByteAssembler.Order.BE, 0).fval; }
/// <summary> /// /// </summary> /// <param name="mux"></param> /// <param name="val"></param> public void ADC(ADC_MUX mux, out UInt16 val) { val = new ByteAssembler(Query(Cmd.SCI_ADC_READ, new byte[] { (byte)mux }, 2), (INFO.m_cfg_ver > 127) ? ByteAssembler.Order.LE : ByteAssembler.Order.BE, 0).u16; }