示例#1
0
 public static extern double GetQHYCCDParam(IntPtr handle, CONTROL_ID controlId);
示例#2
0
 public static extern UInt32 GetQHYCCDParamMinMaxStep(IntPtr handle, CONTROL_ID controlId, ref double min,
                                                      ref double max, ref double step);
示例#3
0
 public static extern UInt32 IsQHYCCDControlAvailable(IntPtr handle, CONTROL_ID controlId);
示例#4
0
 public static extern UInt32 SetQHYCCDParam(IntPtr handle, CONTROL_ID controlId, double value);
示例#5
0
 public unsafe static extern uint SetQHYCCDParam(IntPtr handle, CONTROL_ID controlid, double value);
示例#6
0
 private Control(IntPtr cameraHandle, CONTROL_ID id)
 {
     _cameraHandle = cameraHandle;
     _id           = id;
     QhyCcdDll.GetQHYCCDParamMinMaxStep(cameraHandle, id, ref _min, ref _max, ref _step);
 }
示例#7
0
 public unsafe static extern uint GetQHYCCDParamMinMaxStep(IntPtr handle, CONTROL_ID controlid, ref double min, ref double max, ref double step);
示例#8
0
 public unsafe static extern uint IsQHYCCDControlAvailable(IntPtr handle, CONTROL_ID controlid);
示例#9
0
 private static extern int IsQHYCCDControlAvailableExternal(IntPtr handle, CONTROL_ID control);
示例#10
0
 public static extern int SetQHYCCDParam(IntPtr handle, CONTROL_ID control, double value);
示例#11
0
        public static bool IsQHYCCDControlAvailable(IntPtr handle, CONTROL_ID control)
        {
            int result = IsQHYCCDControlAvailableExternal(handle, control);

            if (result == QHYCCDResult.QHYCCD_SUCCESS)
                return true;
            else if (result == QHYCCDResult.QHYCCD_ERROR_NOT_SUPPORTED)
                return false;
            else if (result == QHYCCDResult.QHYCCD_ERROR)
                return false;

            throw new QHYCCDException(result);
        }
示例#12
0
 public static extern int GetQHYCCDParamMinMaxStep(IntPtr handle, CONTROL_ID control, ref double min, ref double max, ref double step);
示例#13
0
 public static extern double GetQHYCCDParam(IntPtr handle, CONTROL_ID control);