private bool Check120fps() { uint[] data = new uint[1]; uint hoge = 0; if (USBIF.ReceiveCommand(0x0B, 0, (uint)data.Length, data) != USBIFSTATUS.E_OK) { throw new PlatformNotSupportedException("120fps Open Err"); //return false; } /*!!!*/ if ((data[0] & 0x20) != 0) { //WDR = on } if (USBIF.ReadReg(0x6C, ref hoge, 0) != USBIFSTATUS.E_OK) { throw new PlatformNotSupportedException("120fps Open Err"); //return false; } if (hoge != 0 && (data[0] & 0x1F) == 0x12) { //120 On } return(true); }
protected override USBIFSTATUS btc_CapSet() => USBIF.CaptureImage(img_io2uint, img_io2uint.Length, 0u, 1);
protected override bool btc_SetStopDMA() => USBIF.DmaWriteReg(0, 0, 2) == USBIFSTATUS.E_OK ? true : false;