Exemplo n.º 1
0
LEP_RESULT LEP_GetSysFramesToAverage( LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                      LEP_SYS_FRAME_AVERAGE_DIVISOR_E_PTR numFrameToAveragePtr )
{
   LEP_RESULT  result = LEP_OK;
   LEP_UINT16 attributeWordLength = 2; /* one 32-bit value enum */

   /* Validate Parameter(s) 
   */
   if( numFrameToAveragePtr == NULL )
   {
      return( LEP_BAD_ARG_POINTER_ERROR );
   }

   /* Perform Command
   ** Writing the Camera's current number of frames to average
   ** step
   */
   result = LEP_GetAttribute( portDescPtr,
                              ( LEP_COMMAND_ID )LEP_CID_SYS_NUM_FRAMES_TO_AVERAGE,
                              ( LEP_ATTRIBUTE_T_PTR )numFrameToAveragePtr,
                              attributeWordLength );


   return( result );
}
Exemplo n.º 2
0
LEP_RESULT LEP_GetSysCustSerialNumber(LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                      LEP_SYS_CUST_SERIAL_NUMBER_T_PTR sysCustSNPtr)
{
   LEP_RESULT result = LEP_OK;
   LEP_UINT16 attributeWordLength = 16;      /*32 byte string */

   if(sysCustSNPtr == NULL)
   {
      return(LEP_BAD_ARG_POINTER_ERROR);
   }

   result = LEP_GetAttribute(portDescPtr,
                             (LEP_COMMAND_ID)LEP_CID_SYS_CUST_SERIAL_NUMBER,
                             (LEP_ATTRIBUTE_T_PTR)sysCustSNPtr,
                             attributeWordLength);
}
Exemplo n.º 3
0
LEP_RESULT LEP_GetSysFFCStatus( LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                LEP_SYS_STATUS_E_PTR ffcStatusPtr )
{
   LEP_RESULT  result = LEP_OK;
   LEP_UINT16 attributeWordLength = 2;

   if( ffcStatusPtr == NULL )
   {
      return( LEP_BAD_ARG_POINTER_ERROR );
   }

   result = LEP_GetAttribute( portDescPtr,
                              ( LEP_COMMAND_ID )LEP_CID_SYS_FFC_STATUS,
                              ( LEP_ATTRIBUTE_T_PTR )ffcStatusPtr,
                              attributeWordLength );

   return( result );
}
Exemplo n.º 4
0
LEP_RESULT LEP_GetSysSceneRoi(LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                              LEP_SYS_VIDEO_ROI_T_PTR sceneRoiPtr)
{
   LEP_RESULT result = LEP_OK;
   LEP_UINT16 attributeWordLength = 4;    /* roi consists of 4 16-bit values */

   if(sceneRoiPtr == NULL)
   {
      return(LEP_BAD_ARG_POINTER_ERROR);
   }

   result = LEP_GetAttribute(portDescPtr,
                             (LEP_COMMAND_ID)LEP_CID_SYS_SCENE_ROI,
                             (LEP_ATTRIBUTE_T_PTR)sceneRoiPtr,
                             attributeWordLength);

   return(result);
}
Exemplo n.º 5
0
LEP_RESULT LEP_GetSysSceneStatistics( LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                      LEP_SYS_SCENE_STATISTICS_T_PTR sceneStatisticsPtr )
{
   LEP_RESULT result = LEP_OK;
   LEP_UINT16 attributeWordLength = 4;    /* struct contains 4 16-bit values */

   if( sceneStatisticsPtr == NULL )
   {
      return( LEP_BAD_ARG_POINTER_ERROR );
   }

   result = LEP_GetAttribute( portDescPtr,
                              ( LEP_COMMAND_ID )LEP_CID_SYS_SCENE_STATISTICS,
                              ( LEP_ATTRIBUTE_T_PTR )sceneStatisticsPtr,
                              attributeWordLength );

   return( result );
}
Exemplo n.º 6
0
LEP_RESULT LEP_GetSysThermalShutdownCount(LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                          LEP_SYS_THERMAL_SHUTDOWN_COUNTS_T_PTR thermalCountsPtr)
{
   LEP_RESULT result = LEP_OK;
   LEP_UINT16 attributeWordLength = 1;    /* 1 16-bit value */

   if(thermalCountsPtr == NULL)
   {
      return(LEP_BAD_ARG_POINTER_ERROR);
   }

   result = LEP_GetAttribute(portDescPtr,
                             (LEP_COMMAND_ID)LEP_CID_SYS_THERMAL_SHUTDOWN_COUNT,
                             (LEP_ATTRIBUTE_T_PTR)thermalCountsPtr,
                             attributeWordLength);

   return(result);
}
Exemplo n.º 7
0
LEP_RESULT LEP_GetSysShutterPosition(LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                  LEP_SYS_SHUTTER_POSITION_E_PTR shutterPositionPtr)
{
   LEP_RESULT result = LEP_OK;
   LEP_UINT16 attributeWordLength = 2;    /* enums are 32-bit */

   if(shutterPositionPtr == NULL)
   {
      return(LEP_BAD_ARG_POINTER_ERROR);
   }

   result = LEP_GetAttribute(portDescPtr,
                             (LEP_COMMAND_ID)LEP_CID_SYS_SHUTTER_POSITION,
                             (LEP_ATTRIBUTE_T_PTR)shutterPositionPtr,
                             attributeWordLength);

   return(result);
}
Exemplo n.º 8
0
LEP_RESULT LEP_GetSysFfcShutterModeObj( LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                     LEP_SYS_FFC_SHUTTER_MODE_OBJ_T_PTR shutterModeObjPtr )
{
   LEP_RESULT result = LEP_OK;
   LEP_UINT16 attributeWordLength = 16;

   if(shutterModeObjPtr == NULL)
   {
      return(LEP_BAD_ARG_POINTER_ERROR);
   }

   result = LEP_GetAttribute(portDescPtr,
                             (LEP_COMMAND_ID)LEP_CID_SYS_FFC_SHUTTER_MODE_OBJ,
                             (LEP_ATTRIBUTE_T_PTR)shutterModeObjPtr,
                             attributeWordLength);

   return(result);
}
Exemplo n.º 9
0
LEP_RESULT LEP_GetVidBoresightCoordinates(LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                          LEP_VID_BORESIGHT_COORDINATES_T_PTR boresightCoordinatesPtr)
{
   LEP_RESULT result = LEP_OK;
   LEP_UINT16 attributeWordLength = 16;

   if( boresightCoordinatesPtr == NULL )
   {
      return(LEP_BAD_ARG_POINTER_ERROR);
   }

   result = LEP_GetAttribute( portDescPtr,
                        (LEP_COMMAND_ID)LEP_CID_VID_BORESIGHT_COORDINATES,
                        (LEP_ATTRIBUTE_T_PTR)boresightCoordinatesPtr,
                        attributeWordLength );

   return(result);
}
Exemplo n.º 10
0
LEP_RESULT LEP_GetSysCameraUpTime( LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                   LEP_SYS_UPTIME_NUMBER_T_PTR sysCameraUpTimePtr )
{
   LEP_RESULT  result = LEP_OK;
   LEP_UINT16 attributeWordLength = 2; /* two 16-bit values */

   /* Validate Parameter(s)   */
   if( sysCameraUpTimePtr == NULL )
   {
      return( LEP_BAD_ARG_POINTER_ERROR );
   }

   /* Perform Command   ** Reading the Camera's Serial Number   */
   result = LEP_GetAttribute( portDescPtr,
                              ( LEP_COMMAND_ID )LEP_CID_SYS_CAM_UPTIME,
                              ( LEP_ATTRIBUTE_T_PTR )sysCameraUpTimePtr,
                              attributeWordLength );
   return( result );
}
Exemplo n.º 11
0
LEP_RESULT LEP_GetVidBoresightCalcEnableState(LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                              LEP_VID_BORESIGHT_CALC_ENABLE_STATE_E_PTR boresightCalcEnableStatePtr)
{
   LEP_RESULT result = LEP_OK;
   LEP_UINT16 attributeWordLength = 2; /* Enums are 32-bit */

   if(boresightCalcEnableStatePtr == NULL)
   {
      return(LEP_BAD_ARG_POINTER_ERROR);
   }

   result = LEP_GetAttribute( portDescPtr,
                           (LEP_COMMAND_ID)LEP_CID_VID_BORESIGHT_CALC_ENABLE,
                           (LEP_ATTRIBUTE_T_PTR)boresightCalcEnableStatePtr,
                           attributeWordLength );


   return(result);
}
Exemplo n.º 12
0
LEP_RESULT LEP_GetSysTelemetryEnableState( LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                           LEP_SYS_TELEMETRY_ENABLE_STATE_E_PTR enableStatePtr )
{
   LEP_RESULT result = LEP_OK;
   LEP_UINT16 attributeWordLength = 2; /* enums are 32-bits */

   if( enableStatePtr == NULL )
   {
      return( LEP_BAD_ARG_POINTER_ERROR );
   }

   /* Perform Command   **    */
   result = LEP_GetAttribute( portDescPtr,
                              ( LEP_COMMAND_ID )LEP_CID_SYS_TELEMETRY_ENABLE_STATE,
                              ( LEP_ATTRIBUTE_T_PTR )enableStatePtr,
                              attributeWordLength );

   return( result );
}
Exemplo n.º 13
0
LEP_RESULT LEP_GetSysFpaTemperatureKelvin( LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                           LEP_SYS_FPA_TEMPERATURE_KELVIN_T_PTR fpaTemperaturePtr )
{
   LEP_RESULT  result = LEP_OK;
   LEP_UINT16 attributeWordLength = 1; /* one 16-bit values */

   /* Validate Parameter(s)   */
   if( fpaTemperaturePtr == NULL )
   {
      return( LEP_BAD_ARG_POINTER_ERROR );
   }

   /* Perform Command   ** Reading the Camera's Serial Number   */
   result = LEP_GetAttribute( portDescPtr,
                              ( LEP_COMMAND_ID )LEP_CID_SYS_FPA_TEMPERATURE_KELVIN,
                              ( LEP_ATTRIBUTE_T_PTR )fpaTemperaturePtr,
                              attributeWordLength );
   return( result );
}
Exemplo n.º 14
0
LEP_RESULT LEP_GetSysTelemetryLocation( LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                        LEP_SYS_TELEMETRY_LOCATION_E_PTR telemetryLocationPtr )
{
   LEP_RESULT result = LEP_OK;
   LEP_UINT16 attributeWordLength = 2; /* enums are 32-bits */

   if( telemetryLocationPtr == NULL )
   {
      return( LEP_BAD_ARG_POINTER_ERROR );
   }

   /* Perform Command
   ** 
   */
   result = LEP_GetAttribute( portDescPtr,
                              ( LEP_COMMAND_ID )LEP_CID_SYS_TELEMETRY_LOCATION,
                              ( LEP_ATTRIBUTE_T_PTR )telemetryLocationPtr,
                              attributeWordLength );

   return( result );
}
Exemplo n.º 15
0
LEP_RESULT LEP_GetVidLowGainPcolorLut(LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                      LEP_PCOLOR_LUT_E_PTR vidPcolorLutPtr)
{
   LEP_RESULT  result = LEP_OK;
   LEP_UINT16 attributeWordLength = 2; /* two 16-bit values for 32-bit enum */

   /* Validate Parameter(s)
   */
   if( vidPcolorLutPtr == NULL )
   {
      return(LEP_BAD_ARG_POINTER_ERROR);
   }

   /* Perform Command
   ** Reading the Camera's current Video LUT selection
   */
   result = LEP_GetAttribute( portDescPtr,
                              (LEP_COMMAND_ID)LEP_CID_VID_LOW_GAIN_COLOR_LUT,
                              (LEP_ATTRIBUTE_T_PTR)vidPcolorLutPtr,
                              attributeWordLength );
   return( result );
}
Exemplo n.º 16
0
LEP_RESULT LEP_GetVidROI(LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                         LEP_VID_FOCUS_ROI_T_PTR vidROIPtr)
{
   LEP_RESULT  result = LEP_OK;
   LEP_UINT16 attributeWordLength = 4; /* four 16-bit values */

   /* Validate Parameter(s)
   */
   if( vidROIPtr == NULL )
   {
      return(LEP_BAD_ARG_POINTER_ERROR);
   }

   /* Perform Command
   ** Reading the Camera's AGC ROI
   */
   result = LEP_GetAttribute( portDescPtr,
                              (LEP_COMMAND_ID)LEP_CID_VID_FOCUS_ROI,
                              (LEP_ATTRIBUTE_T_PTR)vidROIPtr,
                              attributeWordLength );
   return( result );
}
Exemplo n.º 17
0
LEP_RESULT LEP_GetVidFocusMetricThreshold(LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                          LEP_VID_FOCUS_METRIC_THRESHOLD_T_PTR vidFocusMetricThresholdPtr)
{
   LEP_RESULT  result = LEP_OK;
   LEP_UINT16 attributeWordLength = 2; /* two 16-bit values */

   /* Validate Parameter(s)
   */
   if( vidFocusMetricThresholdPtr == NULL )
   {
      return(LEP_BAD_ARG_POINTER_ERROR);
   }

   /* Perform Command
   ** Reading the Camera's current video Focus Metric threshold
   */
   result = LEP_GetAttribute( portDescPtr,
                              (LEP_COMMAND_ID)LEP_CID_VID_FOCUS_THRESHOLD,
                              (LEP_ATTRIBUTE_T_PTR)vidFocusMetricThresholdPtr,
                              attributeWordLength );
   return( result );
}
Exemplo n.º 18
0
LEP_RESULT LEP_GetVidFreezeEnableState(LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                       LEP_VID_FREEZE_ENABLE_E_PTR vidFreezeEnableStatePtr)
{
   LEP_RESULT  result = LEP_OK;
   LEP_UINT16 attributeWordLength = 2; /* two 16-bit values for 32-bit enum */

   /* Validate Parameter(s)
   */
   if( vidFreezeEnableStatePtr == NULL )
   {
      return(LEP_BAD_ARG_POINTER_ERROR);
   }

   /* Perform Command
   ** Reading the Camera's current video freeze enable state
   */
   result = LEP_GetAttribute( portDescPtr,
                              (LEP_COMMAND_ID)LEP_CID_VID_FREEZE_ENABLE,
                              (LEP_ATTRIBUTE_T_PTR)vidFreezeEnableStatePtr,
                              attributeWordLength );
   return( result );
}
Exemplo n.º 19
0
LEP_RESULT LEP_GetVidVideoOutputFormat( LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                        LEP_VID_VIDEO_OUTPUT_FORMAT_E_PTR vidVideoOutputFormatPtr )
{
   LEP_RESULT  result = LEP_OK;
   LEP_UINT16 attributeWordLength = 2; /* two 16-bit values for 32-bit enum */

   /* Validate Parameter(s)
   */
   if( vidVideoOutputFormatPtr == NULL )
   {
      return( LEP_BAD_ARG_POINTER_ERROR );
   }

   /* Perform Command
   ** Reading the Camera's current video output format
   */
   result = LEP_GetAttribute( portDescPtr,
                              ( LEP_COMMAND_ID )LEP_CID_VID_VIDEO_OUTPUT_FORMAT,
                              ( LEP_ATTRIBUTE_T_PTR )vidVideoOutputFormatPtr,
                              attributeWordLength );
   return( result );
}
Exemplo n.º 20
0
LEP_RESULT LEP_GetVidPolarity(LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                              LEP_POLARITY_E_PTR vidPolarityPtr)
{
   LEP_RESULT  result = LEP_OK;
   LEP_UINT16 attributeWordLength = 2; /* two 16-bit values for 32-bit enum */

   /* Validate Parameter(s)
   */
   if( vidPolarityPtr == NULL )
   {
      return(LEP_BAD_ARG_POINTER_ERROR);
   }

   /* Perform Command
   ** Reading the Camera's Video Polarity
   */
   result = LEP_GetAttribute( portDescPtr,
                              (LEP_COMMAND_ID)LEP_CID_VID_POLARITY_SELECT,
                              (LEP_ATTRIBUTE_T_PTR)vidPolarityPtr,
                              attributeWordLength );
   return( result );
}
Exemplo n.º 21
0
LEP_RESULT LEP_GetSysStatus( LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                             LEP_STATUS_T_PTR sysStatusPtr )
{
   LEP_RESULT  result = LEP_OK;
   LEP_UINT16 attributeWordLength = 4; /* 4 16-bit values */

   /* Validate Parameter(s)
   */
   if( sysStatusPtr == NULL )
   {
      return( LEP_BAD_ARG_POINTER_ERROR );
   }

   /* Perform Command
   ** Reading the Camera's Status
   */
   result = LEP_GetAttribute( portDescPtr,
                              ( LEP_COMMAND_ID )LEP_CID_SYS_CAM_STATUS,
                              ( LEP_ATTRIBUTE_T_PTR )sysStatusPtr,
                              attributeWordLength );
   return( result );
}
Exemplo n.º 22
0
LEP_RESULT LEP_GetVidUserLut(LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                             LEP_VID_LUT_BUFFER_T_PTR vidUserLutBufPtr)
{
   LEP_RESULT  result = LEP_OK;
   LEP_UINT16 attributeWordLength = 512; /* 512 16-bit values for 1024 byte LUT*/

   /* Validate Parameter(s)
   */
   if( vidUserLutBufPtr == NULL )
   {
      return(LEP_BAD_ARG_POINTER_ERROR);
   }

   /* Perform Command
   ** Reading the Camera's User Video LUT
   */
   result = LEP_GetAttribute( portDescPtr,
                              (LEP_COMMAND_ID)LEP_CID_VID_LUT_TRANSFER,
                              (LEP_ATTRIBUTE_T_PTR)vidUserLutBufPtr,
                              attributeWordLength );
   return( result );
}
Exemplo n.º 23
0
LEP_RESULT LEP_GetSysFlirSerialNumber( LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                       LEP_SYS_FLIR_SERIAL_NUMBER_T_PTR sysSerialNumberBufPtr )
{
   LEP_RESULT  result = LEP_OK;
   LEP_UINT16 attributeWordLength = 4; /* 8 bytes values */

   /* Validate Parameter(s)
   */
   if( sysSerialNumberBufPtr == NULL )
   {
      return( LEP_BAD_ARG_POINTER_ERROR );
   }

   /* Perform Command
   ** Reading the Camera's Serial Number
   */
   result = LEP_GetAttribute( portDescPtr,
                              ( LEP_COMMAND_ID )LEP_CID_SYS_FLIR_SERIAL_NUMBER,
                              ( LEP_ATTRIBUTE_T_PTR )sysSerialNumberBufPtr,
                              attributeWordLength );
   return( result );
}
Exemplo n.º 24
0
LEP_RESULT LEP_GetVidFocusCalcEnableState(LEP_CAMERA_PORT_DESC_T_PTR portDescPtr,
                                          LEP_VID_FOCUS_CALC_ENABLE_E_PTR vidEnableFocusCalcStatePtr)
{
   LEP_RESULT  result = LEP_OK;
   LEP_UINT16 attributeWordLength = 2; /* two 16-bit values for 32-bit enum */

   /* Validate Parameter(s)
   */
   if( vidEnableFocusCalcStatePtr == NULL )
   {
      return(LEP_BAD_ARG_POINTER_ERROR);
   }

   /* Perform Command
   ** Reading the Camera's Video Focus Metric calculation enable
   ** state
   */
   result = LEP_GetAttribute( portDescPtr,
                              (LEP_COMMAND_ID)LEP_CID_VID_FOCUS_CALC_ENABLE,
                              (LEP_ATTRIBUTE_T_PTR)vidEnableFocusCalcStatePtr,
                              attributeWordLength );
   return( result );
}