mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 01:58:00 +02:00
tests add to namespace sls (#466)
* tests add to namespace sls * fixed for tests * finish up namespace sls for tests
This commit is contained in:
@ -4,6 +4,8 @@
|
||||
#include "sls/sls_detector_defs.h"
|
||||
#include <string>
|
||||
|
||||
namespace sls {
|
||||
|
||||
struct SingleDetectorConfig {
|
||||
slsDetectorDefs::detectorType type_enum =
|
||||
slsDetectorDefs::detectorType::EIGER;
|
||||
@ -11,3 +13,5 @@ struct SingleDetectorConfig {
|
||||
const std::string type_string = "Eiger";
|
||||
const std::string my_ip = "129.129.205.171";
|
||||
};
|
||||
|
||||
} // namespace sls
|
||||
|
@ -2,6 +2,9 @@
|
||||
// Copyright (C) 2021 Contributors to the SLS Detector Package
|
||||
#pragma once
|
||||
#include "sls/sls_detector_defs.h"
|
||||
|
||||
namespace sls {
|
||||
|
||||
using dt = slsDetectorDefs::detectorType;
|
||||
using di = slsDetectorDefs::dacIndex;
|
||||
using defs = slsDetectorDefs;
|
||||
@ -15,3 +18,5 @@ extern decltype(defs::GET_ACTION) GET;
|
||||
extern decltype(defs::PUT_ACTION) PUT;
|
||||
|
||||
} // namespace test
|
||||
|
||||
} // namespace sls
|
||||
|
@ -2,6 +2,11 @@
|
||||
// Copyright (C) 2021 Contributors to the SLS Detector Package
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
|
||||
namespace sls {
|
||||
|
||||
enum class func_id { read_data, read_int, read_half_data, combined };
|
||||
constexpr size_t MB = 1048576;
|
||||
constexpr size_t DATA_SIZE = 50 * MB;
|
||||
constexpr size_t DATA_SIZE = 50 * MB;
|
||||
|
||||
} // namespace sls
|
||||
|
Reference in New Issue
Block a user