|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
Functions | |
| gsdml::GSDMLDataItem | MakeScalarItem (const std::string &dataType, const int length, const std::string &textId) |
| Create a scalar GSDML DataItem. | |
| gsdml::GSDMLDataItem | MakeBitByte (const std::string &parentTextId, const std::string &bitPrefix) |
| Create a GSDML Boolean byte containing eight BitDataItems. | |
| gsdml::GSDMLDevice | MakeAumaGsdml () |
| Build a compact GSDML model using the real AUMA signal identifiers. | |
| gsdml::GSDMLDevice | MakePhoenixGsdml () |
| Build a compact Phoenix GSDML model with four-byte DI/DO process data. | |
| VirtualAumaIocrConfiguration | MakeTestAumaIocrs (const gsdml::GSDMLDevice &device) |
| Build matching compact RTC1 IOCR configurations for the AUMA test model. | |
| bool | WaitUntil (const std::function< bool()> &predicate, std::chrono::milliseconds timeout=std::chrono::milliseconds(500)) |
| Wait until a predicate becomes true or the timeout expires. | |
| MacAddress | MakeIndexedMac (const std::uint8_t prefix, const std::size_t index) |
| Allocate a deterministic locally administered MAC address for an instance index. | |
Variables | |
| constexpr MacAddress | kControllerMac {0x02, 0x00, 0x00, 0x10, 0x00, 0x01} |
| constexpr MacAddress | kValveMac {0x02, 0x00, 0x00, 0x20, 0x00, 0x01} |
|
inline |
Build a compact GSDML model using the real AUMA signal identifiers.
Definition at line 56 of file virtual_sim_test_helpers.h.
References profinet::gsdml::GSDMLDevice::dapModuleId, profinet::gsdml::GSDMLDevice::deviceId, profinet::gsdml::GSDMLDevice::deviceName, profinet::gsdml::GSDMLModuleReference::fixedSlots, profinet::gsdml::GSDMLSubmodule::fixedSubslots, profinet::gsdml::GSDMLSubmodule::id, profinet::gsdml::GSDMLModule::id, profinet::gsdml::GSDMLSubmodule::inputItems, profinet::gsdml::GSDMLSubmodule::inputLength, MakeBitByte(), MakeScalarItem(), profinet::gsdml::GSDMLModuleReference::moduleId, profinet::gsdml::GSDMLModule::moduleIdentNumber, profinet::gsdml::GSDMLDevice::moduleReferences, profinet::gsdml::GSDMLDevice::modules, profinet::gsdml::GSDMLSubmodule::outputItems, profinet::gsdml::GSDMLSubmodule::outputLength, profinet::gsdml::GSDMLSubmodule::submoduleIdentNumber, profinet::gsdml::GSDMLModule::submodules, and profinet::gsdml::GSDMLDevice::vendorId.
Here is the call graph for this function:
|
inline |
Create a GSDML Boolean byte containing eight BitDataItems.
| parentTextId | Parent DataItem TextId. |
| bitPrefix | Prefix for each BitDataItem TextId. |
Definition at line 42 of file virtual_sim_test_helpers.h.
References MakeScalarItem().
Referenced by MakeAumaGsdml(), and MakePhoenixGsdml().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Allocate a deterministic locally administered MAC address for an instance index.
| prefix | Fourth MAC byte used to identify the simulator class. |
| index | Zero-based instance index. |
Definition at line 201 of file virtual_sim_test_helpers.h.
References MakeIndexedMac().
Referenced by MakeIndexedMac().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Build a compact Phoenix GSDML model with four-byte DI/DO process data.
Definition at line 122 of file virtual_sim_test_helpers.h.
References profinet::gsdml::GSDMLDevice::dapModuleId, profinet::gsdml::GSDMLDevice::deviceId, profinet::gsdml::GSDMLDevice::deviceName, profinet::gsdml::GSDMLModuleReference::fixedSlots, profinet::gsdml::GSDMLSubmodule::id, MakeBitByte(), MakeScalarItem(), profinet::gsdml::GSDMLModuleReference::moduleId, profinet::gsdml::GSDMLDevice::moduleReferences, profinet::gsdml::GSDMLDevice::modules, and profinet::gsdml::GSDMLDevice::vendorId.
Referenced by profinet::sim::TEST(), and profinet::sim::TEST().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Create a scalar GSDML DataItem.
| dataType | GSDML DataType. |
| length | Data length in bytes. |
| textId | GSDML TextId. |
Definition at line 27 of file virtual_sim_test_helpers.h.
References profinet::gsdml::GSDMLDataItem::dataType, profinet::gsdml::GSDMLDataItem::length, length, and profinet::gsdml::GSDMLDataItem::textId.
Referenced by MakeAumaGsdml(), MakeBitByte(), and MakePhoenixGsdml().
Here is the caller graph for this function:
|
inline |
Build matching compact RTC1 IOCR configurations for the AUMA test model.
| device | AUMA GSDML model. |
Definition at line 166 of file virtual_sim_test_helpers.h.
References MakeTestAumaIocrs(), and profinet::sim::MakeVirtualAumaIocrConfiguration().
Referenced by MakeTestAumaIocrs().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Wait until a predicate becomes true or the timeout expires.
| predicate | Condition to evaluate. |
| timeout | Maximum wait time. |
Definition at line 182 of file virtual_sim_test_helpers.h.
References WaitUntil().
Referenced by WaitUntil().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineconstexpr |
Definition at line 19 of file virtual_sim_test_helpers.h.
Referenced by profinet::sim::TEST().
|
inlineconstexpr |
Definition at line 20 of file virtual_sim_test_helpers.h.
Referenced by profinet::sim::TEST().