Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
CCDParameters.h
Go to the documentation of this file.
1 #ifndef CCDPARAMETERS_H
2 #define CCDPARAMETERS_H
3 
4 #include <stdint.h>
5 
6 #define CCDPARAM_TDI_LINEPERIOD 0x00080001
7 #define CCDPARAM_TDI_MODECONFIG 0x00080002
8 #define CCDPARAM_TDI_ENABLE 0x00080003
9 #define CCDPARAM_TAG_ENABLE 0x00080004
10 #define CCDPARAM_GET_CAPS 0x000808FF
11 
12 /* CCDPARAM_TDI_LINEPERIOD */
13 typedef struct tsCcdParamTdiLinePeriod {
16 
18 #define CCD_BINMODE_1x1 0x00000000
19 #define CCD_BINMODE_2x2 0x00000001
20 #define CCD_BINMODE_4x4 0x00000002
21 #define CCD_BINMODE_8x8 0x00000004
22 
23 /* CCDPARAM_TDI_MODECONFIG */
24 typedef struct tsCcdParamTdiModeConfig {
25  uint32_t mnLinesPerImage;
26  uint32_t mnInitialSkipLines;
28  uint32_t mnBinMode;
30 
31 /* CCDPARAM_TDI_ENABLE */
32 typedef struct tsCcdParamTdiEnable {
33  uint32_t mnEnable;
35 
36 /* CCDPARAM_TAG_ENABLE */
37 typedef struct tsCcdParamTagEnable {
38  uint32_t mnEnable[3];
39  uint32_t mnColumn[3];
41 
42 /* CCDPARAM_GET_CAPS */
44 
45 #define CCD_NUM_CAPS 32
46 #define CAMAPP_V_BIN 0
48 #define CAMAPP_H_BIN 1
50 #define CAMAPP_A_BIN 2
52 #define CAMAPP_TDI_F 3
54 #define CAMAPP_WEB 4
56 
57 typedef struct tsCcdParamCaps {
58  uint8_t maCaps[CCD_NUM_CAPS];
59  typedef union tuCapVal {
60  float mnFloat;
61  int32_t mnInt;
62  uint32_t mnUint;
63  } tuCapVal;
67 
68 #endif
tsCcdParamTdiEnable
Definition: CCDParameters.h:32
tsCcdParamCaps
Definition: CCDParameters.h:57
tsCcdParamCaps::tuCapVal::mnUint
uint32_t mnUint
Definition: CCDParameters.h:62
tsCcdParamTagEnable::mnColumn
uint32_t mnColumn[3]
column position to tag bit
Definition: CCDParameters.h:39
tsCcdParamCaps::tuCapVal
Definition: CCDParameters.h:59
tsCcdParamTagEnable
Definition: CCDParameters.h:37
tsCcdParamTdiModeConfig::mnBinMode
uint32_t mnBinMode
binning mode (See defines)
Definition: CCDParameters.h:28
tsCcdParamTagEnable
struct tsCcdParamTagEnable tsCcdParamTagEnable
tsCcdParamCaps::tuCapVal::mnInt
int32_t mnInt
Definition: CCDParameters.h:61
tsCcdParamCaps::tuCapVal
union tsCcdParamCaps::tuCapVal tuCapVal
tsCcdParamCaps::maCapVals
tuCapVal maCapVals[CCD_NUM_CAPS]
each capability can have an optional value associated with it
Definition: CCDParameters.h:65
tsCcdParamTdiModeConfig
Definition: CCDParameters.h:24
tsCcdParamTdiModeConfig::mnInterFrameSkipLines
uint32_t mnInterFrameSkipLines
number of lines to skip between consecutive frames
Definition: CCDParameters.h:27
tsCcdParamTdiModeConfig::mnInitialSkipLines
uint32_t mnInitialSkipLines
number of lines to skip prior to accumulating first image
Definition: CCDParameters.h:26
tsCcdParamLinePeriod
struct tsCcdParamTdiLinePeriod tsCcdParamLinePeriod
tsCcdParamTdiLinePeriod::mnTdiLinePeriod_usec
uint32_t mnTdiLinePeriod_usec
this is only valid when TDI mode is enabled on internal triggering
Definition: CCDParameters.h:14
tsCcdParamCaps::maCaps
uint8_t maCaps[CCD_NUM_CAPS]
Definition: CCDParameters.h:58
tsCcdParamCaps::tuCapVal::mnFloat
float mnFloat
Definition: CCDParameters.h:60
tsCcdParamTdiModeConfig::mnLinesPerImage
uint32_t mnLinesPerImage
number of lines per image in TDI mode
Definition: CCDParameters.h:25
tsCcdParamCaps
struct tsCcdParamCaps tsCcdParamCaps
tsCcdParamTdiEnable::mnEnable
uint32_t mnEnable
when non-zero, enable TDI frame packing mode
Definition: CCDParameters.h:33
tsCcdParamTagEnable::mnEnable
uint32_t mnEnable[3]
non-zero to enable
Definition: CCDParameters.h:38
tsCcdParamTdiEnable
struct tsCcdParamTdiEnable tsCcdParamTdiEnable
tsCcdParamTdiModeConfig
struct tsCcdParamTdiModeConfig tsCcdParamTdiModeConfig
tsCcdParamTdiLinePeriod
Definition: CCDParameters.h:13
CCD_NUM_CAPS
#define CCD_NUM_CAPS
< up to 32 capability flags can be defined
Definition: CCDParameters.h:45