Exemplo n.º 1
0
void SFP::report() const
{
    printf("SFP tranceiver information\n"
           " Temp: %.1f C\n"
           " Link: %.1f MBits/s\n"
           " Tx Power: %.1f uW\n"
           " Rx Power: %.1f uW\n",
           temperature(),
           linkSpeed(),
           powerTX()*1e6,
           powerRX()*1e6);
    printf(" Vendor:%s\n Model: %s\n Rev: %s\n Manufacture data: %s\n Serial: %s\n",
           vendorName().c_str(),
           vendorPart().c_str(),
           vendorRev().c_str(),
           manuDate().c_str(),
           serial().c_str());
}
Exemplo n.º 2
0
// Main program equivalent, creating windows and returning main app frame
bool Regard3DApp::OnInit()
{
	wxString appName(wxT(REGARD3D_NAME));
	wxString vendorName(wxT(REGARD3D_VENDOR_NAME));

#if wxCHECK_VERSION(2, 9, 0)
	SetAppDisplayName(appName);
	SetVendorDisplayName(vendorName);
#endif
	appName.Replace(wxT(" "), wxEmptyString, true);
	SetAppName(appName);
	SetVendorName(vendorName);

#if wxUSE_IMAGE
	wxInitAllImageHandlers();
#endif

	Eigen::initParallel();

#if defined(R3D_HAVE_OPENMP)
	//omp_set_num_threads(1);	// omp_get_num_procs() + 1);	// +1 to fill delays in file I/O
#endif

	CameraDBLookup::getInstance().initialize();
	UserCameraDB::getInstance().initialize();
	R3DExternalPrograms::getInstance().initialize();
	R3DFontHandler::getInstance().initialize();

	pMainFrame_ = new Regard3DMainFrame(NULL);

	// Show the frame
	pMainFrame_->Show(true);

	SetTopWindow(pMainFrame_);

	return true;
}