From 1af8e5a324fe55aaaac978c78c7b3cf4408496e9 Mon Sep 17 00:00:00 2001 From: iximeow Date: Tue, 23 Jul 2019 21:43:31 -0700 Subject: adjust qhy support to work properly in single-frame mode, fix channel ordering issue --- src/qhyccd/QHYCCDCam.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/qhyccd/QHYCCDCam.rs') diff --git a/src/qhyccd/QHYCCDCam.rs b/src/qhyccd/QHYCCDCam.rs index 960993e..b5911c1 100644 --- a/src/qhyccd/QHYCCDCam.rs +++ b/src/qhyccd/QHYCCDCam.rs @@ -1,7 +1,7 @@ use std::os; #[repr(u32)] -#[derive(Copy, Clone, Debug)] +#[derive(Copy, Clone, Debug, PartialEq)] pub enum QHYResult { QHYCCD_SUCCESS = 0, QHYCCD_READ_DIRECTLY = 0x2001, @@ -118,6 +118,7 @@ extern "C" { bpp: *mut os::raw::c_int) -> os::raw::c_int; pub fn CancelQHYCCDExposingAndReadout(handle: *mut os::raw::c_void) -> os::raw::c_int; pub fn ControlQHYCCDTemp(handle: *mut os::raw::c_void, target: os::raw::c_double) -> os::raw::c_int; + pub fn SetQHYCCDLogLevel(log_level: os::raw::c_char); pub fn SetQHYCCDDebayerOnOff(handle: *mut os::raw::c_void, onoff: os::raw::c_int) -> os::raw::c_int; pub fn SetQHYCCDBinMode(handle: *mut os::raw::c_void, wbin: os::raw::c_int, hbin: os::raw::c_int) -> os::raw::c_int; pub fn SetQHYCCDBitsMode(handle: *mut os::raw::c_void, bits: os::raw::c_int) -> os::raw::c_int; -- cgit v1.1