Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
MityViewerApp.h
Go to the documentation of this file.
1 
12 /*
13  * o 0
14  * | / Copyright (c) 2012
15  * (CL)---o Critical Link, LLC
16  * \
17 * O
18  */
19 #ifndef SCMOSAPP_H
20 #define SCMOSAPP_H
21 
22 #define MAX_NUM_FRAMES_IN_QUEUE (3)
23 
24 #include <pthread.h>
25 
26 #include "CCDspMessages.h"
27 #include "arm_dsp_msgs.h"
28 #include "CamParser.h"
29 #include "Sensors/SensorBoard.h"
30 #include "Utility/Mutex.h"
32 #include "IOChannel/IOChannel.h"
34 
35 // forward declarations
36 class CrcCalc;
37 namespace SocCamera {
38  class tcLegacyCCD;
39 }
40 
42 {
43 
44 public:
45  tcMityViewerApp(tcSensorBoard *apSensor, tcIOChannel *apChannel,
46  uint64 anMaxFramesInQueue = MAX_NUM_FRAMES_IN_QUEUE);
47  virtual ~tcMityViewerApp(void);
48 
49  int Initialize(tcCommandInterface* apInterface);
50  int Shutdown(void);
51 
52  virtual void Report(const char* fmt, ...);
53  virtual void ReportError(const char* buffer);
54 
55  virtual void sendUpdate(tsNewFrameMsg *apMsg);
56 
57  void setTECHandler(SocCamera::tcTECHandler *apHandler);
58 
65  SocCamera::teBPPMode aeBppMode);
66 
75 
76 protected:
77 
78  static void* DispatchNetworkPoll(void* apThis);
79  void NetworkPoll(void);
80 
81  static void* DispatchNetworkServer(void* apThis);
82  void NetworkServer(void);
83 
84  static void* DispatchMainLoop(void* apThis);
85  void MainLoop(void);
86 
87  static bool DispatchMessageHandler(int anStatus, void* apData,
88  int anLength, unsigned int anInfo,
89  void* apThis);
90 
91  bool MessageHandler(int anStatus, void* apData,
92  int anLength, unsigned int anInfo);
93 
94  int SendNetworkData(char* data, int len);
95  int SendMessage(tsMsgHeader* Msg, int len, void* apPayload = NULL,
96  int payload_len = 0);
97 
98  const char* MsgToText(unsigned int MsgId);
99 
100  typedef void (tcMityViewerApp::*MsgHandler)(tuCameraMessages* apMsg);
102 
103  void WriteConfig(void);
104 
109  void Send16BitFrame(tsNewFrameMsg* apMsg);
110 
115  void Send32BitFrame(tsNewFrameMsg* apMsg);
116 
121  tcImage *mkImage(tsNewFrameMsg* apMsg);
122 
124  void SetExposure(tuCameraMessages* msg);
125  void SetExposureEx(tuCameraMessages* msg);
126  void GetExposure(tuCameraMessages* msg);
127  void GetExposureEx(tuCameraMessages* msg);
128  void SetCooling(tuCameraMessages* msg);
129  void Reset(tuCameraMessages* msg);
130  void Clear(tuCameraMessages* msg);
131  void ReadArea(tuCameraMessages* msg);
132  void SetOffset(tuCameraMessages* msg);
134  void Loopback(tuCameraMessages* msg);
137  void GetCooling(tuCameraMessages* msg);
138  void GetSetPoint(tuCameraMessages* msg);
139  void SetSetPoint(tuCameraMessages* msg);
140  void SetGPIO(tuCameraMessages* msg);
141  void GetGPIO(tuCameraMessages* msg);
142  void SetTrigger(tuCameraMessages* msg);
143  void GetTrigger(tuCameraMessages* msg);
144  void SetTriggerMode(tuCameraMessages* msg);
145  void GetTriggerMode(tuCameraMessages* msg);
148  void GetNetConfig(tuCameraMessages* msg);
150  void GetPID(tuCameraMessages* msg);
151  void SetPID(tuCameraMessages* msg);
153  void AbortRead(tuCameraMessages* msg);
155  void CISCalibrate(tuCameraMessages* msg);
158  void SetFanCtrl(tuCameraMessages* msg);
160  void SetAreaParam(tuCameraMessages* msg);
161  void NoOpCtrl(tuCameraMessages* msg);
162  void GetBinParam(tuCameraMessages* msg);
163  void SetBinParam(tuCameraMessages* msg);
166  void Read32(tuCameraMessages* msg);
167  void Write32(tuCameraMessages* msg);
172  void SetParameter(tuCameraMessages* msg);
173  void GetParameter(tuCameraMessages* msg);
174  void SetHorBinParam(tuCameraMessages* msg);
175  void GetHorBinParam(tuCameraMessages* msg);
176  void OpComplete(tuCameraMessages* msg);
177  void WriteDAC(tuCameraMessages* msg);
178  void GetCCDTemp(tuCameraMessages* msg);
179  void ReadCCDBin(tuCameraMessages* msg);
180  void GetBoardTemp(tuCameraMessages* msg);
182  void WriteNetConfig(tuCameraMessages* msg);
184  void GetShutterDel(tuCameraMessages* msg);
185  void SetBinningSeq(tuCameraMessages* msg);
186  void GetBinningSeq(tuCameraMessages* msg);
187  void SetGain(tuCameraMessages* msg);
188  void GetGain(tuCameraMessages* msg);
189  void SetFilter(tuCameraMessages* msg);
190  void GetFilter(tuCameraMessages* msg);
191  void SetShearCtrl(tuCameraMessages* msg);
192 
194  void SendCaptureConfig(void);
195 
201  void SendNackCode(teNackCode aeCode, const char *asMessage);
202 
203  void Shear(uint16_t* apData, unsigned int rows, unsigned int cols);
204 
206 
213 
215 
216  volatile bool mbNetworkActive;
219  float mnMean;
220  float mnStdDev;
221  unsigned int mnAreaIntervalms;
222  unsigned int mnDesiredIntervalms;
223  unsigned int mnNumAreaRows;
224  unsigned int mnNumAreaCols;
225  unsigned int mnLoopBackErrorCnt;
228  unsigned short mnFPGARev;
229  unsigned short mnDSPRev;
232  volatile bool mbSendHeartBeats;
233  int mnSocket;
236  pthread_t mhNetworkSrvThread;
238  pthread_t mhMainThread;
239  volatile int maShutdownPipes[3 * 2];
240  volatile bool mbShutdown;
243  volatile unsigned int mnMillisecsToGo;
244  unsigned int mnFanEnable;
245  unsigned int mnTECEnable;
246  float mnTargetTemp;
247  volatile float mnPID[3];
249  unsigned int mnGpioPinState;
250  volatile bool mbDSPShutdown;
251  volatile bool mbSendNoOps;
252  volatile int mnNoOpCounter;
253  volatile int mnMsPerNoOp;
254 
255 
258 
259  unsigned int* mp32BitBuffer;
261 
262  static const int gnPacketsPerWrite = 64;
263  char** mp16BitHeaders;
264  char** mp32BitHeaders;
265  struct iovec* mpIOV;
266  uint32_t* mpOutputBinning;
267 
268 
269  bool mbShear;
270  unsigned int mnShearThresh;
271  unsigned int mnShearWinX;
272  unsigned int mnShearWinY;
273  bool mbFlipY; // Flip image vertically
274 #ifdef ARM_TEST_PATTERNS
275  teTestPattern meTestPattern;
276  void buildTestPattern(uint16 *lpData, uint16_t numrows, uint16_t numcols);
277 #endif
278 };
279 
280 #endif
tcMityViewerApp::NetworkPoll
void NetworkPoll(void)
Definition: MityViewerApp.cpp:1082
tcMityViewerApp::mbShutdown
volatile bool mbShutdown
true when app should shut down
Definition: MityViewerApp.h:240
tcMityViewerApp::mhNetworkPollThread
pthread_t mhNetworkPollThread
thread object for network poll server
Definition: MityViewerApp.h:237
tcMityViewerApp::Initialize
int Initialize(tcCommandInterface *apInterface)
Definition: MityViewerApp.cpp:355
tcMityViewerApp::Report
virtual void Report(const char *fmt,...)
Definition: MityViewerApp.cpp:291
tcMityViewerApp::SetFanCtrl
void SetFanCtrl(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2669
tcMityViewerApp::GetMultipleROIState
void GetMultipleROIState(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3252
tcMityViewerApp::mnNumAreaCols
unsigned int mnNumAreaCols
number of columns for an area read
Definition: MityViewerApp.h:224
tcMityViewerApp::SetShearCtrl
void SetShearCtrl(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3496
tcMityViewerApp::Clear
void Clear(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2119
tcMityViewerApp::MessageHandler
bool MessageHandler(int anStatus, void *apData, int anLength, unsigned int anInfo)
Definition: MityViewerApp.cpp:1877
tcMityViewerApp::SetImageMirrorCfg
void SetImageMirrorCfg(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2402
tcMityViewerApp::GetImageMirrorCfg
void GetImageMirrorCfg(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2418
tcMityViewerApp::mnFanEnable
unsigned int mnFanEnable
1 when FAN is enabled
Definition: MityViewerApp.h:244
uint64
uint64_t uint64
Definition: Types.h:13
tcMityViewerApp::GetExposure
void GetExposure(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2065
tcMityViewerApp::Shear
void Shear(uint16_t *apData, unsigned int rows, unsigned int cols)
implements legacy MityCCD shearing operation on RAW CCD data
Definition: MityViewerApp.cpp:3512
tcMityViewerApp::gnPacketsPerWrite
static const int gnPacketsPerWrite
number of packets in an iov write call for TCP writev()
Definition: MityViewerApp.h:262
tcMityViewerApp::mn32BitBufferWords
uint32_t mn32BitBufferWords
size of the mp32BitBuffer in 32-bit words
Definition: MityViewerApp.h:260
tcMityViewerApp::mpSensor
tcSensorBoard * mpSensor
Definition: MityViewerApp.h:209
tcMityViewerApp::SetOffset
void SetOffset(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2166
tcMityViewerApp::SetBinningSeq
void SetBinningSeq(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3428
tcMityViewerApp::mnAreaIntervalms
unsigned int mnAreaIntervalms
area mode update interval
Definition: MityViewerApp.h:221
tcMityViewerApp::CISSetShutterMode
void CISSetShutterMode(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2547
tcMityViewerApp::SendNetworkData
int SendNetworkData(char *data, int len)
Definition: MityViewerApp.cpp:1398
tcMityViewerApp::CISGetCalibrationState
void CISGetCalibrationState(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2679
CamParser.h
tcMityViewerApp::mbUseChannel
bool mbUseChannel
Definition: MityViewerApp.h:208
tsSimulationModeMsg
Definition: CCDspMessages.h:1134
tcMityViewerApp::tcMityViewerApp
tcMityViewerApp(tcSensorBoard *apSensor, tcIOChannel *apChannel, uint64 anMaxFramesInQueue=MAX_NUM_FRAMES_IN_QUEUE)
Definition: MityViewerApp.cpp:102
tsCaptureConfigMsg
The tsCaptureConfigMsg struct holds the pending sensor configuration prior to capture.
Definition: arm_dsp_msgs.h:48
tcMityViewerApp::mbFlipY
bool mbFlipY
Definition: MityViewerApp.h:273
SocCamera::teTestPattern
teTestPattern
Definition: CameraTypes.h:122
tcMityViewerApp::SetGPIO
void SetGPIO(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2280
tcMityViewerApp::SendNackCode
void SendNackCode(teNackCode aeCode, const char *asMessage)
Definition: MityViewerApp.cpp:1842
tcMityViewerApp::mnTargetTemp
float mnTargetTemp
target setpoin, degrees C
Definition: MityViewerApp.h:246
tcMityViewerApp::ReadArea
void ReadArea(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2132
tcMityViewerApp::sendUpdate
virtual void sendUpdate(tsNewFrameMsg *apMsg)
tcMityViewerApp::sendUpdate Called when new frame data is available to transmit to host.
Definition: MityViewerApp.cpp:979
tuCameraMessages
Definition: CCDspMessages.h:1315
tcMityViewerApp::MainLoop
void MainLoop(void)
Definition: MityViewerApp.cpp:1698
tcMityViewerApp::SetGain
void SetGain(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3452
tcMityViewerApp::MsgHandler
void(tcMityViewerApp::* MsgHandler)(tuCameraMessages *apMsg)
Definition: MityViewerApp.h:100
tcMityViewerApp::mnShearWinY
unsigned int mnShearWinY
number of rows to average in shearing process
Definition: MityViewerApp.h:272
SensorBoard.h
tcMityViewerApp::SetRecordParams
void SetRecordParams(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2664
tcMityViewerApp::SendCaptureConfig
void SendCaptureConfig(void)
Definition: MityViewerApp.cpp:538
tcMityViewerApp::DispatchNetworkServer
static void * DispatchNetworkServer(void *apThis)
Definition: MityViewerApp.cpp:1209
tcMityViewerApp::mnMessageInCount
int mnMessageInCount
number of Client messages (from PC)
Definition: MityViewerApp.h:226
tcMityViewerApp::GetShutterDel
void GetShutterDel(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3423
tcMityViewerApp::SetExposureEx
void SetExposureEx(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2046
tcMityViewerApp::SetAreaParam
void SetAreaParam(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2709
tcMityViewerApp::GetHardwareParams
void GetHardwareParams(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2215
tcMityViewerApp::MsgToText
const char * MsgToText(unsigned int MsgId)
Definition: MityViewerApp.cpp:1425
tcMityViewerApp::GetCCDTemp
void GetCCDTemp(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3353
tcMityViewerApp::GetExposureEx
void GetExposureEx(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2077
tcMityViewerApp::mpCCD
tcLegacyCCD * mpCCD
Definition: MityViewerApp.h:210
tcMityViewerApp::mpNetworkParser
tcCamParser * mpNetworkParser
pointer to parser for Network Interface
Definition: MityViewerApp.h:217
tcMityViewerApp::mpCRC
CrcCalc * mpCRC
CRC engine for loopback mode.
Definition: MityViewerApp.h:234
tcMityViewerApp::mbCalibrated
bool mbCalibrated
Definition: MityViewerApp.h:214
tcMityViewerApp::SetPID
void SetPID(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2498
tcMityViewerApp::mnGpioPinState
unsigned int mnGpioPinState
GPIO pin state.
Definition: MityViewerApp.h:249
tcMityViewerApp::mnCoolingDuty
float mnCoolingDuty
cooling duty (0 to 1)
Definition: MityViewerApp.h:248
SocCamera::tcTECHandler
Definition: TECHandler.h:18
tcMityViewerApp::Loopback
void Loopback(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:1909
tcMityViewerApp::mbConfigValid
bool mbConfigValid
when true, our configuration is OK
Definition: MityViewerApp.h:230
tcMityViewerApp::GetGain
void GetGain(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3460
tcMityViewerApp::GetHorBinParam
void GetHorBinParam(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3325
tcMityViewerApp::mnTECEnable
unsigned int mnTECEnable
1 when TEC is enabled
Definition: MityViewerApp.h:245
tcMityViewerApp::mpOutputBinning
uint32_t * mpOutputBinning
cached copy of bin params for processing binned images
Definition: MityViewerApp.h:266
tcMityViewerApp::SetSimpleBinning
void SetSimpleBinning(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3132
tcMityViewerApp::mpTECHandler
SocCamera::tcTECHandler * mpTECHandler
Definition: MityViewerApp.h:205
tcMityViewerApp::mnFPGARev
unsigned short mnFPGARev
copy of the FPGA revision level
Definition: MityViewerApp.h:228
tcMityViewerApp::maHandlers
MsgHandler maHandlers[256]
function handler table.
Definition: MityViewerApp.h:101
tcMityViewerApp::GetSetPoint
void GetSetPoint(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2251
tcMityViewerApp::~tcMityViewerApp
virtual ~tcMityViewerApp(void)
Definition: MityViewerApp.cpp:314
tcMityViewerApp::mbDSPShutdown
volatile bool mbDSPShutdown
true when DSP is shutdown
Definition: MityViewerApp.h:250
tcMityViewerApp::SetExposure
void SetExposure(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2031
tcMityViewerApp::SetSimulationMode
void SetSimulationMode(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3153
tcMityViewerApp::mbShear
bool mbShear
enable flag for shearing
Definition: MityViewerApp.h:269
tcMityViewerApp::SetHardwareParams
void SetHardwareParams(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2221
tcMityViewerApp::WriteDAC
void WriteDAC(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3348
tcMityViewerApp::mhMainThread
pthread_t mhMainThread
thread object for heatbeat/status processsing
Definition: MityViewerApp.h:238
tcMityViewerApp::mpIOV
struct iovec * mpIOV
IOV structure for iov write calls.
Definition: MityViewerApp.h:265
tcMityViewerApp::mnDSPRev
unsigned short mnDSPRev
copy of the DSP code revision level
Definition: MityViewerApp.h:229
tcMityViewerApp::SetFilter
void SetFilter(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3473
tcMityViewerApp::mhOutputMutex
tcMutex mhOutputMutex
Definition: MityViewerApp.h:235
tcMityViewerApp::msHdwrParamMsg
tsHdwrParamMsg msHdwrParamMsg
copy of our hardware parameters
Definition: MityViewerApp.h:241
arm_dsp_msgs.h
Defines message structure between DSP and ARM. (This is from the legacy MityOMAP-L138 implementation)...
tcMityViewerApp::SetShutterCloseDel
void SetShutterCloseDel(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3418
tcMityViewerApp::GetSimpleBinning
void GetSimpleBinning(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3139
tcMityViewerApp::mbNetworkActive
volatile bool mbNetworkActive
Indicates network socket is connected and active.
Definition: MityViewerApp.h:216
tcMityViewerApp::mnLoopBackErrorCnt
unsigned int mnLoopBackErrorCnt
number of errors encountered on loopback testing
Definition: MityViewerApp.h:225
SocCamera::teNackCode
teNackCode
Definition: CameraTypes.h:62
tcIOChannel
Camera Output IO channel management class.
Definition: IOChannel.h:34
SocCamera::teBPPMode
teBPPMode
Definition: CameraTypes.h:133
tcMityViewerApp::GetBinningSeq
void GetBinningSeq(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3438
tcMityViewerApp::mnMessageOutCount
int mnMessageOutCount
number of Outbound messages to client (PC)
Definition: MityViewerApp.h:227
tcMityViewerApp::NetworkServer
void NetworkServer(void)
Definition: MityViewerApp.cpp:1228
tsHdwrParamMsg
Definition: CCDspMessages.h:596
SocCamera::tcLegacyCCD
The tcLegacyCCD class provides interfaces needed to control CCDs and support the MityViewer interface...
Definition: LegacyCCD.h:24
tcMityViewerApp::capture
virtual SocCamera::teNackCode capture(tsCaptureRequest asRequest)
Definition: MityViewerApp.cpp:1013
tcMityViewerApp::GetTrigger
void GetTrigger(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2374
tcMityViewerApp::SetMultipleROIState
void SetMultipleROIState(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3295
tcMityViewerApp::mnShearWinX
unsigned int mnShearWinX
number of columns to average in shearing process
Definition: MityViewerApp.h:271
tcMityViewerApp::CISCalibrate
void CISCalibrate(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2565
MAX_NUM_FRAMES_IN_QUEUE
#define MAX_NUM_FRAMES_IN_QUEUE
Definition: MityViewerApp.h:22
tcMityViewerApp::DispatchNetworkPoll
static void * DispatchNetworkPoll(void *apThis)
Definition: MityViewerApp.cpp:1067
tcMityViewerApp::SetTrigger
void SetTrigger(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2341
tcMityViewerApp::mbHasChannel
bool mbHasChannel
Definition: MityViewerApp.h:207
AllHandlers.h
tcMityViewerApp::GetGPIO
void GetGPIO(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2323
tcMityViewerApp::mpChannel
tcIOChannel * mpChannel
Definition: MityViewerApp.h:211
tcMityViewerApp::mhNetworkSrvThread
pthread_t mhNetworkSrvThread
thread object for network server
Definition: MityViewerApp.h:236
tcMityViewerApp::mnMillisecsToGo
volatile unsigned int mnMillisecsToGo
number of milliseconds of exp on current frame
Definition: MityViewerApp.h:243
tcMityViewerApp::OpComplete
void OpComplete(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3338
CrcCalc
Definition: CRC.h:54
tcMityViewerApp::SetSetPoint
void SetSetPoint(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2267
tcMityViewerApp::DispatchMessageHandler
static bool DispatchMessageHandler(int anStatus, void *apData, int anLength, unsigned int anInfo, void *apThis)
Definition: MityViewerApp.cpp:1861
tcMityViewerApp::mp16BitHeaders
char ** mp16BitHeaders
pointer vector for 16 bit headers
Definition: MityViewerApp.h:263
CommandInterface.h
This file contains the tcCommandInterface class.
tcMityViewerApp::GetReadoutNoise
void GetReadoutNoise(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3399
tcMityViewerApp::GetNetConfig
void GetNetConfig(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2436
SocCamera
Definition: CameraTypes.h:7
tcMityViewerApp::msCaptureConfigMsg
tsCaptureConfigMsg msCaptureConfigMsg
copy of the capture configuration
Definition: MityViewerApp.h:242
tcMityViewerApp::mkImage
tcImage * mkImage(tsNewFrameMsg *apMsg)
tcMityViewerApp::SetHorBinParam
void SetHorBinParam(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3316
tcMityViewerApp::mnMaxFramesInQueue
uint64 mnMaxFramesInQueue
Definition: MityViewerApp.h:256
tcMityViewerApp::GetBoardTemp
void GetBoardTemp(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3388
tcMityViewerApp::mnStdDev
float mnStdDev
StdDev value (from set Offset Target processing)
Definition: MityViewerApp.h:220
tcMityViewerApp::mnNumAreaRows
unsigned int mnNumAreaRows
number of rows for an area read
Definition: MityViewerApp.h:223
tcMityViewerApp::mnPID
volatile float mnPID[3]
P,I,D controls.
Definition: MityViewerApp.h:247
tcMityViewerApp::setTECHandler
void setTECHandler(SocCamera::tcTECHandler *apHandler)
Definition: MityViewerApp.cpp:998
tcMityViewerApp::msSimMode
tsSimulationModeMsg msSimMode
active simulation mode data
Definition: MityViewerApp.h:231
tcMityViewerApp::GetSimulationMode
void GetSimulationMode(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3185
tcMityViewerApp::DispatchMainLoop
static void * DispatchMainLoop(void *apThis)
Definition: MityViewerApp.cpp:1679
tcImage
Definition: Image.h:34
Mutex.h
tcMityViewerApp::mp32BitBuffer
unsigned int * mp32BitBuffer
local buffer for expanding 16-bit data to 32-bit data
Definition: MityViewerApp.h:259
tcMityViewerApp::GetPID
void GetPID(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2477
tcMityViewerApp::SetTriggerMode
void SetTriggerMode(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2384
tcMityViewerApp::Shutdown
int Shutdown(void)
Definition: MityViewerApp.cpp:248
tcMityViewerApp::GetCooling
void GetCooling(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2235
tcMityViewerApp::mnMean
float mnMean
mean value (from set Offset Target processing)
Definition: MityViewerApp.h:219
tcMityViewerApp::GetFilter
void GetFilter(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3481
tcMityViewerApp::SetBinParam
void SetBinParam(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2752
tcMityViewerApp::maShutdownPipes
volatile int maShutdownPipes[3 *2]
pipes used to shut stuff down (reader/writer)
Definition: MityViewerApp.h:239
tcMityViewerApp::Read32
void Read32(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3224
tcMityViewerApp::mbCancelUpdate
bool mbCancelUpdate
Definition: MityViewerApp.h:257
tcMityViewerApp::SendMessage
int SendMessage(tsMsgHeader *Msg, int len, void *apPayload=NULL, int payload_len=0)
Definition: MityViewerApp.cpp:1648
tcMityViewerApp::ReportError
virtual void ReportError(const char *buffer)
Definition: MityViewerApp.cpp:960
tcMityViewerApp::Send16BitFrame
void Send16BitFrame(tsNewFrameMsg *apMsg)
Definition: MityViewerApp.cpp:585
tcMityViewerApp::SetCooling
void SetCooling(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2087
tcMityViewerApp::mnSocket
int mnSocket
our active network socket connection
Definition: MityViewerApp.h:233
tcMityViewerApp::mnNoOpCounter
volatile int mnNoOpCounter
NOOP counter.
Definition: MityViewerApp.h:252
tcMityViewerApp::mnMsPerNoOp
volatile int mnMsPerNoOp
time between NOOP sends
Definition: MityViewerApp.h:253
tsNewFrameMsg
Definition: IOCallback.h:11
tcMityViewerApp::GetTimingFileData
void GetTimingFileData(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2510
tcMityViewerApp::SetImageInterval
void SetImageInterval(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2197
tcMityViewerApp::SetParameter
void SetParameter(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2762
uint16
uint16_t uint16
Definition: Types.h:10
tcMityViewerApp::Send32BitFrame
void Send32BitFrame(tsNewFrameMsg *apMsg)
tcMityViewerApp::Send32BitFrame
Definition: MityViewerApp.cpp:738
tcMityViewerApp::GetBinParam
void GetBinParam(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2735
tcCamParser
Definition: CamParser.h:9
CCDspMessages.h
tcMityViewerApp::mbSendHeartBeats
volatile bool mbSendHeartBeats
when true, send heartbeats out interface
Definition: MityViewerApp.h:232
tcMityViewerApp::mp32BitHeaders
char ** mp32BitHeaders
pointer vector for 16 bit headers
Definition: MityViewerApp.h:264
tcMityViewerApp::mbConfigChange
bool mbConfigChange
flag indicating the config data has changed (from API)
Definition: MityViewerApp.h:218
SocCamera::tcSensorBoard
Definition: SensorBoard.h:40
tcMityViewerApp::WriteConfig
void WriteConfig(void)
Definition: MityViewerApp.cpp:504
SocCamera::tcCommandInterface
Definition: CommandInterface.h:25
tcMityViewerApp::GetImageIntervals
void GetImageIntervals(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2460
tcMityViewerApp::WriteNetConfig
void WriteNetConfig(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3413
tcMutex
Definition: Mutex.h:11
tcMityViewerApp::Write32
void Write32(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3241
tcMityViewerApp::mnShearThresh
unsigned int mnShearThresh
shearing threshold
Definition: MityViewerApp.h:270
tcMityViewerApp
Definition: MityViewerApp.h:41
tcMityViewerApp::mpInterface
tcCommandInterface * mpInterface
Definition: MityViewerApp.h:212
tsMsgHeader
Definition: CCDspMsgHeader.h:45
tcMityViewerApp::mbSendNoOps
volatile bool mbSendNoOps
when true, send NO OP packets
Definition: MityViewerApp.h:251
tcMityViewerApp::ReadCCDBin
void ReadCCDBin(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3364
tcMityViewerApp::GetParameter
void GetParameter(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2964
tcMityViewerApp::mnDesiredIntervalms
unsigned int mnDesiredIntervalms
last desired setting known
Definition: MityViewerApp.h:222
tsCaptureRequest
Definition: IOCallback.h:56
IOChannel.h
tcMityViewerApp::CISSetChannelSelect
void CISSetChannelSelect(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2629
tcMityViewerApp::Reset
void Reset(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2108
tcMityViewerApp::NoOpCtrl
void NoOpCtrl(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2720
tcMityViewerApp::setBpp
virtual SocCamera::teNackCode setBpp(SocCamera::teBPPMode aeBppMode)
Definition: MityViewerApp.cpp:1006
tcMityViewerApp::GetTriggerMode
void GetTriggerMode(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2392
tcMityViewerApp::AbortRead
void AbortRead(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2538