Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
MityViewerApp.cpp File Reference
#include "MityViewerApp.h"
#include "CamParser.h"
#include "CRC.h"
#include "scmos_params.h"
#include "arm_dsp_msgs.h"
#include "clcamdefines.h"
#include "CISParameters.h"
#include "CCDParameters.h"
#include "Utility/USBPhy.h"
#include "Utility/str_funcs.h"
#include "CommandHandlers/AllHandlers.h"
#include "CommandInterface/RegisterFile.h"
#include "Sensors/Interfaces/LegacyCCD.h"
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <math.h>
#include <stdarg.h>
#include <stdlib.h>
#include <sys/uio.h>
#include <iostream>
Include dependency graph for MityViewerApp.cpp:

Macros

#define INTERRUPT_MICROSECOND_INTERVAL   (150000)
 
#define MITYDSP_REV_MAJOR   1
 
#define MITYDSP_REV_MINOR   2
 
#define THERM_FEEDBACK_R   10000.0f
 
#define THERM_VIN   3.0f
 
#define THERM_RT0   10000.0f
 
#define THERM_BETA   3380.0f
 
#define THERM_T0   25.0f
 
#define CONFIG_FILE   "/home/root/application/version/mityviewer_config.bin"
 
#define UNUSED_PARAM(x)   (void)x;
 
#define SET_HEADER(msg, id, t)
 

Variables

int gnDebugCmdChannel
 

Macro Definition Documentation

◆ CONFIG_FILE

#define CONFIG_FILE   "/home/root/application/version/mityviewer_config.bin"

◆ INTERRUPT_MICROSECOND_INTERVAL

#define INTERRUPT_MICROSECOND_INTERVAL   (150000)

Revision History

Version Author Description 1.00 MAW Baseline new code 1.01 MAW - Clean up Shutdown

  • Add support for GetCalibrationState
  • Make GetTimingData information better
  • Populate DSP and FPGA version numbers at runtime
  • Populate Thermistor data for readback
  • Fix pixel size information. 1.02 MAW - Bug 2559, don't send new capture config unless starting a new read area cycle.

◆ MITYDSP_REV_MAJOR

#define MITYDSP_REV_MAJOR   1

◆ MITYDSP_REV_MINOR

#define MITYDSP_REV_MINOR   2

◆ SET_HEADER

#define SET_HEADER (   msg,
  id,
 
)
Value:
msg->msHeader.mnLength = sizeof(t)-sizeof(tsMsgHeader); \
msg->msHeader.mnMsgId = id;

◆ THERM_BETA

#define THERM_BETA   3380.0f

◆ THERM_FEEDBACK_R

#define THERM_FEEDBACK_R   10000.0f

◆ THERM_RT0

#define THERM_RT0   10000.0f

◆ THERM_T0

#define THERM_T0   25.0f

◆ THERM_VIN

#define THERM_VIN   3.0f

◆ UNUSED_PARAM

#define UNUSED_PARAM (   x)    (void)x;

Variable Documentation

◆ gnDebugCmdChannel

int gnDebugCmdChannel

For some cheap filtering of debug messages. Yea there's only one global variable for all interfaces, but it doesn't cost too much to throw it in here this way, and dfault behavior is to just add a few cycles before printf's that were there already. Values: <0 = Off, 0 = errors & warnings, >0 = verbose

tsMsgHeader
Definition: CCDspMsgHeader.h:45