diff options
author | iximeow <me@iximeow.net> | 2019-07-23 21:43:31 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2019-07-23 21:43:31 -0700 |
commit | 1af8e5a324fe55aaaac978c78c7b3cf4408496e9 (patch) | |
tree | c9fb56526ce5a8621122d6404b43d6968788323e /src/qhyccd/QHYCCDCam.rs | |
parent | 12ade9b864d56edc4cf3132e3de5dd2faa38f93e (diff) |
adjust qhy support to work properly in single-frame mode, fix channel ordering issue
Diffstat (limited to 'src/qhyccd/QHYCCDCam.rs')
-rw-r--r-- | src/qhyccd/QHYCCDCam.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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; |