|
Critical Link MityCam SoC Firmware
1.0
Critical Link MityCam SoC Firmware
|
Go to the documentation of this file.
22 #define MAX_NUM_FRAMES_IN_QUEUE (3)
52 virtual void Report(
const char* fmt, ...);
88 int anLength,
unsigned int anInfo,
92 int anLength,
unsigned int anInfo);
98 const char*
MsgToText(
unsigned int MsgId);
203 void Shear(uint16_t* apData,
unsigned int rows,
unsigned int cols);
274 #ifdef ARM_TEST_PATTERNS
276 void buildTestPattern(
uint16 *lpData, uint16_t numrows, uint16_t numcols);
void NetworkPoll(void)
Definition: MityViewerApp.cpp:1082
volatile bool mbShutdown
true when app should shut down
Definition: MityViewerApp.h:240
pthread_t mhNetworkPollThread
thread object for network poll server
Definition: MityViewerApp.h:237
int Initialize(tcCommandInterface *apInterface)
Definition: MityViewerApp.cpp:355
virtual void Report(const char *fmt,...)
Definition: MityViewerApp.cpp:291
void SetFanCtrl(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2669
void GetMultipleROIState(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3252
unsigned int mnNumAreaCols
number of columns for an area read
Definition: MityViewerApp.h:224
void SetShearCtrl(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3496
void Clear(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2119
bool MessageHandler(int anStatus, void *apData, int anLength, unsigned int anInfo)
Definition: MityViewerApp.cpp:1877
void SetImageMirrorCfg(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2402
void GetImageMirrorCfg(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2418
unsigned int mnFanEnable
1 when FAN is enabled
Definition: MityViewerApp.h:244
uint64_t uint64
Definition: Types.h:13
void GetExposure(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2065
void Shear(uint16_t *apData, unsigned int rows, unsigned int cols)
implements legacy MityCCD shearing operation on RAW CCD data
Definition: MityViewerApp.cpp:3512
static const int gnPacketsPerWrite
number of packets in an iov write call for TCP writev()
Definition: MityViewerApp.h:262
uint32_t mn32BitBufferWords
size of the mp32BitBuffer in 32-bit words
Definition: MityViewerApp.h:260
tcSensorBoard * mpSensor
Definition: MityViewerApp.h:209
void SetOffset(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2166
void SetBinningSeq(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3428
unsigned int mnAreaIntervalms
area mode update interval
Definition: MityViewerApp.h:221
void CISSetShutterMode(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2547
int SendNetworkData(char *data, int len)
Definition: MityViewerApp.cpp:1398
void CISGetCalibrationState(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2679
bool mbUseChannel
Definition: MityViewerApp.h:208
Definition: CCDspMessages.h:1134
tcMityViewerApp(tcSensorBoard *apSensor, tcIOChannel *apChannel, uint64 anMaxFramesInQueue=MAX_NUM_FRAMES_IN_QUEUE)
Definition: MityViewerApp.cpp:102
The tsCaptureConfigMsg struct holds the pending sensor configuration prior to capture.
Definition: arm_dsp_msgs.h:48
bool mbFlipY
Definition: MityViewerApp.h:273
teTestPattern
Definition: CameraTypes.h:122
void SetGPIO(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2280
void SendNackCode(teNackCode aeCode, const char *asMessage)
Definition: MityViewerApp.cpp:1842
float mnTargetTemp
target setpoin, degrees C
Definition: MityViewerApp.h:246
void ReadArea(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2132
virtual void sendUpdate(tsNewFrameMsg *apMsg)
tcMityViewerApp::sendUpdate Called when new frame data is available to transmit to host.
Definition: MityViewerApp.cpp:979
Definition: CCDspMessages.h:1315
void MainLoop(void)
Definition: MityViewerApp.cpp:1698
void SetGain(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3452
void(tcMityViewerApp::* MsgHandler)(tuCameraMessages *apMsg)
Definition: MityViewerApp.h:100
unsigned int mnShearWinY
number of rows to average in shearing process
Definition: MityViewerApp.h:272
void SetRecordParams(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2664
void SendCaptureConfig(void)
Definition: MityViewerApp.cpp:538
static void * DispatchNetworkServer(void *apThis)
Definition: MityViewerApp.cpp:1209
int mnMessageInCount
number of Client messages (from PC)
Definition: MityViewerApp.h:226
void GetShutterDel(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3423
void SetExposureEx(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2046
void SetAreaParam(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2709
void GetHardwareParams(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2215
const char * MsgToText(unsigned int MsgId)
Definition: MityViewerApp.cpp:1425
void GetCCDTemp(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3353
void GetExposureEx(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2077
tcLegacyCCD * mpCCD
Definition: MityViewerApp.h:210
tcCamParser * mpNetworkParser
pointer to parser for Network Interface
Definition: MityViewerApp.h:217
CrcCalc * mpCRC
CRC engine for loopback mode.
Definition: MityViewerApp.h:234
bool mbCalibrated
Definition: MityViewerApp.h:214
void SetPID(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2498
unsigned int mnGpioPinState
GPIO pin state.
Definition: MityViewerApp.h:249
float mnCoolingDuty
cooling duty (0 to 1)
Definition: MityViewerApp.h:248
Definition: TECHandler.h:18
void Loopback(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:1909
bool mbConfigValid
when true, our configuration is OK
Definition: MityViewerApp.h:230
void GetGain(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3460
void GetHorBinParam(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3325
unsigned int mnTECEnable
1 when TEC is enabled
Definition: MityViewerApp.h:245
uint32_t * mpOutputBinning
cached copy of bin params for processing binned images
Definition: MityViewerApp.h:266
void SetSimpleBinning(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3132
SocCamera::tcTECHandler * mpTECHandler
Definition: MityViewerApp.h:205
unsigned short mnFPGARev
copy of the FPGA revision level
Definition: MityViewerApp.h:228
MsgHandler maHandlers[256]
function handler table.
Definition: MityViewerApp.h:101
void GetSetPoint(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2251
virtual ~tcMityViewerApp(void)
Definition: MityViewerApp.cpp:314
volatile bool mbDSPShutdown
true when DSP is shutdown
Definition: MityViewerApp.h:250
void SetExposure(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2031
void SetSimulationMode(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3153
bool mbShear
enable flag for shearing
Definition: MityViewerApp.h:269
void SetHardwareParams(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2221
void WriteDAC(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3348
pthread_t mhMainThread
thread object for heatbeat/status processsing
Definition: MityViewerApp.h:238
struct iovec * mpIOV
IOV structure for iov write calls.
Definition: MityViewerApp.h:265
unsigned short mnDSPRev
copy of the DSP code revision level
Definition: MityViewerApp.h:229
void SetFilter(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3473
tcMutex mhOutputMutex
Definition: MityViewerApp.h:235
tsHdwrParamMsg msHdwrParamMsg
copy of our hardware parameters
Definition: MityViewerApp.h:241
Defines message structure between DSP and ARM. (This is from the legacy MityOMAP-L138 implementation)...
void SetShutterCloseDel(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3418
void GetSimpleBinning(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3139
volatile bool mbNetworkActive
Indicates network socket is connected and active.
Definition: MityViewerApp.h:216
unsigned int mnLoopBackErrorCnt
number of errors encountered on loopback testing
Definition: MityViewerApp.h:225
teNackCode
Definition: CameraTypes.h:62
Camera Output IO channel management class.
Definition: IOChannel.h:34
teBPPMode
Definition: CameraTypes.h:133
void GetBinningSeq(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3438
int mnMessageOutCount
number of Outbound messages to client (PC)
Definition: MityViewerApp.h:227
void NetworkServer(void)
Definition: MityViewerApp.cpp:1228
Definition: CCDspMessages.h:596
The tcLegacyCCD class provides interfaces needed to control CCDs and support the MityViewer interface...
Definition: LegacyCCD.h:24
virtual SocCamera::teNackCode capture(tsCaptureRequest asRequest)
Definition: MityViewerApp.cpp:1013
void GetTrigger(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2374
void SetMultipleROIState(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3295
unsigned int mnShearWinX
number of columns to average in shearing process
Definition: MityViewerApp.h:271
void CISCalibrate(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2565
#define MAX_NUM_FRAMES_IN_QUEUE
Definition: MityViewerApp.h:22
static void * DispatchNetworkPoll(void *apThis)
Definition: MityViewerApp.cpp:1067
void SetTrigger(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2341
bool mbHasChannel
Definition: MityViewerApp.h:207
void GetGPIO(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2323
tcIOChannel * mpChannel
Definition: MityViewerApp.h:211
pthread_t mhNetworkSrvThread
thread object for network server
Definition: MityViewerApp.h:236
volatile unsigned int mnMillisecsToGo
number of milliseconds of exp on current frame
Definition: MityViewerApp.h:243
void OpComplete(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3338
void SetSetPoint(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2267
static bool DispatchMessageHandler(int anStatus, void *apData, int anLength, unsigned int anInfo, void *apThis)
Definition: MityViewerApp.cpp:1861
char ** mp16BitHeaders
pointer vector for 16 bit headers
Definition: MityViewerApp.h:263
This file contains the tcCommandInterface class.
void GetReadoutNoise(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3399
void GetNetConfig(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2436
Definition: CameraTypes.h:7
tsCaptureConfigMsg msCaptureConfigMsg
copy of the capture configuration
Definition: MityViewerApp.h:242
tcImage * mkImage(tsNewFrameMsg *apMsg)
void SetHorBinParam(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3316
uint64 mnMaxFramesInQueue
Definition: MityViewerApp.h:256
void GetBoardTemp(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3388
float mnStdDev
StdDev value (from set Offset Target processing)
Definition: MityViewerApp.h:220
unsigned int mnNumAreaRows
number of rows for an area read
Definition: MityViewerApp.h:223
volatile float mnPID[3]
P,I,D controls.
Definition: MityViewerApp.h:247
void setTECHandler(SocCamera::tcTECHandler *apHandler)
Definition: MityViewerApp.cpp:998
tsSimulationModeMsg msSimMode
active simulation mode data
Definition: MityViewerApp.h:231
void GetSimulationMode(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3185
static void * DispatchMainLoop(void *apThis)
Definition: MityViewerApp.cpp:1679
unsigned int * mp32BitBuffer
local buffer for expanding 16-bit data to 32-bit data
Definition: MityViewerApp.h:259
void GetPID(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2477
void SetTriggerMode(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2384
int Shutdown(void)
Definition: MityViewerApp.cpp:248
void GetCooling(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2235
float mnMean
mean value (from set Offset Target processing)
Definition: MityViewerApp.h:219
void GetFilter(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3481
void SetBinParam(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2752
volatile int maShutdownPipes[3 *2]
pipes used to shut stuff down (reader/writer)
Definition: MityViewerApp.h:239
void Read32(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3224
bool mbCancelUpdate
Definition: MityViewerApp.h:257
int SendMessage(tsMsgHeader *Msg, int len, void *apPayload=NULL, int payload_len=0)
Definition: MityViewerApp.cpp:1648
virtual void ReportError(const char *buffer)
Definition: MityViewerApp.cpp:960
void Send16BitFrame(tsNewFrameMsg *apMsg)
Definition: MityViewerApp.cpp:585
void SetCooling(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2087
int mnSocket
our active network socket connection
Definition: MityViewerApp.h:233
volatile int mnNoOpCounter
NOOP counter.
Definition: MityViewerApp.h:252
volatile int mnMsPerNoOp
time between NOOP sends
Definition: MityViewerApp.h:253
Definition: IOCallback.h:11
void GetTimingFileData(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2510
void SetImageInterval(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2197
void SetParameter(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2762
uint16_t uint16
Definition: Types.h:10
void Send32BitFrame(tsNewFrameMsg *apMsg)
tcMityViewerApp::Send32BitFrame
Definition: MityViewerApp.cpp:738
void GetBinParam(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2735
Definition: CamParser.h:9
volatile bool mbSendHeartBeats
when true, send heartbeats out interface
Definition: MityViewerApp.h:232
char ** mp32BitHeaders
pointer vector for 16 bit headers
Definition: MityViewerApp.h:264
bool mbConfigChange
flag indicating the config data has changed (from API)
Definition: MityViewerApp.h:218
Definition: SensorBoard.h:40
void WriteConfig(void)
Definition: MityViewerApp.cpp:504
Definition: CommandInterface.h:25
void GetImageIntervals(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2460
void WriteNetConfig(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3413
void Write32(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3241
unsigned int mnShearThresh
shearing threshold
Definition: MityViewerApp.h:270
Definition: MityViewerApp.h:41
tcCommandInterface * mpInterface
Definition: MityViewerApp.h:212
volatile bool mbSendNoOps
when true, send NO OP packets
Definition: MityViewerApp.h:251
void ReadCCDBin(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:3364
void GetParameter(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2964
unsigned int mnDesiredIntervalms
last desired setting known
Definition: MityViewerApp.h:222
Definition: IOCallback.h:56
void CISSetChannelSelect(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2629
void Reset(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2108
void NoOpCtrl(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2720
virtual SocCamera::teNackCode setBpp(SocCamera::teBPPMode aeBppMode)
Definition: MityViewerApp.cpp:1006
void GetTriggerMode(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2392
void AbortRead(tuCameraMessages *msg)
Definition: MityViewerApp.cpp:2538