public Bme280(string i2CControllerName, StandbySettingsE tSb = StandbySettingsE.TSB_1000_MS, ModeE mode = ModeE.SM_NORMAL, FilterCoefficientE filter = FilterCoefficientE.FC_16, OversamplingE osrsP = OversamplingE.OS4_X, OversamplingE osrsT = OversamplingE.OS2_X, OversamplingE osrsH = OversamplingE.OS8_X) { _i2CControllerName = i2CControllerName; _tSb = (byte)tSb; _mode = (byte)mode; _filter = (byte)filter; _osrsP = (byte)osrsP; _osrsT = (byte)osrsT; _osrsH = (byte)osrsH; }
public void Process(FileStream source, FileStream target, ModeE mode) { mSource = source; mTarget = target; if (mode == ModeE.MODE_ENCODE) { mAC.SetFile(mTarget); Encode(); mAC.EncodeFinish(); } else { mAC.SetFile(mSource); mAC.DecodeStart(); Decode(); } }
public void Process(Stream source, Stream target, ModeE mode) { mSource = source; mTarget = target; if (mode == ModeE.MODE_ENCODE) { mAC.SetStream(mTarget); // encode Encode(); mAC.EncodeFinish(); } else // mode == ModeE.MODE_DECODE { mAC.SetStream(mSource); mAC.DecodeStart(); // decode Decode(); } }