diff --git a/src/api/class/include/class/class_structures.hpp b/src/api/class/include/class/class_structures.hpp new file mode 100644 index 0000000000000000000000000000000000000000..51ddb681689a1428292bb098b2223b028aadb970 --- /dev/null +++ b/src/api/class/include/class/class_structures.hpp @@ -0,0 +1,33 @@ +/** + * @file class_structures.hpp + * @author Alfonso Dominguez <alfonso.dominguez@tecnalia.com> and Leire Querejeta Lomas <leire.querejeta@tecnalia.com> + * @date 2020 + * + * Copyright 2020 Tecnalia Research & Innovation. + * Distributed under the GNU GPL v3. + * For full terms see https://www.gnu.org/licenses/gpl.txt + * + * @brief Structures interchanged through the API methods + */ + +#pragma once + +#include <vector> + +//! Structure for a acquisition frame +struct AcqFrame +{ + double timestamp; ///< timestamp of the acquisition frame + std::vector<double> values; ///< values for the different channels +}; + +//! Structure for pattern +struct Pattern +{ + std::string amp; + std::string pw; + std::string r; + int ampval; + int pwval; + int time; +};