Loop Timing Witness
Native controller and runtime interfaces; hardware qualification pending
Toggle main menu visibility
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
18
namespace
witness {
20
class
Pac1934Device
{
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);
31
~Pac1934Device
();
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
witness::Pac1934Device::verify
void verify() const
witness::Pac1934Device::read
std::string read(const PowerRail &rail, const std::string &quantity, bool scale) const
witness::Pac1934Device::~Pac1934Device
~Pac1934Device()
witness::Pac1934Device::Pac1934Device
Pac1934Device(const PowerConfiguration &config)
power_configuration.h
witness::PowerConfiguration
Definition
power_configuration.h:27
witness::PowerRail
Definition
power_configuration.h:21
runtime
linux
pac1934_device.h
Generated by
1.18.0