irioCoreCpp Library Module
2.1.0
rioDiscovery.h
1
#pragma once
2
#include <string>
3
4
namespace
irio {
5
9
struct
RIODeviceInfo
{
11
std::string
resourceName
;
13
std::string
deviceModel
;
14
};
15
28
RIODeviceInfo
searchRIODevice
(
const
std::string serialNumber);
29
/*
30
* serialNumber should be a reference, but due to the mocking
31
* framework the project uses (fff) which is really a C framework,
32
* when using reference breaks. So as this function is only called at
33
* the beginning when performance is not critical, I'm leaving it
34
* as is. fff works great for mocking NiFpga_* calls (as they are C functions),
35
* so if any finds a mocking framework that could be used easily for these
36
* cases, suggest it please.
37
*/
38
39
}
// namespace irio
40
41
irio::searchRIODevice
RIODeviceInfo searchRIODevice(const std::string serialNumber)
Searches for a RIO device with the specified serial number.
irio::RIODeviceInfo
Holds the found resource name and device model.
Definition:
rioDiscovery.h:9
irio::RIODeviceInfo::deviceModel
std::string deviceModel
Device Model of RIO board.
Definition:
rioDiscovery.h:13
irio::RIODeviceInfo::resourceName
std::string resourceName
Resource name. Needed to open session with FPGA.
Definition:
rioDiscovery.h:11
c++
irioCoreCpp
include
rioDiscovery.h
Generated by
1.9.1