Expand description
§QHYCCD SDK bindings for Rust
This crate provides a safe interface to the QHYCCD SDK for controlling QHYCCD cameras, filter wheels and focusers. The libqhyccd-sys crate provides the raw FFI bindings. It uses tracing for logging and eyre for error handling.
§Example
use qhyccd_rs::Sdk;
let sdk = Sdk::new().expect("SDK::new failed");
let sdk_version = sdk.version().expect("get_sdk_version failed");
println!("SDK version: {:?}", sdk_version);
Structs§
- this struct is used in
get_overscan_area
,get_effective_area
,set_roi
andget_roi
- Camera sensor info
- The representation of a camera. It is constructed by the SDK and can be used to interact with the camera.
- The representation of a filter wheel. It is constructed by the SDK and can be used to interact with the filter wheel - every filter wheel is always plugged into a camera.
- the image data coming from the camera in
get_live_frame
andget_single_frame
- used to store readout mode numbers and their descriptions coming from
get_readout_mode_name
- returned from
SDK::version
- The representation of the SDK. It automatically allocates the SDK when constructed and automatically frees resource when deconstructed.
Enums§
- this struct is returned from
is_control_available
when used withControl::CamColor
- Controls used in
is_control_available
andset_parameter
nadget_parameter
documentation is taken from the QHYCCD SDK here https://www.qhyccd.cn/file/repository/publish/SDK/code/QHYCCD%20SDK_API_EN_V2.3.pdf - Errors that can occur when interacting with the QHYCCD SDK most functions from the SDK return
u32::MAX
on error where it is different, is is noted in the documentation - Stream mode used in
set_stream_mode