MCPcopy Create free account
hub / github.com/Beckhoff/ADS / readExample

Function readExample

example/example.cpp:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static void readExample(std::ostream &out, const AdsDevice &route)
59{
60 AdsVariable<uint8_t> readVar{ route, 0x4020, 0 };
61
62 out << __FUNCTION__ << "():\n";
63 for (size_t i = 0; i < 8; ++i) {
64 out << "ADS read " << std::hex << (uint32_t)readVar << '\n';
65 }
66}
67
68static void readByNameExample(std::ostream &out, const AdsDevice &route)
69{

Callers 1

runExampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected