Loop Timing Witness
Native controller and runtime interfaces; hardware qualification pending
Loading...
Searching...
No Matches
pac1934_device.h
Go to the documentation of this file.
1// SPDX-License-Identifier: AGPL-3.0-or-later
2// Commercial license available
3// © Concepts 1996–2026 Miroslav Šotek. All rights reserved.
4// © Code 2020–2026 Miroslav Šotek. All rights reserved.
5// ORCID: 0009-0009-3560-0851
6// Contact: www.anulum.li | protoscience@anulum.li
7// Loop Timing Witness — verified actual PAC1934 IIO attributes
8
12
13#ifndef WITNESS_PAC1934_DEVICE_H
14#define WITNESS_PAC1934_DEVICE_H
15#include "power_configuration.h"
16#include <sys/stat.h>
17
18namespace witness {
21 PowerConfiguration configuration;
22 int directory = -1;
23 struct stat identity {};
25 std::string attribute(const std::string &name) const;
26
27 public:
29 explicit Pac1934Device(const PowerConfiguration &config);
32 Pac1934Device(const Pac1934Device &) = delete;
33 Pac1934Device &operator=(const Pac1934Device &) = delete;
35 void verify() const;
37 std::string read(const PowerRail &rail, const std::string &quantity, bool scale) const;
38};
39} // namespace witness
40#endif
std::string read(const PowerRail &rail, const std::string &quantity, bool scale) const
Pac1934Device(const PowerConfiguration &config)