gxci 0.2.0

A safe raw-and-HAL camera interface based on Daheng-Image's GxIAPI(Galaxy Camera SDK)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Place holder for the configuration of the HAL,JUST MORE HUMAN READABLE

// use crate::hal::basement::{GXI,gxi_check};
// use crate::raw::{gx_interface::*, gx_const::*, gx_struct::*, gx_enum::*,gx_handle::*};
// use crate::utils::builder::GXDeviceBaseInfoBuilder;

// pub fn gxi_set_float(handle: GX_DEV_HANDLE, feature_id: GX_FEATURE_ID, value: f64) -> Result<(), GxciError> {
//     unsafe {
//         let status = GXI.as_ref().ok_or_else(|| GxciError::InitializationError("GXI is None. Please check your gxci_init situation.".to_string()))?
//             .gx_set_float(handle, feature_id, value)?;
//         if status == 0 {
//             Ok(())
//         } else {
//             Err(GxciError::GalaxyError(status))
//         }
//     }
// }