nds2-client - ClientAdministrator  0.16.8
 All Functions Typedefs Enumerations Enumerator Groups Pages
nds1_test_utilities.hh
1 //
2 // Created by jonathan.hanks on 5/7/18.
3 //
4 
5 #ifndef NDS2_CLIENT_NDS1_TEST_UTILITIES_HH
6 #define NDS2_CLIENT_NDS1_TEST_UTILITIES_HH
7 
8 #include <vector>
9 
10 namespace nds_testing
11 {
12 
13  struct sc2_channel_info
14  {
15  std::string name;
16  std::uint32_t rate;
17  std::uint32_t tpnum;
18  std::uint16_t tpnode;
19  std::uint16_t type;
20  float gain;
21  float slope;
22  float offset;
23  std::string units;
24  };
25 
26  std::vector< char > generate_sc2_channel_stream( int count );
27 
28  sc2_channel_info get_sc2_channel_info( int chan_num );
29 }
30 
31 #endif // NDS2_CLIENT_NDS1_TEST_UTILITIES_HH