AdsLib
Loading...
Searching...
No Matches
RTimeAccess.h
1// SPDX-License-Identifier: MIT
6#pragma once
7
8#include "AdsDevice.h"
9
10namespace bhf
11{
12namespace ads
13{
14#define RTIME_CPU_SETTINGS 0xd
15#define RTIME_READ_LATENCY 0x2
16#define RTIME_RESET_LATENCY 0xb
17
19 uint32_t nWinCPUs;
20 uint32_t nNonWinCPUs;
21 uint64_t affinityMask;
22 uint32_t nRtCpus;
23 uint32_t nCpuType;
24 uint32_t nCpuFamily;
25 uint32_t nCpuFreq;
26};
27
29 uint32_t current;
30 uint32_t maximum;
31 uint32_t limit;
32};
33
35 RTimeAccess(const std::string& gw, AmsNetId netid, uint16_t port);
36 long ShowLatency(uint32_t indexOffset) const;
37 long ShowLatency(uint32_t indexOffset, uint32_t cpuId) const;
38private:
39 AdsDevice device;
40};
41}
42}
43
44std::ostream& operator<<(std::ostream& os, const bhf::ads::RTimeCpuSettings& info);
Definition: AdsDef.h:21
Definition: AdsDevice.h:55
The NetId of and ADS device can be represented in this structure.
Definition: AdsDef.h:224
Definition: RTimeAccess.h:34
Definition: RTimeAccess.h:28
Definition: RTimeAccess.h:18