|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
Namespaces | |
| namespace | blocks |
| namespace | cyclic |
| namespace | CyclicCaptureTests |
| namespace | dcp |
| namespace | detail |
| namespace | device |
| namespace | diagnosis |
| namespace | gsdml |
| namespace | io |
| namespace | rpc |
| namespace | rt |
| namespace | sim |
| namespace | wire |
Classes | |
| struct | AlarmEndpoint |
| Alarm endpoint configuration. More... | |
| struct | AlarmItem |
| Generic/unknown alarm item. More... | |
| class | AlarmListener |
| Background listener for PROFINET alarm notifications. More... | |
| class | AlarmListenerCallbackTest |
| Test fixture for AlarmListener callback behavior. More... | |
| class | AlarmListenerRtaIntegrationTest |
| Test fixture for multi-frame RTA alarm exchanges. More... | |
| class | AlarmListenerRtaTest |
| Test fixture for Layer 2 RTA alarm handling. More... | |
| class | AlarmListenerTestAccess |
| Narrow private-access adapter used only by AlarmListener tests. More... | |
| class | AlarmListenerTests |
| class | AlarmListenerUdpTest |
| Test fixture for UDP AlarmListener behavior. More... | |
| struct | AlarmNotification |
| Complete parsed AlarmNotification PDU: header fields + parsed items. More... | |
| class | AsioEthernetSocket |
| Platform-independent raw Ethernet transport using Asio. More... | |
| class | AsioIoContextRunner |
| Keeps an Asio I/O context running on a dedicated worker thread. More... | |
| struct | DcpBlockKey |
| Identifies a PROFINET DCP block by option and suboption. More... | |
| class | DCPDeviceNotFoundError |
| Device not found via DCP. More... | |
| class | DCPError |
| DCP protocol errors. More... | |
| class | DCPTimeoutError |
| DCP operation timed out. More... | |
| struct | DiagnosisItem |
| Diagnosis alarm item. More... | |
| struct | EthernetHeader |
| Plain (untagged) Ethernet II frame header. More... | |
| class | EthernetPacketBackendTestFixture |
| Shared fixture for EthernetPacketBackend tests. More... | |
| struct | EthernetVLANHeader |
| 802.1Q VLAN-tagged Ethernet II frame header. More... | |
| class | IAlarmListener |
| Abstract interface for receiving PROFINET alarm notifications. More... | |
| class | IAsioIoContextRunner |
| Abstract interface for keeping an Asio I/O context running. More... | |
| class | IMacAddressProvider |
| Provides the MAC address of a network interface. More... | |
| class | IndicesTest |
| class | InvalidIPError |
| Invalid IP address format. More... | |
| class | InvalidMACError |
| Invalid MAC address format. More... | |
| struct | IOCRAPIObject |
| One slot/subslot's placement within an IOCR's cyclic data frame. More... | |
| struct | IParameterItem |
| iParameter alarm item (USI 0x8201). More... | |
| struct | IPConfiguration |
| Decoded IPv4 address/netmask/gateway triple. More... | |
| class | IRawEthernetSocket |
| Abstract interface for raw Ethernet frame transport. More... | |
| class | IUdpSocket |
| Abstract interface for IPv4 UDP datagram transport. More... | |
| class | MacAddressProvider |
| Production implementation of IMacAddressProvider. More... | |
| struct | MaintenanceItem |
| Maintenance alarm item (USI 0x8100). More... | |
| class | MaxTimeout |
| Time-limited-operation helper. More... | |
| class | MockAlarmListener |
| Google Mock implementation of IAlarmListener. More... | |
| struct | PEAlarmItem |
| PROFIenergy alarm item (USI 0x8310). More... | |
| class | PermissionDeniedError |
| Insufficient permissions for raw socket. More... | |
| struct | PNAlarmAckPDU |
| AlarmAck-PDU: acknowledges receipt of an AlarmNotification-PDU. More... | |
| struct | PNAlarmCRBlockReq |
| AlarmCRBlockReq: requests establishment of the alarm connection (part of the CONNECT request). More... | |
| struct | PNAlarmCRBlockRes |
| AlarmCRBlockRes: device's response confirming the alarm connection (part of the CONNECT response). More... | |
| struct | PNAlarmNotificationPDU |
| AlarmNotification-PDU: carries a diagnosis/process/pull/plug/... alarm event. More... | |
| struct | PNARBlockRequest |
| ARBlockReq: establishes an Application Relationship (sent in the CONNECT request). More... | |
| struct | PNBlockHeader |
| struct | PNDCPBlock |
| DCP response block: Option(1) + SubOption(1) + Length(2) + Status(2) + payload. More... | |
| struct | PNDCPBlockRequest |
| DCP request block: Option(1) + SubOption(1) + Length(2) + payload(Length). More... | |
| struct | PNDCPHeader |
| DCP (Discovery and Configuration Protocol) frame header. More... | |
| struct | PNExpectedSubmoduleDataDescription |
| Describes one direction (input or output) of a submodule's cyclic data. More... | |
| struct | PNInM0 |
| I&M0: mandatory identification data (vendor, order ID, serial number, revisions). More... | |
| struct | PNInM1 |
| I&M1: user-assigned tag function and location strings. More... | |
| struct | PNInM2 |
| I&M2: installation date. More... | |
| struct | PNInM3 |
| I&M3: free-text descriptor. More... | |
| struct | PNInM4 |
| I&M4: PROFIsafe signature (binary, not text). More... | |
| struct | PNInM5 |
| I&M5: free-text annotation. More... | |
| struct | PNInMReserved |
| I&M6-I&M15: reserved for future use per IEC 61158-6-10. More... | |
| struct | PNIOCRBlockReqHeader |
| IOCRBlockReq header: requests establishment of one IOCR (part of the CONNECT request). More... | |
| struct | PNIOCRBlockRes |
| IOCRBlockRes: device's response confirming an IOCR (part of the CONNECT response). More... | |
| struct | PNIODHeader |
| IOD read/write request/response header (RPC body for READ/WRITE/IMPLICIT_READ). More... | |
| struct | PNIODReleaseBlock |
| Control block used for Release/PrmBegin/PrmEnd/ApplicationReady/RTClass3 requests. More... | |
| struct | PNIODWriteReq |
| IODWriteReqHeader: request header for writing a data record. More... | |
| struct | PNIODWriteRes |
| IODWriteResHeader: response header confirming (or rejecting) a data record write. More... | |
| class | PNIOError |
| PNIO application error with error codes. More... | |
| class | PNIOErrorDirectTests |
| struct | PNNRDData |
| NRD (Network Representation Data) wrapper carrying the actual IOD payload. More... | |
| struct | PNRPCHeader |
| DCE/RPC PDU header used to carry PROFINET connect/read/write/control requests. More... | |
| struct | PNRTAHeader |
| RTA-PDU Header - Real-Time Acyclic PDU for Layer 2 alarm transport. More... | |
| struct | PRALAlarmItem |
| Pull Request Alarm item (USI 0x8320). More... | |
| class | ProfinetError |
| Base exception for all PROFINET errors. More... | |
| class | RPCConnectionError |
| Failed to establish RPC connection. More... | |
| class | RPCError |
| DCE/RPC protocol errors. More... | |
| class | RPCFaultError |
| RPC returned a fault response. More... | |
| class | RPCTimeoutError |
| RPC operation timed out. More... | |
| struct | RSAlarmItem |
| Reporting System alarm item (USI 0x8300-0x8302). More... | |
| struct | RtaError |
| Decoded PROFINET RTA ERR-PDU. More... | |
| struct | RtaErrorReasonTestCase |
| One complete RTA ErrorCode2 test case. More... | |
| class | RtaErrorsTests |
| class | RtaErrorTests |
| Tests for PROFINET RTA ERR-PDU decoding. More... | |
| class | SocketError |
| Socket operation error. More... | |
| class | StubRpcTransport |
| struct | UdpDatagram |
| A UDP datagram together with the IPv4 address of its sender. More... | |
| struct | UdpEndpoint |
| Portable IPv4 UDP endpoint. More... | |
| class | UdpSocket |
| RAII wrapper around a portable IPv4 UDP socket. More... | |
| struct | UploadRetrievalItem |
| Upload/Retrieval alarm item (USI 0x8200, 0x8201). More... | |
| class | ValidationError |
| Input validation error. More... | |
Typedefs | |
| using | AlarmItemVariant = std::variant< AlarmItem, DiagnosisItem, MaintenanceItem, UploadRetrievalItem, PEAlarmItem, RSAlarmItem, PRALAlarmItem > |
| A parsed alarm payload item; the held alternative is selected by USI. | |
| using | IndexNamePairs = std::vector< std::pair< std::uint16_t, std::string > > |
| (index, name) pairs, e.g. for building a "try each of these" scan. | |
| using | Bytes = std::vector< std::uint8_t > |
| Generic byte buffer alias used throughout the library for raw wire data. | |
| using | PNInM6 = PNInMReserved< 0xAFF6 > |
| I&M6 record type (reserved). | |
| using | PNInM7 = PNInMReserved< 0xAFF7 > |
| I&M7 record type (reserved). | |
| using | PNInM8 = PNInMReserved< 0xAFF8 > |
| I&M8 record type (reserved). | |
| using | PNInM9 = PNInMReserved< 0xAFF9 > |
| I&M9 record type (reserved). | |
| using | PNInM10 = PNInMReserved< 0xAFFA > |
| I&M10 record type (reserved). | |
| using | PNInM11 = PNInMReserved< 0xAFFB > |
| I&M11 record type (reserved). | |
| using | PNInM12 = PNInMReserved< 0xAFFC > |
| I&M12 record type (reserved). | |
| using | PNInM13 = PNInMReserved< 0xAFFD > |
| I&M13 record type (reserved). | |
| using | PNInM14 = PNInMReserved< 0xAFFE > |
| I&M14 record type (reserved). | |
| using | PNInM15 = PNInMReserved< 0xAFFF > |
| I&M15 record type (reserved). | |
| using | MacAddress = std::array< std::uint8_t, macAddressLength > |
| A 6-byte Ethernet MAC address. | |
Enumerations | |
| enum class | AlarmNotificationBitmask : std::uint16_t { None = 0x0000 , AlarmSequenceNumber = 0x07FF , ManufacturerSpecific = 0x1000 , SubmoduleDiagnosisState = 0x2000 , ArDiagnosisState = 0x4000 , ChannelDiagnosis = 0x0800 } |
| Represents bitwise flags and bitmasks for alarm notification headers. More... | |
| enum class | ErrorDecode : std::uint8_t { PnioCm = 0x40 , PnioRw = 0x80 , Pnio = 0x81 } |
| PROFINET error decode values. More... | |
| enum class | PnioRwErrorCode1 : std::uint8_t { InvalidIndex = 0xB0 , WriteLength = 0xB1 , Resource = 0xB2 , Access = 0xB3 , Application = 0xB4 } |
| PNIO read/write ErrorCode1 values. More... | |
| enum class | PnioCmErrorCode1 : std::uint8_t { Ar = 0x01 , Iocr = 0x02 , AlarmCr = 0x03 , ExpectedSubmodule = 0x04 , ModuleDiff = 0x05 , ArRpc = 0x06 , IrInfo = 0x07 , SrInfo = 0x08 , ArFsu = 0x09 , IodControlRequest = 0x10 , IodControlResponse = 0x11 , ArResponse = 0x81 , IocrResponse = 0x82 , AlarmCrResponse = 0x83 , ModuleDiffResponse = 0x84 , ArServerResponse = 0x85 , PrmServer = 0x3D , CmCtl = 0x3E , CmDev = 0x3F , CmRpc = 0x40 , FaultyRecord = 0xFD , FaultyAr = 0xFE , FaultyBlock = 0xFF } |
| PNIO-CM ErrorCode1 values. More... | |
| enum class | PnioRwInvalidIndexErrorCode2 : std::uint8_t { IndexNotSupported = 0x00 , IndexNotWritten = 0x05 } |
| PNIORW InvalidIndex ErrorCode2 values. More... | |
| enum class | PnioRwWriteLengthErrorCode2 : std::uint8_t { WriteLengthError = 0x00 , DataTooShort = 0x01 , DataTooLong = 0x02 , WriteProtected = 0x03 } |
| PNIORW WriteLength ErrorCode2 values. More... | |
| enum class | PnioRwResourceErrorCode2 : std::uint8_t { ResourceNotAvailable = 0x00 , InvalidSlot = 0x07 , InvalidSubslot = 0x08 , ModuleHasNoData = 0x09 } |
| PNIORW Resource ErrorCode2 values. More... | |
| enum class | PnioRwAccessErrorCode2 : std::uint8_t { InvalidArea = 0x00 , AccessDenied = 0x03 , InvalidRange = 0x04 , InvalidState = 0x05 , LocalControl = 0x06 } |
| PNIORW Access ErrorCode2 values. More... | |
| enum class | PnioRwApplicationErrorCode2 : std::uint8_t { ReadError = 0x00 , WriteError = 0x01 , ModuleFailure = 0x02 , ResourceBusy = 0x04 , VersionConflict = 0x05 , InvalidApi = 0x06 , BackupNotAllowed = 0x07 , AlarmPending = 0x08 } |
| PNIORW Application ErrorCode2 values. More... | |
| enum class | PnioCmArErrorCode2 : std::uint8_t { InvalidArType = 0x00 , ArAlreadyActive = 0x01 , NoArResources = 0x02 , NoProviderResources = 0x03 , NoConsumerResources = 0x04 , NoAlarmResources = 0x05 , NoMemory = 0x06 , InvalidSessionKey = 0x07 , ArUuidConflict = 0x08 } |
| PNIO-CM AR ErrorCode2 values. More... | |
| enum class | PnioCmIocrErrorCode2 : std::uint8_t { InvalidIocrType = 0x00 , NoIocrResources = 0x01 , InvalidFrameId = 0x02 , InvalidRtClass = 0x03 , InvalidIoDataLength = 0x04 , CycleTimeConflict = 0x05 , WatchdogConfigurationError = 0x06 } |
| PNIO-CM IOCR ErrorCode2 values. More... | |
| enum class | PnioCmAlarmCrErrorCode2 : std::uint8_t { InvalidAlarmCrType = 0x00 , NoAlarmCrResources = 0x01 } |
| PNIO-CM Alarm CR ErrorCode2 values. More... | |
| enum class | PnioCmExpectedSubmoduleErrorCode2 : std::uint8_t { InvalidSlot = 0x00 , InvalidSubslot = 0x01 , WrongModuleIdentNumber = 0x02 , WrongSubmoduleIdentNumber = 0x03 , IoDataLengthMismatch = 0x04 } |
| PNIO-CM Expected Submodule ErrorCode2 values. More... | |
| enum class | PnioCmDeviceErrorCode2 : std::uint8_t { DeviceStateConflict = 0x00 , ConnectionResourceUnavailable = 0x01 , AlreadyOwned = 0x02 , ArSetAborted = 0x03 } |
| PNIO-CM Device ErrorCode2 values. More... | |
| enum class | PnioCmFaultyBlockErrorCode2 : std::uint8_t { FaultyBlockStructure = 0x00 } |
| PNIO-CM Faulty Block ErrorCode2 values. More... | |
| enum class | PnioErrorCode1 : std::uint8_t { Rmpm = 0x40 , PrmServer = 0x3D } |
| PNIO ErrorCode1 values. More... | |
| enum class | PnioRmpmErrorCode2 : std::uint8_t { InvalidArgumentsLength = 0x00 , UnknownBlocksInRequest = 0x01 , RequiredIocrBlockMissing = 0x02 , WrongAlarmCrBlockCount = 0x03 , OutOfArResources = 0x04 } |
| PNIO RMPM ErrorCode2 values. More... | |
| enum class | PnioPrmServerErrorCode2 : std::uint8_t { StateConflict = 0x00 } |
| PNIO Parameter Server ErrorCode2 values. More... | |
| enum class | ControlCommand : std::uint16_t { PrmEnd = 0x0001 , ApplicationReady = 0x0002 , Release = 0x0004 , Done = 0x0008 , ReadyForCompanion = 0x0010 , ReadyForRtClass3 = 0x0020 , PrmBegin = 0x0040 } |
| PROFINET IOD control command values. More... | |
| enum class | BlockType : std::uint16_t { DiagnosisData = 0x0010 , ExpectedIdentificationData = 0x0012 , RealIdentificationData = 0x0013 , IdentificationMaintenance0 = 0x0020 , IdentificationMaintenance1 = 0x0021 , IdentificationMaintenance2 = 0x0022 , IdentificationMaintenance3 = 0x0023 , IdentificationMaintenance4 = 0x0024 , IdentificationMaintenance5 = 0x0025 , IdentificationMaintenance6 = 0x0026 , IdentificationMaintenance7 = 0x0027 , IdentificationMaintenance8 = 0x0028 , IdentificationMaintenance9 = 0x0029 , IdentificationMaintenance10 = 0x002A , IdentificationMaintenance11 = 0x002B , IdentificationMaintenance12 = 0x002C , IdentificationMaintenance13 = 0x002D , IdentificationMaintenance14 = 0x002E , IdentificationMaintenance15 = 0x002F , AlarmNotificationHigh = 0x0001 , AlarmAcknowledgementHigh = 0x8001 , AlarmNotificationLow = 0x0002 , AlarmAcknowledgementLow = 0x8002 , IoDataWriteRequest = 0x0008 , IoDataWriteResponse = 0x8008 , IoDataReadRequest = 0x0009 , IoDataReadResponse = 0x8009 , ApplicationRelationData = 0x0018 , LogData = 0x0019 , ApiData = 0x001A , SrlData = 0x001B , ApplicationRelationRequest = 0x0101 , ApplicationRelationResponse = 0x8101 , IoCrRequest = 0x0102 , IoCrResponse = 0x8102 , AlarmCrRequest = 0x0103 , AlarmCrResponse = 0x8103 , ExpectedSubmoduleRequest = 0x0104 , ModuleDifference = 0x8104 , ControlPrmEndRequest = 0x0110 , ControlPrmEndResponse = 0x8110 , ControlApplicationReadyRequest = 0x0112 , ControlApplicationReadyResponse = 0x8112 , ReleaseRequest = 0x0114 , ReleaseResponse = 0x8114 , ControlRtClass3Request = 0x0117 , ControlRtClass3Response = 0x8117 , ParameterizationBeginRequest = 0x0118 , ParameterizationBeginResponse = 0x8118 , SubmoduleList = 0x0119 , PortDataCheck = 0x0200 , PortDataAdjust = 0x0202 , PortDataReal = 0x020F , InterfaceMrpDataAdjust = 0x0211 , InterfaceMrpDataReal = 0x0212 , PortMrpDataReal = 0x0215 , MrpRingStateData = 0x0219 , PortFoDataReal = 0x0220 , PortFoDataCheck = 0x0221 , PortFoDataAdjust = 0x0222 , PortDataRealExtended = 0x022C , PortDataInterfaceDataReal = 0x0240 , PortStatistics = 0x0251 , MultipleHeader = 0x0400 , ContainerContent = 0x0401 , ApplicationRelationServer = 0xF820 , RealProcessData = 0xF841 , ExpectedProcessData = 0xF842 , RealIdentificationDataApi = 0xF000 } |
| PROFINET block types. More... | |
| enum class | AlarmType : std::uint16_t { Diagnosis = 0x0001 , Process = 0x0002 , Pull = 0x0003 , Plug = 0x0004 , Status = 0x0005 , Update = 0x0006 , Redundancy = 0x0007 , ControlledBySupervisor = 0x0008 , Released = 0x0009 , PlugWrongSubmodule = 0x000A , ReturnOfSubmodule = 0x000B , DiagnosisDisappears = 0x000C , MulticastMismatch = 0x000D , PortDataChange = 0x000E , SyncDataChanged = 0x000F , IsochronousModeProblem = 0x0010 , NetworkComponentProblem = 0x0011 , TimeDataChanged = 0x0012 , DfpProblem = 0x0013 , UploadRetrieval = 0x001E , PullModule = 0x001F } |
| PROFINET Alarm Types used in AlarmNotification blocks. More... | |
| enum class | IocrType : std::uint16_t { Input = 0x0001 , Output = 0x0002 , MulticastProvider = 0x0003 , MulticastConsumer = 0x0004 } |
| PROFINET IOCR types. More... | |
| enum class | IocrRtClass : std::uint8_t { Udp = 0x04 } |
| PROFINET IOCR real-time classes. More... | |
| enum class | Usi : std::uint16_t { NoIdentifier = 0x0000 , ChannelDiagnosis = 0x8000 , MultipleDiagnosis = 0x8001 , ExtendedChannelDiagnosis = 0x8002 , QualifiedChannelDiagnosis = 0x8003 , Maintenance = 0x8100 , Upload = 0x8200 , IParameter = 0x8201 , RsAlarmLow = 0x8300 , RsAlarmHigh = 0x8301 , RsAlarmSubmodule = 0x8302 , PeAlarm = 0x8310 , PralAlarm = 0x8320 , Bit0till14OfChannelNumber = 0x7FFF , Bit15OfChannelNumber = 0x8000 , Bit15AndExternalChannelDiagnosisOfChannelNumber = 0x8002 , Bit15AndQualifiedChannelDiagnosisOfChannelNumber = 0x8003 , Low11BitsOfRsAlarmInfo = 0x7FFF } |
| PROFINET User Structure Identifiers (USI). More... | |
| enum class | DcpFrameId : std::uint16_t { Unknown = 0x0000 , IdentifyRequest = 0xFEFE , IdentifyResponse = 0xFEFF , GetSet = 0xFEFD , Hello = 0xFEFC } |
| PROFINET DCP frame identifiers. More... | |
| enum class | DcpServiceId : std::uint8_t { Unknown = 0x00 , Get = 0x03 , Set = 0x04 , Identify = 0x05 , Hello = 0x06 } |
| DCP service identifiers. More... | |
| enum class | DcpServiceType : std::uint8_t { Request = 0x00 , ResponseSuccess = 0x01 , ResponseUnsupported = 0x05 } |
| DCP service types. More... | |
| enum class | DcpOption : std::uint8_t { Unknown = 0x00 , Ip = 0x01 , Device = 0x02 , Dhcp = 0x03 , Reserved = 0x04 , Control = 0x05 , DeviceInitiative = 0x06 , Nme = 0x07 , All = 0xFF } |
| DCP options. More... | |
| enum class | DcpIpSuboption : std::uint8_t { Unknown = 0x00 , Mac = 0x01 , IpParameter = 0x02 , FullIpSuite = 0x03 } |
| DCP IP suboptions. More... | |
| enum class | DcpDeviceSuboption : std::uint8_t { Unknown = 0x00 , Type = 0x01 , Name = 0x02 , DeviceId = 0x03 , Role = 0x04 , Options = 0x05 , Alias = 0x06 , Instance = 0x07 , OemId = 0x08 , Rsi = 0x0A } |
| DCP Device suboptions. More... | |
| enum class | DcpControlSuboption : std::uint8_t { Unknown = 0x00 , Start = 0x01 , Stop = 0x02 , Signal = 0x03 , Response = 0x04 , FactoryReset = 0x05 , ResetToFactory = 0x06 } |
| DCP Control suboptions. More... | |
| enum class | DcpDhcpSuboption : std::uint8_t { Unknown = 0x00 , Hostname = 0x0C , VendorSpec = 0x2B , ServerId = 0x36 , ParamReq = 0x37 , ClassId = 0x3C , ClientId = 0x3D , Fqdn = 0x51 , Uuid = 0x61 , Control = 0xFF } |
| DCP DHCP suboptions. More... | |
| enum class | DcpDeviceInitiativeSuboption : std::uint8_t { Initiative = 0x01 } |
| DCP DeviceInitiative suboptions. More... | |
| enum class | DcpDeviceRole : std::uint8_t { IoDevice = 0x01 , IoController = 0x02 , IoMultidevice = 0x04 , PnSupervisor = 0x08 } |
| Device role bitmask. More... | |
| enum class | DcpResetMode : std::uint16_t { Communication = 0x0002 , Application = 0x0004 , Engineering = 0x0008 , AllData = 0x0010 , Device = 0x0020 , Factory = 0x0040 } |
| Reset mode bitmask. More... | |
| enum class | DcpDeviceInitiative : std::uint16_t { NoHello = 0x0000 , IssueHello = 0x0001 } |
| DCP device-initiative values. More... | |
| enum class | DcpBlockError : std::uint8_t { Ok = 0x00 , OptionUnsupported = 0x01 , SuboptionUnsupported = 0x02 , SuboptionNotSet = 0x03 , Resource = 0x04 , SetNotPossible = 0x05 , InOperation = 0x06 } |
| DCP block-level SET response errors. More... | |
| enum class | DcpResponseCode : std::uint8_t { NoError = 0x00 , OptionNotSupported = 0x01 , SuboptionNotSupported = 0x02 , SuboptionNotSet = 0x03 , ResourceError = 0x04 , SetNotPossible = 0x05 , InOperationSetNotPossible = 0x06 } |
| DCP GET/SET response codes. More... | |
| enum class | DcpResetQualifier : std::uint16_t { Unknown = 0x0000 , ApplicationData = 0x0002 , ApplicationDataAlternate = 0x0003 , CommunicationParameter = 0x0004 , CommunicationParameterAlternate = 0x0005 , EngineeringParameter = 0x0006 , EngineeringParameterAlternate = 0x0007 , AllStoredData = 0x0008 , AllStoredDataAlternate = 0x0009 , EngineeringParameterExtended = 0x000A , EngineeringParameterExtendedAlternate = 0x000B , ToFactory = 0x0010 , ToFactoryAlternate = 0x0011 , Restore = 0x0012 , RestoreAlternate = 0x0013 } |
| Reset qualifier values for ResetToFactory(). More... | |
| enum class | DcpBlockQualifier : std::uint16_t { Temporary = 0x0000 , Permanent = 0x0001 } |
| DCP block qualifier values. More... | |
| enum class | DcpIpBlockInfo : std::uint16_t { NotSet = 0x0000 , Set = 0x0001 , SetByDhcp = 0x0002 , NotSetConflict = 0x0080 , SetConflict = 0x0081 , SetByDhcpConflict = 0x0082 } |
| PROFINET DCP IP block status values. IP block status flags (IEC 61158-6-10 IPBlockInfo). More... | |
| enum class | RtaErrorClass : std::uint8_t { Reserved = 0x00 , SequenceNumber = 0x01 , Abort = 0x02 , Extended = 0x03 , Obsoleted = 0x04 , UserSpecific = 0x05 } |
| Classification of an RTA protocol error reason. More... | |
| enum class | RtaErrorReason : std::uint8_t { Reserved = 0x00 , SequenceNumber = 0x01 , InstanceClosed = 0x02 , ArOutOfMemory = 0x03 , ArAddProviderConsumerFailed = 0x04 , ArConsumerDhtWdtExpired = 0x05 , ArCmiTimeout = 0x06 , ArAlarmOpenFailed = 0x07 , ArAlarmSendConfirmationNegative = 0x08 , ArAlarmAckSendConfirmationNegative = 0x09 , ArAlarmDataTooLong = 0x0A , ArAlarmIndError = 0x0B , ArRpcClientCallConfirmationNegative = 0x0C , ArAbortRequest = 0x0D , ArRerunAbortsExisting = 0x0E , ArReleaseIndReceived = 0x0F , ArDeviceDeactivated = 0x10 , ArRemoved = 0x11 , ArProtocolViolation = 0x12 , ArNameResolutionError = 0x13 , ArRpcBindError = 0x14 , ArRpcConnectError = 0x15 , ArRpcReadError = 0x16 , ArRpcWriteError = 0x17 , ArRpcControlError = 0x18 , ArForbiddenPullPlug = 0x19 , ArApRemoved = 0x1A , ArLinkDown = 0x1B , ArMulticastMacRegistrationFailed = 0x1C , NotSynchronized = 0x1D , WrongTopology = 0x1E , DcpStationNameChanged = 0x1F , DcpResetToFactorySettings = 0x20 , CompanionAr8ippSubmodule = 0x21 , NoIrdataRecordYet = 0x22 , Pdev = 0x23 , PdevNoRequiredSpeedDuplexity = 0x24 , IpSuiteChanged = 0x25 , IocarSrRdhtExpired = 0x26 , IocarSrPdevParameterizationImpossible = 0x27 , RemoteApplicationReadyTimeout = 0x28 , IocarSrRedundantInterfaceLost = 0x29 , IocarSrMtotExpired = 0x2A , IocarSrArProtocolViolation = 0x2B , PdevPlugPortWithoutCombinedObjectContainer = 0x2C , ObsoletedNmeNoConfiguration = 0x2D , UserAbort = 0xFF } |
| Exact current PROFINET RTA ErrorCode2 values. More... | |
Functions | |
| Usi | UsiOf (const AlarmItemVariant &item) |
| Get the USI shared by every AlarmItemVariant alternative. | |
| std::string | UsiNameOf (const AlarmItemVariant &item) |
| Get the human-readable USI name for any AlarmItemVariant alternative. | |
| std::pair< AlarmItemVariant, std::size_t > | ParseAlarmItem (const Bytes &data, std::size_t offset=0) |
| Parse a single alarm item starting at an offset. | |
| AlarmNotification | ParseAlarmNotification (const Bytes &data) |
| Parse a complete AlarmNotification PDU (BlockHeader + body + items). | |
| constexpr AlarmNotificationBitmask | operator| (AlarmNotificationBitmask lhs, AlarmNotificationBitmask rhs) noexcept |
| Bitwise OR operator for combining two AlarmNotificationBitmask values. | |
| constexpr AlarmNotificationBitmask | operator& (AlarmNotificationBitmask lhs, AlarmNotificationBitmask rhs) noexcept |
| Bitwise AND operator for intersecting two AlarmNotificationBitmask values. | |
| constexpr std::uint16_t | operator& (std::uint16_t lhs, AlarmNotificationBitmask rhs) noexcept |
| Bitwise AND between a raw integer and an AlarmNotificationBitmask value. | |
| constexpr std::uint16_t | operator& (AlarmNotificationBitmask lhs, std::uint16_t rhs) noexcept |
| Bitwise AND between an AlarmNotificationBitmask value and a raw integer. | |
| constexpr std::uint16_t | operator| (std::uint16_t lhs, AlarmNotificationBitmask rhs) noexcept |
| Bitwise OR between a raw integer and an AlarmNotificationBitmask value. | |
| constexpr std::uint16_t | operator| (AlarmNotificationBitmask lhs, std::uint16_t rhs) noexcept |
| Bitwise OR between an AlarmNotificationBitmask value and a raw integer. | |
| std::string | GetErrorDecodeName (ErrorDecode errorDecodeName) |
| Get the human-readable name for an ErrorDecode value. | |
| std::string | GetPnioRwErrorCode1Name (PnioRwErrorCode1 errorCodeRw1) |
| Get the human-readable name for a PNIORW ErrorCode1. | |
| std::string | GetPnioCmErrorCode1Name (PnioCmErrorCode1 errorCodeCm1) |
| Get the human-readable name for a PNIO-CM ErrorCode1. | |
| std::string | GetPnioRwErrorMessage (PnioRwInvalidIndexErrorCode2 errorCode2) |
| Get the human-readable message for an InvalidIndex error. | |
| std::string | GetPnioRwErrorMessage (PnioRwWriteLengthErrorCode2 errorCode2) |
| Get the human-readable message for a WriteLength error. | |
| std::string | GetPnioRwErrorMessage (PnioRwResourceErrorCode2 errorCode2) |
| Get the human-readable message for a Resource error. | |
| std::string | GetPnioRwErrorMessage (PnioRwAccessErrorCode2 errorCode2) |
| Get the human-readable message for an Access error. | |
| std::string | GetPnioRwErrorMessage (PnioRwApplicationErrorCode2 errorCode2) |
| Get the human-readable message for an Application error. | |
| std::string | GetPnioCmErrorMessage (PnioCmArErrorCode2 errorCode2) |
| Get the human-readable message for a PNIO-CM AR error. | |
| std::string | GetPnioCmErrorMessage (PnioCmIocrErrorCode2 errorCode2) |
| Get the human-readable message for a PNIO-CM IOCR error. | |
| std::string | GetPnioCmErrorMessage (PnioCmAlarmCrErrorCode2 errorCode2) |
| Get the human-readable message for a PNIO-CM Alarm CR error. | |
| std::string | GetPnioCmErrorMessage (PnioCmExpectedSubmoduleErrorCode2 errorCode2) |
| Get the human-readable message for a PNIO-CM Expected Submodule error. | |
| std::string | GetPnioCmErrorMessage (PnioCmDeviceErrorCode2 errorCode2) |
| Get the human-readable message for a PNIO-CM Device error. | |
| std::string | GetPnioCmErrorMessage (PnioCmFaultyBlockErrorCode2 errorCode2) |
| Get the human-readable message for a PNIO-CM Faulty Block error. | |
| std::string | GetPnioErrorCode1Name (PnioErrorCode1 errorCode1) |
| Get the human-readable name of a PNIO ErrorCode1. | |
| std::string | GetPnioErrorMessage (PnioRmpmErrorCode2 errorCode2) |
| Get the human-readable message for an RMPM ErrorCode2. | |
| std::string | GetPnioErrorMessage (PnioPrmServerErrorCode2 errorCode2) |
| Get the human-readable message for a Parameter Server ErrorCode2. | |
| std::string | GetPnioRwErrorMessage (PnioRwErrorCode1 errorCode1, std::uint8_t errorCode2) |
| Decode a PNIO read/write error. | |
| constexpr bool | operator== (BlockType lhs, std::uint16_t rhs) noexcept |
| Checks equality between a BlockType enum and a raw uint16_t value. | |
| constexpr bool | operator== (std::uint16_t lhs, BlockType rhs) noexcept |
| Checks equality between a raw uint16_t value and a BlockType enum. | |
| constexpr bool | operator!= (BlockType lhs, std::uint16_t rhs) noexcept |
| Checks inequality between a BlockType enum and a raw uint16_t value. | |
| constexpr bool | operator!= (std::uint16_t lhs, BlockType rhs) noexcept |
| Checks inequality between a raw uint16_t value and a BlockType enum. | |
| std::ostream & | operator<< (std::ostream &os, BlockType type) |
| Enables clean printing of BlockType. | |
| std::string | GetBlockTypeName (BlockType blockType) |
| Get the human-readable name for a block type. | |
| std::string | GetAlarmTypeName (AlarmType alarmType) |
| Get the human-readable name for an alarm type. | |
| std::string | GetIocrTypeName (IocrType iocrType) |
| Get the human-readable name for an IOCR type. | |
| std::string | GetIocrRtClassName (IocrRtClass rtClass) |
| Get the human-readable name for an IOCR real-time class. | |
| constexpr bool | operator== (Usi lhs, std::uint16_t rhs) noexcept |
| Checks equality between a Usi enum and a raw uint16_t value. | |
| constexpr bool | operator== (std::uint16_t lhs, Usi rhs) noexcept |
| Checks equality between a raw uint16_t value and a Usi enum. | |
| constexpr bool | operator!= (Usi lhs, std::uint16_t rhs) noexcept |
| Checks inequality between a Usi enum and a raw uint16_t value. | |
| constexpr bool | operator!= (std::uint16_t lhs, Usi rhs) noexcept |
| Checks inequality between a raw uint16_t value and a Usi enum. | |
| std::ostream & | operator<< (std::ostream &os, Usi value) |
| Print operator for std::ostream and GoogleTest output formatting. | |
| std::string | GetUsiName (Usi usi) |
| Get the human-readable name for a User Structure Identifier. | |
| std::string | GetModuleStateName (std::uint16_t state) |
| Get the human-readable name for a module state. | |
| std::string | GetSubmoduleStateName (std::uint16_t state) |
| Get the human-readable name for a submodule state. | |
| std::string | GetPeModeName (std::uint8_t mode) |
| Get the human-readable name for a PROFIenergy operational mode. | |
| const IndexNamePairs & | CriticalIndices () |
| Critical indices that should always be tested. | |
| const IndexNamePairs & | ImIndices () |
| I&M0-I&M15 indices. | |
| const IndexNamePairs & | DiagnosisIndices (const std::string &scope) |
| Diagnosis indices for a given addressing scope. | |
| const IndexNamePairs & | PortIndices () |
| Port-level indices. | |
| const IndexNamePairs & | InterfaceIndices () |
| Interface-level indices. | |
| const IndexNamePairs & | DeviceIndices () |
| Device-level indices. | |
| const IndexNamePairs & | AllStandardIndices () |
| Union of every standard index category. | |
| std::string | GetIndexName (std::uint16_t index) |
| Get the human-readable name for a record data index. | |
| std::string | GetScope (std::uint16_t index) |
| Get the addressing scope for an index. | |
| constexpr DcpDeviceRole | operator| (DcpDeviceRole lhs, DcpDeviceRole rhs) |
| constexpr DcpDeviceRole | operator& (DcpDeviceRole lhs, DcpDeviceRole rhs) |
| constexpr DcpResetMode | operator| (DcpResetMode lhs, DcpResetMode rhs) |
| constexpr DcpResetMode | operator& (DcpResetMode lhs, DcpResetMode rhs) |
| RtaError | ParseRtaError (const PNRTAHeader &header) |
| Parse an RTA ERR-PDU from an already parsed RTA header. | |
| RtaError | ParseRtaError (const Bytes &data) |
| Parse an RTA ERR-PDU from raw RTA PDU bytes. | |
| std::string | Hex4 (std::uint16_t value) |
| Format a 16-bit unsigned integer as a 4-digit hexadecimal string. | |
| std::string | Hex2 (std::uint8_t value) |
| Format an 8-bit unsigned integer as a 2-digit hexadecimal string. | |
| std::vector< std::uint8_t > | ToVec (const std::string &input) |
| Convert a string into a vector of raw bytes. | |
| std::string | HexFallback (const char *widthPrefix, std::uint32_t value, int digitWidth) |
| Format a hexadecimal string with a custom prefix and dynamic width. | |
| std::size_t | SkipVlanTags (std::span< const std::uint8_t > frame) noexcept |
| Return the byte offset of the real EtherType in a raw Ethernet frame. | |
| std::string | ToHex (const std::uint8_t *data, std::size_t len) |
| Hex-encode a byte buffer. | |
| std::string | ToHex (const std::vector< std::uint8_t > &data) |
| Hex-encode a byte buffer. | |
| MacAddress | String2Mac (const std::string &macStr) |
| Parse a colon-separated MAC address string. | |
| std::string | Mac2String (const MacAddress &mac) |
| Format a MAC address as a colon-separated string. | |
| std::string | Mac2String (const std::uint8_t *macBytes, std::size_t len) |
| Format a MAC address as a colon-separated string. | |
| std::string | String2Ip (std::span< const std::uint8_t > ipBytes) |
| Format raw IPv4 address bytes as a dotted string. | |
| std::string | String2Ip (const std::uint8_t *ipBytes, std::size_t len) |
| Format raw IPv4 address bytes as a dotted string. | |
| std::array< std::uint8_t, 4 > | Ip2String (const std::string &ipStr) |
| Parse a dotted-decimal IPv4 address string. | |
| std::string | DecodeBytes (const std::uint8_t *data, std::size_t len) |
| Decode bytes to a UTF-8 string, stripping trailing NUL bytes. | |
| std::string | DecodeBytes (const std::vector< std::uint8_t > &data) |
| Decode bytes to a UTF-8 string, stripping trailing NUL bytes. | |
| MacAddress | GetInterfaceMac (const std::string &interface) |
| Get the MAC address assigned to a network interface. | |
| std::filesystem::path | GetExecutableDirectory () |
| Retrieves the absolute directory path of the currently running executable. | |
| template<typename T > | |
| constexpr T | ByteSwap (T value) |
| template<typename T > | |
| constexpr std::uint8_t | ByteAt (T value, std::size_t index) |
| Return one byte from an integral value. | |
| std::string | GetVendorName (std::uint16_t vendorId) |
| Get the vendor name for a 16-bit PROFINET vendor ID. | |
| std::optional< std::string > | LookupVendor (std::uint16_t vendorId) |
| Look up a vendor name without a fallback string. | |
| RtaErrorClass | ClassifyRtaError (RtaErrorReason reason) |
| TEST (AlarmEndpointTests, DefaultTransportIsLayer2) | |
| TEST (AlarmEndpointTests, AllFieldsCanBeConfigured) | |
| TEST_F (AlarmListenerTests, InitializesWithEndpoint) | |
| TEST_F (AlarmListenerTests, InitializesWithoutCallbacks) | |
| TEST_F (AlarmListenerTests, AddLambaCallbackRegistersCallback) | |
| TEST_F (AlarmListenerTests, AddCallbackRegistersCallback) | |
| TEST_F (AlarmListenerTests, AddEmptyCallbackDoesNothing) | |
| TEST_F (AlarmListenerTests, RemoveCallback) | |
| TEST_F (AlarmListenerTests, RemoveNonexistentCallbackDoesNotThrow) | |
| TEST_F (AlarmListenerTests, RemoveEmptyCallbackDoesNothing) | |
| TEST_F (AlarmListenerTests, IsRunningInitiallyFalse) | |
| TEST_F (AlarmListenerTests, IsRunningReflectsState) | |
| TEST_F (AlarmListenerTests, ControllerMacDefaultsToZero) | |
| TEST_F (AlarmListenerTests, AcceptsCustomControllerMac) | |
| TEST (AlarmFrameIdTests, HighPriorityAlarmFrameId) | |
| TEST (AlarmFrameIdTests, LowPriorityAlarmFrameId) | |
| TEST_F (AlarmListenerTests, FailedStartLeavesListenerStopped) | |
| TEST_F (AlarmListenerTests, StartAfterFailedStartSucceeds) | |
| TEST_F (AlarmListenerTests, StopIsIdempotent) | |
| TEST_F (AlarmListenerRtaTest, UntaggedAlarmFrameIsProcessed) | |
| TEST_F (AlarmListenerRtaTest, VlanTaggedAlarmFrameIsProcessed) | |
| TEST_F (AlarmListenerRtaTest, HighPriorityAlarmUsesHighFrameId) | |
| TEST_F (AlarmListenerRtaTest, NonProfinetEtherTypeIsIgnored) | |
| TEST_F (AlarmListenerRtaTest, WrongSourceMacIsIgnored) | |
| TEST_F (AlarmListenerRtaTest, WrongDestinationReferenceIsIgnored) | |
| TEST_F (AlarmListenerRtaTest, ShortEthernetFrameIsIgnored) | |
| TEST_F (AlarmListenerRtaTest, AlarmAckIsPriorityVlanTagged) | |
| TEST_F (AlarmListenerRtaTest, AlarmAckUsesDataPdu) | |
| TEST_F (AlarmListenerRtaTest, AlarmAckUsesDeviceEndpointAsDestination) | |
| TEST_F (AlarmListenerRtaTest, AlarmAckEchoesReceivedSequenceNumber) | |
| TEST_F (AlarmListenerCallbackTest, ReceivedAlarmInvokesCallback) | |
| TEST_F (AlarmListenerCallbackTest, MultipleCallbacksAreInvoked) | |
| TEST_F (AlarmListenerCallbackTest, EmptyCallbackIsIgnored) | |
| TEST_F (AlarmListenerCallbackTest, CallbackExceptionDoesNotPreventOtherCallbacks) | |
| TEST_F (AlarmListenerRtaIntegrationTest, TwoAlarmNotificationsAreDispatched) | |
| TEST_F (AlarmListenerRtaTest, InvalidAlarmPayloadIsNotAcknowledged) | |
| TEST_F (AlarmListenerRtaTest, WrongRtaVersionIsIgnored) | |
| TEST_F (AlarmListenerRtaTest, DataWithoutTackIsIgnored) | |
| TEST_F (AlarmListenerRtaIntegrationTest, DISABLED_DuplicateNotificationIsNotDispatchedTwice) | |
| TEST_F (AlarmListenerRtaTest, DISABLED_OutOfSequenceNotificationIsRejected) | |
| TEST_F (AlarmListenerRtaTest, FirstAlarmAckUsesInitialSequenceNumber) | |
| TEST_F (RtaErrorTests, ParsesAumaReleaseIndReceivedError) | |
| TEST_F (RtaErrorTests, IgnoresEthernetPaddingAfterStatus) | |
| TEST_F (RtaErrorTests, RejectsNonErrRtaPdu) | |
| TEST_F (RtaErrorTests, RejectsWrongVariablePartLength) | |
| TEST_F (RtaErrorTests, RejectsTruncatedStatus) | |
| TEST_F (RtaErrorTests, SequenceErrorIsNotAbort) | |
| TEST_F (RtaErrorTests, NonRtaStatusIsNotProtocolError) | |
| TEST_P (RtaErrorsTests, EveryDefinedReasonIsDecoded) | |
| INSTANTIATE_TEST_SUITE_P (AllDefinedReasons, RtaErrorsTests, ::testing::Values(RtaErrorReasonTestCase{0x00, RtaErrorReason::Reserved, RtaErrorClass::Reserved}, RtaErrorReasonTestCase{0x01, RtaErrorReason::SequenceNumber, RtaErrorClass::SequenceNumber}, RtaErrorReasonTestCase{0x02, RtaErrorReason::InstanceClosed, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x03, RtaErrorReason::ArOutOfMemory, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x04, RtaErrorReason::ArAddProviderConsumerFailed, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x05, RtaErrorReason::ArConsumerDhtWdtExpired, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x06, RtaErrorReason::ArCmiTimeout, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x07, RtaErrorReason::ArAlarmOpenFailed, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x08, RtaErrorReason::ArAlarmSendConfirmationNegative, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x09, RtaErrorReason::ArAlarmAckSendConfirmationNegative, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x0A, RtaErrorReason::ArAlarmDataTooLong, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x0B, RtaErrorReason::ArAlarmIndError, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x0C, RtaErrorReason::ArRpcClientCallConfirmationNegative, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x0D, RtaErrorReason::ArAbortRequest, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x0E, RtaErrorReason::ArRerunAbortsExisting, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x0F, RtaErrorReason::ArReleaseIndReceived, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x10, RtaErrorReason::ArDeviceDeactivated, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x11, RtaErrorReason::ArRemoved, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x12, RtaErrorReason::ArProtocolViolation, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x13, RtaErrorReason::ArNameResolutionError, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x14, RtaErrorReason::ArRpcBindError, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x15, RtaErrorReason::ArRpcConnectError, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x16, RtaErrorReason::ArRpcReadError, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x17, RtaErrorReason::ArRpcWriteError, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x18, RtaErrorReason::ArRpcControlError, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x19, RtaErrorReason::ArForbiddenPullPlug, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x1A, RtaErrorReason::ArApRemoved, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x1B, RtaErrorReason::ArLinkDown, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x1C, RtaErrorReason::ArMulticastMacRegistrationFailed, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x1D, RtaErrorReason::NotSynchronized, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x1E, RtaErrorReason::WrongTopology, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x1F, RtaErrorReason::DcpStationNameChanged, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x20, RtaErrorReason::DcpResetToFactorySettings, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x21, RtaErrorReason::CompanionAr8ippSubmodule, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x22, RtaErrorReason::NoIrdataRecordYet, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x23, RtaErrorReason::Pdev, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x24, RtaErrorReason::PdevNoRequiredSpeedDuplexity, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x25, RtaErrorReason::IpSuiteChanged, RtaErrorClass::Abort}, RtaErrorReasonTestCase{0x26, RtaErrorReason::IocarSrRdhtExpired, RtaErrorClass::Extended}, RtaErrorReasonTestCase{0x27, RtaErrorReason::IocarSrPdevParameterizationImpossible, RtaErrorClass::Extended}, RtaErrorReasonTestCase{0x28, RtaErrorReason::RemoteApplicationReadyTimeout, RtaErrorClass::Extended}, RtaErrorReasonTestCase{0x29, RtaErrorReason::IocarSrRedundantInterfaceLost, RtaErrorClass::Extended}, RtaErrorReasonTestCase{0x2A, RtaErrorReason::IocarSrMtotExpired, RtaErrorClass::Extended}, RtaErrorReasonTestCase{0x2B, RtaErrorReason::IocarSrArProtocolViolation, RtaErrorClass::Extended}, RtaErrorReasonTestCase{0x2C, RtaErrorReason::PdevPlugPortWithoutCombinedObjectContainer, RtaErrorClass::Extended}, RtaErrorReasonTestCase{0x2D, RtaErrorReason::ObsoletedNmeNoConfiguration, RtaErrorClass::Obsoleted}, RtaErrorReasonTestCase{0xFF, RtaErrorReason::UserAbort, RtaErrorClass::Abort}), [](const ::testing::TestParamInfo< RtaErrorReasonTestCase > &info) { return std::format("{:#04x}", info.param.code);}) | |
| TEST (RtaErrorsTests, UndefinedReasonIsUnknown) | |
| TEST_F (AlarmListenerUdpTest, ReceivesAlarmAndSendsAckToSource) | |
| TEST_F (AlarmListenerUdpTest, IgnoresTooShortUdpPayload) | |
| TEST_F (AlarmListenerUdpTest, StartWhileRunningDoesNothing) | |
| TEST_F (AlarmListenerUdpTest, StopBeforeStartIsSafe) | |
| TEST_F (AlarmNotificationTest, ItemLessAlarmIsAccepted) | |
| TEST_F (AlarmNotificationTest, ChannelDiagnosisItemIsDecoded) | |
| TEST_F (AlarmNotificationTest, EthernetPaddingIsNotParsedAsItems) | |
| TEST_F (AlarmNotificationTest, ArDiagnosisIsBit14) | |
| TEST_F (AlarmNotificationTest, ReservedBit15IsNotArDiagnosis) | |
| TEST (ExceptionHierarchyTests, DcpErrorInheritsProfinetError) | |
| TEST (ExceptionHierarchyTests, DcpTimeoutInheritsDcpError) | |
| TEST (ExceptionHierarchyTests, DcpDeviceNotFoundInheritsDcpError) | |
| TEST (ExceptionHierarchyTests, RpcErrorInheritsProfinetError) | |
| TEST (ExceptionHierarchyTests, RpcTimeoutInheritsRpcError) | |
| TEST (ExceptionHierarchyTests, RpcFaultInheritsRpcError) | |
| TEST (ExceptionHierarchyTests, RpcConnectionInheritsRpcError) | |
| TEST (ExceptionHierarchyTests, ValidationErrorInheritsProfinetError) | |
| TEST (ExceptionHierarchyTests, InvalidMacInheritsValidationError) | |
| TEST (ExceptionHierarchyTests, InvalidIpInheritsValidationError) | |
| TEST (ExceptionHierarchyTests, SocketErrorInheritsProfinetError) | |
| TEST (ExceptionHierarchyTests, PermissionDeniedInheritsSocketError) | |
| TEST (RPCFaultErrorTests, FaultCodeDefault) | |
| TEST (RPCFaultErrorTests, FaultCodeCustom) | |
| TEST (RPCFaultErrorTests, Message) | |
| TEST (ExceptionCatchingTests, CatchAllProfinetErrors) | |
| TEST (ExceptionCatchingTests, CatchDcpVariants) | |
| TEST (ExceptionCatchingTests, CatchRpcVariants) | |
| TEST (PNIOErrorTests, PnioErrorInheritsRpcError) | |
| TEST (PNIOErrorTests, DefaultValues) | |
| TEST (PNIOErrorTests, CustomValues) | |
| TEST (PNIOErrorTests, FromArgsStatusInvalidSlot) | |
| TEST (PNIOErrorTests, FromArgsStatusInvalidSubslot) | |
| TEST (PNIOErrorTests, FromArgsStatusInvalidIndex) | |
| TEST (PNIOErrorTests, FromArgsStatusInvalidApi) | |
| TEST (PNIOErrorTests, FromArgsStatusRmpmError) | |
| TEST (PNIOErrorTests, FromArgsStatusUnknownError) | |
| TEST (PNIOErrorTests, StrFormat) | |
| TEST (PNIOErrorTests, ErrorConstants) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioCmAr) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioCmArResponse) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioCmIocr) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioCmIocrResponse) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioCmAlarmCr) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioCmAlarmCrResponse) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioCmExpectedSubmodule) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioCmDevice) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioCmFaultyBlock) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioCmUnknownErrorCode1) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioRmpm) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioPrmServer) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioUnknownErrorCode1) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioRwInvalidIndex) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioRwWriteLength) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioRwResource) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioRwAccess) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioRwApplication) | |
| TEST (PNIOErrorTests, CreateFromCodesPnioRwUnknownErrorCode1) | |
| TEST (PNIOErrorTests, CreateFromCodesUnknownErrorDecode) | |
| TEST (PNIOErrorTests, FromBytesPreservesAllRawErrorBytes) | |
| TEST (PNIOErrorTests, FromBytesUsesExpectedByteOrder) | |
| TEST (PNIOErrorTests, FromArgsStatusReversesByteOrder) | |
| TEST (PNIOErrorTests, FromArgsStatusDecodesPnioCmError) | |
| TEST (PNIOErrorTests, IsCmErrorReturnsTrueForPnioCm) | |
| TEST (PNIOErrorTests, IsCmErrorReturnsFalseForPnioRw) | |
| TEST (PNIOErrorTests, IsCmErrorReturnsFalseForPnio) | |
| TEST (PNIOErrorTests, IsCmErrorReturnsFalseForUnknownDecode) | |
| TEST (PNIOErrorTests, BlockNameReturnsArBlock) | |
| TEST (PNIOErrorTests, BlockNameReturnsIocrBlock) | |
| TEST (PNIOErrorTests, BlockNameReturnsArResponseBlock) | |
| TEST (PNIOErrorTests, BlockNameReturnsUnknownForUnknownCmErrorCode1) | |
| TEST (PNIOErrorTests, BlockNameReturnsEmptyForPnioRwError) | |
| TEST (PNIOErrorTests, BlockNameReturnsEmptyForPnioError) | |
| TEST (PNIOErrorTests, BlockNameReturnsEmptyForUnknownDecode) | |
| TEST (PNIOErrorTests, DirectConstructionPreservesMessageAndCodes) | |
| TEST (PNIOErrorTests, DirectConstructionIsCmError) | |
| TEST (PNIOErrorTests, DirectConstructionIsNotCmError) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmAr) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmArResponse) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmIocr) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmIocrResponse) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmAlarmCr) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmAlarmCrResponse) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmExpectedSubmodule) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmDevice) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmFaultyBlock) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmUnknownErrorCode1) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioRmpm) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioPrmServer) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioUnknownErrorCode1) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioRwInvalidIndex) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioRwWriteLength) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioRwResource) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioRwAccess) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioRwApplication) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioRwUnknownErrorCode1) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioCmPreservesRawCodes) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioRwPreservesRawCodes) | |
| TEST_F (PNIOErrorDirectTests, DirectCreateFromCodesPnioPreservesRawCodes) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorAr) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorArResponse) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorArActive) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorArActiveResponse) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmArErrorNoArResources) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmArErrorNoProviderResources) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmArErrorNoConsumerResources) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmArErrorNoAlarmResources) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmArErrorNoMemory) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmArErrorInvalidSessionKey) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmArErrorArUuidConflict) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmArErrorUnknownCode2) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorIocr) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorIocrResponse) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorAlarmCr) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorAlarmCrResponse) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorExpectedSubmodule) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorDevice) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorFaultyBlock) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioCmErrorUnknownCode1) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioErrorRmpm) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioErrorPrmServer) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioErrorUnknownCode1) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioRwErrorInvalidIndex) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioRwErrorWriteLength) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioRwErrorResource) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioRwErrorAccess) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioRwErrorApplication) | |
| TEST_F (PNIOErrorDirectTests, DecodePnioRwErrorUnknownCode1) | |
| TEST_F (IndicesTest, GetBlockTypeNameResolvesEveryKnownBlockType) | |
| TEST_F (IndicesTest, GetBlockTypeNameFallsBackForUnknownTypes) | |
| TEST_F (IndicesTest, GetAlarmTypeNameResolvesEveryKnownAlarmType) | |
| TEST_F (IndicesTest, GetAlarmTypeNameFallsBackForUnknownType) | |
| TEST_F (IndicesTest, GetIocrTypeNameResolvesEveryKnownType) | |
| TEST_F (IndicesTest, GetIocrTypeNameFallsBackForUnknownType) | |
| TEST_F (IndicesTest, GetIocrRtClassNameResolvesUdp) | |
| TEST_F (IndicesTest, GetIocrRtClassNameFallsBackForUnknownType) | |
| TEST_F (IndicesTest, GetUsiNameResolvesEveryKnownUsi) | |
| TEST_F (IndicesTest, GetUsiNameClassifiesManufacturerSpecificValues) | |
| TEST_F (IndicesTest, GetUsiNameClassifiesProfileSpecificValues) | |
| TEST_F (IndicesTest, GetUsiNameClassifiesReservedValues) | |
| TEST_F (IndicesTest, GetModuleStateNameResolvesEveryKnownState) | |
| TEST_F (IndicesTest, GetModuleStateNameFallsBackForUnknownState) | |
| TEST_F (IndicesTest, GetSubmoduleStateNameResolvesEveryKnownState) | |
| TEST_F (IndicesTest, GetSubmoduleStateNameFallsBackForUnknownState) | |
| TEST_F (IndicesTest, GetPeModeNameResolvesFixedModes) | |
| TEST_F (IndicesTest, GetPeModeNameResolvesEnergySavingRange) | |
| TEST_F (IndicesTest, GetPeModeNameReturnsReservedForValueBetweenEnergySavingAndOperate) | |
| TEST_F (IndicesTest, GetPeModeNameReturnsReservedForValueBetweenOperateAndSleepMode) | |
| TEST_F (IndicesTest, GetPeModeNameReturnsReservedForValueBetweenSleepModeAndReadyToOperate) | |
| TEST_F (IndicesTest, DiagnosisIndicesReturnsSubslotTable) | |
| TEST_F (IndicesTest, DiagnosisIndicesReturnsSlotTable) | |
| TEST_F (IndicesTest, DiagnosisIndicesReturnsArTable) | |
| TEST_F (IndicesTest, DiagnosisIndicesReturnsApiTable) | |
| TEST_F (IndicesTest, DiagnosisIndicesReturnsDeviceTable) | |
| TEST_F (IndicesTest, DiagnosisIndicesReturnsEmptyTableForUnknownScopes) | |
| TEST_F (IndicesTest, CriticalIndicesReturnsExpectedEntries) | |
| TEST_F (IndicesTest, ImIndicesReturnsAllImEntries) | |
| TEST_F (IndicesTest, PortIndicesReturnsExpectedEntries) | |
| TEST_F (IndicesTest, InterfaceIndicesReturnsExpectedEntries) | |
| TEST_F (IndicesTest, DeviceIndicesReturnsExpectedEntries) | |
| TEST_F (IndicesTest, AllStandardIndicesContainsAllStandardCategories) | |
| TEST_F (IndicesTest, GetIndexNameResolvesAllStandardCategories) | |
| TEST_F (IndicesTest, GetIndexNameClassifiesUserSpecificIndices) | |
| TEST_F (IndicesTest, GetIndexNameClassifiesUnregisteredImIndices) | |
| TEST_F (IndicesTest, GetIndexNameClassifiesUnregisteredSubslotIndices) | |
| TEST_F (IndicesTest, GetIndexNameClassifiesUnregisteredSlotIndices) | |
| TEST_F (IndicesTest, GetIndexNameClassifiesUnregisteredArIndices) | |
| TEST_F (IndicesTest, GetIndexNameClassifiesUnregisteredApiIndices) | |
| TEST_F (IndicesTest, GetIndexNameClassifiesUnregisteredDeviceIndices) | |
| TEST_F (IndicesTest, GetIndexNameReturnsUnknownForUnclassifiedIndices) | |
| TEST_F (IndicesTest, GetScopeClassifiesAllSupportedScopes) | |
| TEST_F (IndicesTest, GetScopeReturnsUnknownForUnclassifiedRanges) | |
| TEST (IoControllerAumaGsdml, AumaProfileMatchesCaptureDevice) | |
| TEST (IoControllerAumaGsdml, PhoenixProfileMatchesCaptureController) | |
| TEST (IoControllerAumaConnection, ConnectUsesCapturedNegotiatedFrameIdsAndTiming) | |
| TEST (IoControllerAumaCyclicIo, OutputOpenAndStopUseCapturedByte25) | |
| TEST (IoControllerAumaCyclicIo, InputPositionSamplesRemainBigEndianAtCapturedBytes20And21) | |
| TEST (IoControllerAumaCyclicIo, Layer2FramesMatchCaptureLengthsAndDirections) | |
| TEST (IoControllerAumaCyclicIo, CapturedOneSecondOpenSequenceUsesEightMillisecondCycle) | |
| TEST_F (SkipVlanTagsTest, UntaggedFrameReturnsOffset12) | |
| TEST_F (SkipVlanTagsTest, Single8021QTagReturnsOffset16) | |
| TEST_F (SkipVlanTagsTest, DoubleTaggedQinQFrameReturnsOffset20) | |
| TEST_F (SkipVlanTagsTest, ShortFrameReturnsEthernetHeaderLength) | |
| TEST (UdpSocketTests, RecvFromReturnsPayloadAndSourceEndpoint) | |
| TEST (UdpSocketTests, SendToSendsToSuppliedEndpoint) | |
| TEST (UdpSocketTests, RecvFromReturnsEmptyDatagramOnTimeout) | |
| TEST (UdpSocketTests, MoveConstructionTransfersSocketOwnership) | |
| TEST (UdpSocketTests, MoveAssignmentTransfersSocketOwnership) | |
| TEST (UtilTest, Mac2SS2MacRoundtrip) | |
| TEST (UtilTest, S2MacRejectsMalformedInput) | |
| TEST (UtilTest, Ip2SS2IpRoundtrip) | |
| TEST (UtilTest, Ip2SRejectsMalformedInput) | |
| TEST (UtilTest, ToHexEncodesBytes) | |
| TEST (UtilTest, DecodeBytesStripsTrailingNuls) | |
| TEST (UtilTest, MaxTimeoutReportsElapsed) | |
| TEST (UtilTest, ByteSwapU16) | |
| TEST (UtilTest, ByteSwapU32) | |
| TEST (UtilTest, ByteSwapU64) | |
| TEST (UtilTest, ByteSwapU8) | |
| TEST (UtilTest, ByteAtU8) | |
| TEST (UtilTest, ByteAtU16) | |
| TEST (UtilTest, ByteAtU32) | |
| TEST (UtilTest, ByteAtU64) | |
Variables | |
| constexpr std::uint16_t | FRAME_ID_ALARM_HIGH = 0xFC01 |
| Frame ID used for high-priority alarms. | |
| constexpr std::uint16_t | FRAME_ID_ALARM_LOW = 0xFE01 |
| Frame ID used for low-priority alarms. | |
| constexpr std::uint16_t | ETHERTYPE_PROFINET = 0x8892 |
| EtherType used by PROFINET RTA frames (0x8892). | |
| constexpr std::uint16_t | ALARM_UDP_PORT = 34964 |
| UDP port used for alarm transport when Transport == 1. | |
| constexpr std::uint8_t | ALARM_TRANSPORT_RTA_CLASS_UDP = 0x01 |
| ALARM Cr Type ALARM. | |
| constexpr std::uint16_t | AR_TYPE_IOCAR_SINGLE = 0x0001 |
| AR Type Iocar Single. | |
| constexpr std::uint16_t | AR_TYPE_IOSAR = 0x0006 |
| AR Type Iosar. | |
| constexpr std::uint16_t | AR_TYPE_IOCARSR = 0x0020 |
| AR Type Iocarsr. | |
| constexpr std::uint16_t | MODULE_STATE_NO_MODULE = 0x0000 |
| Module State No Module. | |
| constexpr std::uint16_t | MODULE_STATE_WRONG_MODULE = 0x0001 |
| Module State Wrong Module. | |
| constexpr std::uint16_t | MODULE_STATE_PROPER_MODULE = 0x0002 |
| Module State Proper Module. | |
| constexpr std::uint16_t | MODULE_STATE_SUBSTITUTE_MODULE = 0x0003 |
| Module State Substitute Module. | |
| constexpr std::uint16_t | SUBMODULE_STATE_NO_SUBMODULE = 0x0000 |
| Submodule State No Submodule. | |
| constexpr std::uint16_t | SUBMODULE_STATE_WRONG_SUBMODULE = 0x0001 |
| Submodule State Wrong Submodule. | |
| constexpr std::uint16_t | SUBMODULE_STATE_LOCKED_BY_SUPERVISOR = 0x0002 |
| Submodule State Locked By Supervisor. | |
| constexpr std::uint16_t | SUBMODULE_STATE_APPLICATION_READY_PENDING = 0x0004 |
| Submodule State Application Ready Pending. | |
| constexpr std::uint16_t | SUBMODULE_STATE_OK = 0x0007 |
| Submodule State Ok. | |
| constexpr std::uint8_t | PE_MODE_POWER_OFF = 0x00 |
| PE Mode Power Off. | |
| constexpr std::uint8_t | PE_MODE_ENERGY_SAVING_MIN = 0x01 |
| PE Mode Energy Saving Min. | |
| constexpr std::uint8_t | PE_MODE_ENERGY_SAVING_MAX = 0x1F |
| PE Mode Energy Saving Max. | |
| constexpr std::uint8_t | PE_MODE_OPERATE = 0xF0 |
| PE Mode Operate. | |
| constexpr std::uint8_t | PE_MODE_SLEEP_MODE_WOL = 0xFE |
| PE Mode Sleep Mode WOL. | |
| constexpr std::uint8_t | PE_MODE_READY_TO_OPERATE = 0xFF |
| PE Mode Ready To Operate. | |
| constexpr std::uint16_t | IM0 = 0xAFF0 |
| I&M0. | |
| constexpr std::uint16_t | IM1 = 0xAFF1 |
| I&M1. | |
| constexpr std::uint16_t | IM2 = 0xAFF2 |
| I&M2. | |
| constexpr std::uint16_t | IM3 = 0xAFF3 |
| I&M3. | |
| constexpr std::uint16_t | IM4 = 0xAFF4 |
| I&M4. | |
| constexpr std::uint16_t | IM5 = 0xAFF5 |
| I&M5. | |
| constexpr std::uint16_t | IM6 = 0xAFF6 |
| I&M6. | |
| constexpr std::uint16_t | IM7 = 0xAFF7 |
| I&M7. | |
| constexpr std::uint16_t | IM8 = 0xAFF8 |
| I&M8. | |
| constexpr std::uint16_t | IM9 = 0xAFF9 |
| I&M9. | |
| constexpr std::uint16_t | IM10 = 0xAFFA |
| I&M10. | |
| constexpr std::uint16_t | IM11 = 0xAFFB |
| I&M11. | |
| constexpr std::uint16_t | IM12 = 0xAFFC |
| I&M12. | |
| constexpr std::uint16_t | IM13 = 0xAFFD |
| I&M13. | |
| constexpr std::uint16_t | IM14 = 0xAFFE |
| I&M14. | |
| constexpr std::uint16_t | IM15 = 0xAFFF |
| I&M15. | |
| constexpr std::uint16_t | IM0_FILTER_DATA = 0xF840 |
| I&M0 Filter Data. | |
| constexpr std::uint16_t | DIAG_CHANNEL_SUBSLOT = 0x800A |
| DIAG Channel Subslot. | |
| constexpr std::uint16_t | DIAG_ALL_SUBSLOT = 0x800B |
| DIAG All Subslot. | |
| constexpr std::uint16_t | DIAG_MAINTENANCE_SUBSLOT = 0x800C |
| DIAG Maintenance Subslot. | |
| constexpr std::uint16_t | DIAG_CHANNEL_SLOT = 0xC00A |
| DIAG Channel Slot. | |
| constexpr std::uint16_t | DIAG_ALL_SLOT = 0xC00B |
| DIAG All Slot. | |
| constexpr std::uint16_t | DIAG_MAINTENANCE_SLOT = 0xC00C |
| DIAG Maintenance Slot. | |
| constexpr std::uint16_t | DIAG_CHANNEL_AR = 0xE00A |
| DIAG Channel AR. | |
| constexpr std::uint16_t | DIAG_ALL_AR = 0xE00B |
| DIAG All AR. | |
| constexpr std::uint16_t | DIAG_MAINTENANCE_AR = 0xE00C |
| DIAG Maintenance AR. | |
| constexpr std::uint16_t | DIAG_CHANNEL_API = 0xF00A |
| DIAG Channel API. | |
| constexpr std::uint16_t | DIAG_ALL_API = 0xF00B |
| DIAG All API. | |
| constexpr std::uint16_t | DIAG_MAINTENANCE_API = 0xF00C |
| DIAG Maintenance API. | |
| constexpr std::uint16_t | DIAG_DEVICE = 0xF80C |
| DIAG Device. | |
| constexpr std::uint16_t | MAINT_REQUIRED_CHANNEL_SUBSLOT = 0x8010 |
| MAINT Required Channel Subslot. | |
| constexpr std::uint16_t | MAINT_DEMANDED_CHANNEL_SUBSLOT = 0x8011 |
| MAINT Demanded Channel Subslot. | |
| constexpr std::uint16_t | MAINT_REQUIRED_ALL_SUBSLOT = 0x8012 |
| MAINT Required All Subslot. | |
| constexpr std::uint16_t | MAINT_DEMANDED_ALL_SUBSLOT = 0x8013 |
| MAINT Demanded All Subslot. | |
| constexpr std::uint16_t | EXPECTED_ID_SUBSLOT = 0x8000 |
| Expected ID Subslot. | |
| constexpr std::uint16_t | REAL_ID_SUBSLOT = 0x8001 |
| Real ID Subslot. | |
| constexpr std::uint16_t | EXPECTED_ID_AR = 0xE000 |
| Expected ID AR. | |
| constexpr std::uint16_t | REAL_ID_AR = 0xE001 |
| Real ID AR. | |
| constexpr std::uint16_t | MODULE_DIFF_BLOCK = 0xE002 |
| Module Diff Block. | |
| constexpr std::uint16_t | REAL_ID_API = 0xF000 |
| Real ID API. | |
| constexpr std::uint16_t | AR_DATA = 0xF820 |
| AR Data. | |
| constexpr std::uint16_t | API_DATA = 0xF821 |
| API Data. | |
| constexpr std::uint16_t | PDEV_DATA = 0xF831 |
| Pdev Data. | |
| constexpr std::uint16_t | PD_REAL_DATA = 0xF841 |
| PD Real Data. | |
| constexpr std::uint16_t | PD_EXPECTED_DATA = 0xF842 |
| PD Expected Data. | |
| constexpr std::uint16_t | AUTO_CONFIG = 0xF850 |
| Auto Config. | |
| constexpr std::uint16_t | LOG_DATA = 0xF830 |
| Log Data. | |
| constexpr std::uint16_t | PD_PORT_DATA_REAL = 0x802A |
| PD Port Data Real. | |
| constexpr std::uint16_t | PD_PORT_DATA_CHECK = 0x802B |
| PD Port Data Check. | |
| constexpr std::uint16_t | PD_IR_DATA = 0x802C |
| PD IR Data. | |
| constexpr std::uint16_t | PD_SYNC_DATA = 0x802D |
| PD Sync Data. | |
| constexpr std::uint16_t | PD_PORT_DATA_ADJUST = 0x802F |
| PD Port Data Adjust. | |
| constexpr std::uint16_t | PD_PORT_STATISTIC = 0x8072 |
| PD Port Statistic. | |
| constexpr std::uint16_t | PD_NC_DATA_CHECK = 0x8070 |
| PD NC Data Check. | |
| constexpr std::uint16_t | PD_INTERFACE_ADJUST = 0x8071 |
| PD Interface Adjust. | |
| constexpr std::uint16_t | PD_INTERFACE_DATA_REAL = 0x8080 |
| PD Interface Data Real. | |
| constexpr std::uint16_t | PD_INTERFACE_FSU_ADJUST = 0x8090 |
| PD Interface FSU Adjust. | |
| constexpr std::uint16_t | PD_PORT_FO_DATA_REAL = 0x8060 |
| PD Port FO Data Real. | |
| constexpr std::uint16_t | PD_PORT_FO_DATA_CHECK = 0x8061 |
| PD Port FO Data Check. | |
| constexpr std::uint16_t | PD_PORT_FO_DATA_ADJUST = 0x8062 |
| PD Port FO Data Adjust. | |
| constexpr std::uint16_t | PD_PORT_SFP_DATA_CHECK = 0x8063 |
| PD Port SFP Data Check. | |
| constexpr std::uint16_t | PD_INTERFACE_MRP_DATA_REAL = 0x8050 |
| PD Interface MRP Data Real. | |
| constexpr std::uint16_t | PD_INTERFACE_MRP_DATA_CHECK = 0x8051 |
| PD Interface MRP Data Check. | |
| constexpr std::uint16_t | PD_INTERFACE_MRP_DATA_ADJUST = 0x8052 |
| PD Interface MRP Data Adjust. | |
| constexpr std::uint16_t | PD_PORT_MRP_DATA_ADJUST = 0x8053 |
| PD Port MRP Data Adjust. | |
| constexpr std::uint16_t | PD_PORT_MRP_DATA_REAL = 0x8054 |
| PD Port MRP Data Real. | |
| constexpr std::uint16_t | PD_PORT_MRP_IC_DATA_ADJUST = 0x8055 |
| PD Port MRP IC Data Adjust. | |
| constexpr std::uint16_t | PD_PORT_MRP_IC_DATA_CHECK = 0x8056 |
| PD Port MRP IC Data Check. | |
| constexpr std::uint16_t | PD_PORT_MRP_IC_DATA_REAL = 0x8057 |
| PD Port MRP IC Data Real. | |
| constexpr std::uint16_t | PD_IR_SUBFRAME_DATA = 0x8020 |
| PD IR Subframe Data. | |
| constexpr std::uint16_t | ISOCHRONOUS_MODE_DATA = 0x8030 |
| Isochronous Mode Data. | |
| constexpr std::uint16_t | PD_TIME_DATA = 0x8031 |
| PD Time Data. | |
| constexpr std::uint16_t | SUBSTITUTE_VALUES = 0x801E |
| Substitute Values. | |
| constexpr std::uint16_t | RECORD_INPUT_DATA = 0x8028 |
| Record Input Data. | |
| constexpr std::uint16_t | RECORD_OUTPUT_DATA = 0x8029 |
| Record Output Data. | |
| constexpr std::uint16_t | AM_DEVICE_ID = 0xF8E0 |
| AM Device ID. | |
| constexpr std::uint16_t | AM_FULL_INFO = 0xF8E1 |
| AM Full Info. | |
| constexpr std::uint16_t | AM_HW_ONLY = 0xF8E2 |
| AM HW Only. | |
| constexpr std::uint16_t | AM_FW_ONLY = 0xF8E3 |
| AM FW Only. | |
| constexpr std::uint16_t | AM_LOCATION_SLOT = 0xFBE0 |
| AM Location Slot. | |
| constexpr std::uint16_t | AM_LOCATION_TREE = 0xFBE1 |
| AM Location Tree. | |
| constexpr std::uint16_t | AM_DATA = 0xFBF0 |
| AM Data. | |
| constexpr std::uint16_t | F_PARAMETER_BLOCK = 0x0100 |
| F Parameter Block. | |
| constexpr std::uint16_t | F_PRM_FLAG1 = 0x0101 |
| F Prm Flag1. | |
| constexpr std::uint16_t | F_PRM_FLAG2 = 0x0102 |
| F Prm Flag2. | |
| constexpr std::uint16_t | F_PARAMETER_WRITE = 0xE000 |
| F Parameter Write. | |
| constexpr std::uint16_t | F_PARAMETER_READ = 0xE001 |
| F Parameter Read. | |
| constexpr std::uint16_t | PROFIENERGY = 0x80A0 |
| Profienergy. | |
| constexpr std::uint16_t | WRITE_MULTIPLE = 0xE040 |
| Write Multiple. | |
| constexpr std::uint16_t | AR_FSU_DATA_ADJUST = 0xE050 |
| AR FSU Data Adjust. | |
| constexpr std::uint16_t | SUBSLOT_DAP = 0x0001 |
| Subslot DAP. | |
| constexpr std::uint16_t | SUBSLOT_INTERFACE = 0x8000 |
| Subslot Interface. | |
| constexpr std::uint16_t | SUBSLOT_PORT1 = 0x8001 |
| Subslot Port1. | |
| constexpr std::uint16_t | SUBSLOT_PORT2 = 0x8002 |
| Subslot Port2. | |
| constexpr int | blockHeaderLength = 6 |
| Constant lenght of a blockHeader. | |
| constexpr std::array< std::uint8_t, 12 > | kPnUuidSuffix |
| PROFINET UUID suffix, shared by all interface/object UUIDs. | |
| constexpr std::size_t | MAX_ETHERNET_FRAME = 1522 |
| Maximum PROFINET Ethernet frame size in bytes (including VLAN tag headroom). | |
| constexpr std::uint16_t | PROFINET_ETHERTYPE = 0x8892 |
| EtherType value identifying PROFINET frames (0x8892). | |
| constexpr std::uint16_t | IP_ETHERTYPE = 0x8000 |
| EtherType value identifying IP frames (0x8000). | |
| constexpr std::uint16_t | VLAN_ETHERTYPE = 0x8100 |
| EtherType value identifying an 802.1Q VLAN tag (0x8100). | |
| constexpr int | macAddressLength = 6 |
| Constant lenght of a mac address. | |
| constexpr int | uuidLenght = 16 |
| Constant lenght of a UUID. | |
| constexpr std::size_t | RECEIVE_BUFFER_LENGTH = 4096 |
| Receive buffer length. | |
| constexpr std::uint16_t | kInputFrameId = 0x9000 |
| constexpr std::uint16_t | kOutputFrameId = 0x8001 |
Defines the structures and parsing functions used to decode AlarmNotification payloads according to their User Structure Identifier (USI). Provides alarm item types and parsing functions for AlarmNotification PDUs (USI-dispatched: Diagnosis, Maintenance, Upload/Retrieval, PE, RS, PRAL). Per IEC 61158-6-10.
Defines protocol, transport, timeout, and PNIO error representations used to report failures across DCP, RPC, cyclic IO, and related services.
| using profinet::AlarmItemVariant = typedef std::variant<AlarmItem, DiagnosisItem, MaintenanceItem, UploadRetrievalItem, PEAlarmItem, RSAlarmItem, PRALAlarmItem> |
| using profinet::Bytes = typedef std::vector<std::uint8_t> |
Generic byte buffer alias used throughout the library for raw wire data.
Definition at line 55 of file protocol.h.
| using profinet::IndexNamePairs = typedef std::vector<std::pair<std::uint16_t, std::string> > |
| using profinet::MacAddress = typedef std::array<std::uint8_t, macAddressLength> |
A 6-byte Ethernet MAC address.
| using profinet::PNInM10 = typedef PNInMReserved<0xAFFA> |
I&M10 record type (reserved).
Definition at line 1878 of file protocol.h.
| using profinet::PNInM11 = typedef PNInMReserved<0xAFFB> |
I&M11 record type (reserved).
Definition at line 1880 of file protocol.h.
| using profinet::PNInM12 = typedef PNInMReserved<0xAFFC> |
I&M12 record type (reserved).
Definition at line 1882 of file protocol.h.
| using profinet::PNInM13 = typedef PNInMReserved<0xAFFD> |
I&M13 record type (reserved).
Definition at line 1884 of file protocol.h.
| using profinet::PNInM14 = typedef PNInMReserved<0xAFFE> |
I&M14 record type (reserved).
Definition at line 1886 of file protocol.h.
| using profinet::PNInM15 = typedef PNInMReserved<0xAFFF> |
I&M15 record type (reserved).
Definition at line 1888 of file protocol.h.
| using profinet::PNInM6 = typedef PNInMReserved<0xAFF6> |
I&M6 record type (reserved).
Definition at line 1870 of file protocol.h.
| using profinet::PNInM7 = typedef PNInMReserved<0xAFF7> |
I&M7 record type (reserved).
Definition at line 1872 of file protocol.h.
| using profinet::PNInM8 = typedef PNInMReserved<0xAFF8> |
I&M8 record type (reserved).
Definition at line 1874 of file protocol.h.
| using profinet::PNInM9 = typedef PNInMReserved<0xAFF9> |
I&M9 record type (reserved).
Definition at line 1876 of file protocol.h.
|
strong |
Represents bitwise flags and bitmasks for alarm notification headers.
Provides named constants for single-bit diagnostic flags (bits 12–15) as well as multi-bit extraction masks (bits 0–10).
|
strong |
PROFINET Alarm Types used in AlarmNotification blocks.
The underlying values correspond to the Alarm Type field defined by PROFINET IO.
|
strong |
PROFINET block types.
The underlying values correspond to the BlockType field defined by PROFINET IO.
|
strong |
PROFINET IOD control command values.
These values are bit fields as defined by IEC 61158-6-10.
|
strong |
DCP block-level SET response errors.
Definition at line 330 of file protocol.h.
|
strong |
DCP block qualifier values.
| Enumerator | |
|---|---|
| Temporary | Change applies until the next power cycle only. |
| Permanent | Change is persisted permanently. |
Definition at line 429 of file protocol.h.
|
strong |
DCP Control suboptions.
| Enumerator | |
|---|---|
| Unknown | Not set / initialize value. |
| Start | Start. |
| Stop | Stop. |
| Signal | Signal / flash LEDs. |
| Response | Control response. |
| FactoryReset | Factory reset. |
| ResetToFactory | Reset to factory. |
Definition at line 196 of file protocol.h.
|
strong |
DCP device-initiative values.
| Enumerator | |
|---|---|
| NoHello | Device does not issue DCP-Hello after power-on. |
| IssueHello | Device issues DCP-Hello after power-on. |
Definition at line 320 of file protocol.h.
|
strong |
DCP DeviceInitiative suboptions.
| Enumerator | |
|---|---|
| Initiative | Device-initiative setting. |
Definition at line 255 of file protocol.h.
|
strong |
Device role bitmask.
| Enumerator | |
|---|---|
| IoDevice | IO-Device. |
| IoController | IO-Controller. |
| IoMultidevice | IO-Multidevice. |
| PnSupervisor | PN-Supervisor. |
Definition at line 262 of file protocol.h.
|
strong |
DCP Device suboptions.
Definition at line 162 of file protocol.h.
|
strong |
DCP DHCP suboptions.
Definition at line 221 of file protocol.h.
|
strong |
PROFINET DCP frame identifiers.
| Enumerator | |
|---|---|
| Unknown | Not set / initialize value. |
| IdentifyRequest | DCP Identify request. |
| IdentifyResponse | DCP Identify response. |
| GetSet | DCP GET/SET request or response. |
| Hello | DCP Hello announcement. |
Definition at line 64 of file protocol.h.
|
strong |
PROFINET DCP IP block status values. IP block status flags (IEC 61158-6-10 IPBlockInfo).
Definition at line 439 of file protocol.h.
|
strong |
DCP IP suboptions.
| Enumerator | |
|---|---|
| Unknown | Not set / initialize value. |
| Mac | MAC address. |
| IpParameter | IP address, subnet mask and gateway. |
| FullIpSuite | Full IP suite. |
Definition at line 146 of file protocol.h.
|
strong |
DCP options.
Definition at line 115 of file protocol.h.
|
strong |
Reset mode bitmask.
Definition at line 288 of file protocol.h.
|
strong |
Reset qualifier values for ResetToFactory().
Definition at line 380 of file protocol.h.
|
strong |
DCP GET/SET response codes.
Definition at line 355 of file protocol.h.
|
strong |
DCP service identifiers.
| Enumerator | |
|---|---|
| Unknown | Not set / initialize value. |
| Get | GET service. |
| Set | SET service. |
| Identify | IDENTIFY service. |
| Hello | HELLO service. |
Definition at line 83 of file protocol.h.
|
strong |
DCP service types.
| Enumerator | |
|---|---|
| Request | Request. |
| ResponseSuccess | Successful response. |
| ResponseUnsupported | Service unsupported response. |
Definition at line 102 of file protocol.h.
|
strong |
PROFINET error decode values.
The ErrorDecode field identifies the error family and determines how ErrorCode1 and subsequent error information are interpreted.
| Enumerator | |
|---|---|
| PnioCm | PNIO connection management error. |
| PnioRw | PNIO read/write error. |
| Pnio | General PNIO error. |
Definition at line 21 of file exceptions.h.
|
strong |
|
strong |
|
strong |
PNIO-CM Alarm CR ErrorCode2 values.
| Enumerator | |
|---|---|
| InvalidAlarmCrType | Invalid Alarm CR type. |
| NoAlarmCrResources | No Alarm CR resources are available. |
Definition at line 352 of file exceptions.h.
|
strong |
PNIO-CM AR ErrorCode2 values.
Definition at line 280 of file exceptions.h.
|
strong |
PNIO-CM Device ErrorCode2 values.
ErrorCode2 values for errors reported by the connection management device (CMDEV).
Definition at line 403 of file exceptions.h.
|
strong |
PNIO-CM ErrorCode1 values.
These values are interpreted when ErrorDecode is ErrorDecode::PnioCm.
Definition at line 75 of file exceptions.h.
|
strong |
PNIO-CM Expected Submodule ErrorCode2 values.
ErrorCode2 values for errors associated with the ExpectedSubmoduleBlockReq.
Definition at line 373 of file exceptions.h.
|
strong |
PNIO-CM Faulty Block ErrorCode2 values.
ErrorCode2 values for errors indicating a faulty PNIO-CM block.
| Enumerator | |
|---|---|
| FaultyBlockStructure | Faulty block structure. |
Definition at line 429 of file exceptions.h.
|
strong |
PNIO-CM IOCR ErrorCode2 values.
Definition at line 319 of file exceptions.h.
|
strong |
PNIO ErrorCode1 values.
ErrorCode1 identifies the specific PNIO error category. The meaning of ErrorCode2 depends on the selected ErrorCode1 value.
| Enumerator | |
|---|---|
| Rmpm | Runtime parameter and module management (RMPM) error. |
| PrmServer | Parameter server error. |
Definition at line 447 of file exceptions.h.
|
strong |
PNIO Parameter Server ErrorCode2 values.
These values are valid when ErrorCode1 is PnioErrorCode1::PrmServer.
| Enumerator | |
|---|---|
| StateConflict | The parameter server is in an invalid state for the requested operation. |
Definition at line 498 of file exceptions.h.
|
strong |
PNIO RMPM ErrorCode2 values.
These values are valid when ErrorCode1 is PnioErrorCode1::Rmpm.
Definition at line 468 of file exceptions.h.
|
strong |
PNIORW Access ErrorCode2 values.
Definition at line 219 of file exceptions.h.
|
strong |
PNIORW Application ErrorCode2 values.
Definition at line 245 of file exceptions.h.
|
strong |
PNIO read/write ErrorCode1 values.
These values are interpreted when ErrorDecode is ErrorDecode::PnioRw.
| Enumerator | |
|---|---|
| InvalidIndex | Invalid or unsupported index. |
| WriteLength | Write length error. |
| Resource | Resource error. |
| Access | Access error. |
| Application | Application error. |
Definition at line 45 of file exceptions.h.
|
strong |
PNIORW InvalidIndex ErrorCode2 values.
| Enumerator | |
|---|---|
| IndexNotSupported | Index is not supported. |
| IndexNotWritten | Index exists but has not been written. |
Definition at line 156 of file exceptions.h.
|
strong |
PNIORW Resource ErrorCode2 values.
| Enumerator | |
|---|---|
| ResourceNotAvailable | Resource is not available. |
| InvalidSlot | Slot number is invalid. |
| InvalidSubslot | Subslot number is invalid. |
| ModuleHasNoData | Module has no data. |
Definition at line 196 of file exceptions.h.
|
strong |
PNIORW WriteLength ErrorCode2 values.
Definition at line 173 of file exceptions.h.
|
strong |
Classification of an RTA protocol error reason.
Definition at line 2484 of file protocol.h.
|
strong |
Exact current PROFINET RTA ErrorCode2 values.
Definition at line 2506 of file protocol.h.
|
strong |
PROFINET User Structure Identifiers (USI).
The underlying values correspond to the User Structure Identifier field used in PROFINET diagnosis and alarm data.
| const IndexNamePairs & profinet::AllStandardIndices | ( | ) |
Union of every standard index category.
Combines ImIndices() + DiagnosisIndices("subslot") + DiagnosisIndices("device") + PortIndices() + InterfaceIndices() + DeviceIndices() + a handful of extras (ExpectedIdentificationData, RealIdentificationData, ModuleDiffBlock, SubstituteValues, RecordInputData, RecordOutputData) ALL_STANDARD_INDICES concatenation order.
Definition at line 618 of file indices.cpp.
References DeviceIndices(), DiagnosisIndices(), EXPECTED_ID_SUBSLOT, ImIndices(), InterfaceIndices(), MODULE_DIFF_BLOCK, PortIndices(), REAL_ID_SUBSLOT, RECORD_INPUT_DATA, RECORD_OUTPUT_DATA, and SUBSTITUTE_VALUES.
Referenced by GetIndexName(), and TEST_F().
Here is the call graph for this function:
Here is the caller graph for this function:
|
constexpr |
Return one byte from an integral value.
| T | Integral value type. |
| value | Value containing the byte. |
| index | Zero-based byte index, starting at the least-significant byte. |
Definition at line 244 of file util.h.
Referenced by profinet::dcp::DCPDeviceDescription::DCPDeviceDescription(), profinet::PNIOError::FromArgsStatus(), profinet::diagnosis::ChannelProperties::FromUint16(), TEST(), TEST(), TEST(), and TEST().
Here is the caller graph for this function:
|
constexpr |
Definition at line 218 of file util.h.
Referenced by profinet::PNIOError::FromArgsStatus().
Here is the caller graph for this function:| RtaErrorClass profinet::ClassifyRtaError | ( | RtaErrorReason | reason | ) |
Definition at line 711 of file alarms.cpp.
References Abort, Extended, Obsoleted, Reserved, SequenceNumber, and UserSpecific.
| const IndexNamePairs & profinet::CriticalIndices | ( | ) |
Critical indices that should always be tested.
Definition at line 495 of file indices.cpp.
References AR_DATA, DIAG_DEVICE, IM0, IM0_FILTER_DATA, LOG_DATA, MODULE_DIFF_BLOCK, and PD_REAL_DATA.
Referenced by TEST_F().
Here is the caller graph for this function:| std::string profinet::DecodeBytes | ( | const std::uint8_t * | data, |
| std::size_t | len | ||
| ) |
Decode bytes to a UTF-8 string, stripping trailing NUL bytes.
| data | Pointer to the first byte to decode. |
| len | Number of bytes to decode. |
Definition at line 246 of file util.cpp.
Referenced by profinet::dcp::DCPDeviceDescription::DCPDeviceDescription(), DecodeBytes(), profinet::PNInM0::Parse(), profinet::PNInM1::Parse(), profinet::PNInM2::Parse(), profinet::PNInM3::Parse(), profinet::PNInM5::Parse(), profinet::dcp::DCPDHCPBlock::Parse(), TEST(), TEST_F(), TEST_F(), and TEST_F().
Here is the caller graph for this function:| std::string profinet::DecodeBytes | ( | const std::vector< std::uint8_t > & | data | ) |
Decode bytes to a UTF-8 string, stripping trailing NUL bytes.
| data | Bytes to decode. |
Definition at line 257 of file util.cpp.
References DecodeBytes().
Here is the call graph for this function:| const IndexNamePairs & profinet::DeviceIndices | ( | ) |
Device-level indices.
Definition at line 604 of file indices.cpp.
References API_DATA, AR_DATA, AUTO_CONFIG, LOG_DATA, PD_EXPECTED_DATA, PD_REAL_DATA, and PDEV_DATA.
Referenced by AllStandardIndices(), profinet::rpc::RPCCon::EnumerateIndices(), and TEST_F().
Here is the caller graph for this function:| const IndexNamePairs & profinet::DiagnosisIndices | ( | const std::string & | scope | ) |
Diagnosis indices for a given addressing scope.
| scope | One of "subslot", "slot", "ar", "api", "device". |
Definition at line 532 of file indices.cpp.
References DIAG_ALL_API, DIAG_ALL_AR, DIAG_ALL_SLOT, DIAG_ALL_SUBSLOT, DIAG_CHANNEL_API, DIAG_CHANNEL_AR, DIAG_CHANNEL_SLOT, DIAG_CHANNEL_SUBSLOT, DIAG_DEVICE, DIAG_MAINTENANCE_API, DIAG_MAINTENANCE_AR, DIAG_MAINTENANCE_SLOT, and DIAG_MAINTENANCE_SUBSLOT.
Referenced by AllStandardIndices(), profinet::rpc::RPCCon::EnumerateIndices(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
Here is the caller graph for this function:| std::string profinet::GetAlarmTypeName | ( | AlarmType | alarmType | ) |
Get the human-readable name for an alarm type.
| alarmType | Alarm type. |
Definition at line 278 of file indices.cpp.
References ControlledBySupervisor, DfpProblem, Diagnosis, DiagnosisDisappears, IsochronousModeProblem, MulticastMismatch, NetworkComponentProblem, Plug, PlugWrongSubmodule, PortDataChange, Process, Pull, PullModule, Redundancy, Released, ReturnOfSubmodule, Status, SyncDataChanged, TimeDataChanged, Update, and UploadRetrieval.
Referenced by profinet::AlarmNotification::AlarmTypeName(), profinet::IndicesTest::ExpectAlarmTypeNames(), and TEST_F().
Here is the caller graph for this function:| std::string profinet::GetBlockTypeName | ( | BlockType | blockType | ) |
Get the human-readable name for a block type.
| blockType | Block type. |
Definition at line 38 of file indices.cpp.
References AlarmAcknowledgementHigh, AlarmAcknowledgementLow, AlarmCrRequest, AlarmCrResponse, AlarmNotificationHigh, AlarmNotificationLow, ApiData, ApplicationRelationData, ApplicationRelationRequest, ApplicationRelationResponse, ApplicationRelationServer, ContainerContent, ControlApplicationReadyRequest, ControlApplicationReadyResponse, ControlPrmEndRequest, ControlPrmEndResponse, ControlRtClass3Request, ControlRtClass3Response, DiagnosisData, ExpectedIdentificationData, ExpectedProcessData, ExpectedSubmoduleRequest, Hex4(), IdentificationMaintenance0, IdentificationMaintenance1, IdentificationMaintenance10, IdentificationMaintenance11, IdentificationMaintenance12, IdentificationMaintenance13, IdentificationMaintenance14, IdentificationMaintenance15, IdentificationMaintenance2, IdentificationMaintenance3, IdentificationMaintenance4, IdentificationMaintenance5, IdentificationMaintenance6, IdentificationMaintenance7, IdentificationMaintenance8, IdentificationMaintenance9, InterfaceMrpDataAdjust, InterfaceMrpDataReal, IoCrRequest, IoCrResponse, IoDataReadRequest, IoDataReadResponse, IoDataWriteRequest, IoDataWriteResponse, LogData, ModuleDifference, MrpRingStateData, MultipleHeader, ParameterizationBeginRequest, ParameterizationBeginResponse, PortDataAdjust, PortDataCheck, PortDataInterfaceDataReal, PortDataReal, PortDataRealExtended, PortFoDataAdjust, PortFoDataCheck, PortFoDataReal, PortMrpDataReal, PortStatistics, RealIdentificationData, RealIdentificationDataApi, RealProcessData, ReleaseRequest, ReleaseResponse, SrlData, and SubmoduleList.
Referenced by profinet::IndicesTest::ExpectBlockTypeNames(), profinet::blocks::ParseModuleDiffBlock(), TEST_F(), and profinet::blocks::BlockHeader::TypeName().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string profinet::GetErrorDecodeName | ( | ErrorDecode | errorDecodeName | ) |
Get the human-readable name for an ErrorDecode value.
| errorDecodeName | Error decode value. |
Definition at line 15 of file exceptions.cpp.
References Hex2(), Pnio, PnioCm, and PnioRw.
Here is the call graph for this function:| std::filesystem::path profinet::GetExecutableDirectory | ( | ) |
Retrieves the absolute directory path of the currently running executable.
Uses the native executable-path API of the target operating system and returns the containing directory as a C++ filesystem path.
| std::runtime_error | If the executable path cannot be determined. |
Definition at line 79 of file platformLinux.cpp.
References error.
Referenced by TEST(), TEST(), and TEST_F().
Here is the caller graph for this function:| std::string profinet::GetIndexName | ( | std::uint16_t | index | ) |
Get the human-readable name for a record data index.
| index | Record data index. |
Definition at line 642 of file indices.cpp.
References AllStandardIndices(), Hex4(), and Name.
Referenced by profinet::rpc::RPCCon::EnumerateIndices(), and profinet::IndicesTest::ExpectIndexNames().
Here is the call graph for this function:
Here is the caller graph for this function:| MacAddress profinet::GetInterfaceMac | ( | const std::string & | interface | ) |
Get the MAC address assigned to a network interface.
| interface | Platform-specific interface or adapter name. |
| SocketError | If the interface cannot be found or its MAC address cannot be retrieved. |
The implementation uses the native network-interface API of the target operating system. The public API deliberately does not expose an operating-system-specific address structure.
Definition at line 74 of file platformLinux.cpp.
Referenced by profinet::device::ProfinetDevice::Discover(), profinet::device::ProfinetDevice::FromDcpInfo(), profinet::device::ProfinetDevice::FromIp(), profinet::MacAddressProvider::GetMac(), profinet::device::DcpScanner::Scan(), TEST(), TEST(), TEST(), TEST(), TEST_F(), and TEST_F().
Here is the caller graph for this function:| std::string profinet::GetIocrRtClassName | ( | IocrRtClass | rtClass | ) |
Get the human-readable name for an IOCR real-time class.
| rtClass | IOCR real-time class. |
Definition at line 373 of file indices.cpp.
Referenced by profinet::IndicesTest::ExpectIocrRtClassNames(), TEST_F(), and TEST_F().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string profinet::GetIocrTypeName | ( | IocrType | iocrType | ) |
Get the human-readable name for an IOCR type.
| iocrType | IOCR type. |
Definition at line 350 of file indices.cpp.
References Hex4(), Input, MulticastConsumer, MulticastProvider, and Output.
Referenced by profinet::IndicesTest::ExpectIocrTypeNames(), and TEST_F().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string profinet::GetModuleStateName | ( | std::uint16_t | state | ) |
Get the human-readable name for a module state.
| state | Raw module state value. |
Definition at line 445 of file indices.cpp.
References Hex4(), MODULE_STATE_NO_MODULE, MODULE_STATE_PROPER_MODULE, MODULE_STATE_SUBSTITUTE_MODULE, and MODULE_STATE_WRONG_MODULE.
Referenced by profinet::IndicesTest::ExpectModuleStates(), profinet::blocks::ModuleDiffModule::StateName(), and TEST_F().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string profinet::GetPeModeName | ( | std::uint8_t | mode | ) |
Get the human-readable name for a PROFIenergy operational mode.
| mode | Raw PROFIenergy mode value. |
Definition at line 470 of file indices.cpp.
References Hex2(), PE_MODE_ENERGY_SAVING_MAX, PE_MODE_ENERGY_SAVING_MIN, PE_MODE_OPERATE, PE_MODE_POWER_OFF, PE_MODE_READY_TO_OPERATE, and PE_MODE_SLEEP_MODE_WOL.
Referenced by profinet::IndicesTest::ExpectPeModes(), profinet::PEAlarmItem::ModeName(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string profinet::GetPnioCmErrorCode1Name | ( | PnioCmErrorCode1 | errorCodeCm1 | ) |
Get the human-readable name for a PNIO-CM ErrorCode1.
| errorCodeCm1 | ErrorCode1 value. |
Definition at line 61 of file exceptions.cpp.
References AlarmCr, AlarmCrResponse, Ar, ArFsu, ArResponse, ArRpc, ArServerResponse, CmCtl, CmDev, CmRpc, ExpectedSubmodule, FaultyAr, FaultyBlock, FaultyRecord, Hex2(), Iocr, IocrResponse, IodControlRequest, IodControlResponse, IrInfo, ModuleDiff, ModuleDiffResponse, PrmServer, and SrInfo.
Referenced by profinet::PNIOError::BlockName(), and profinet::PNIOError::DecodePnioCmError().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string profinet::GetPnioCmErrorMessage | ( | PnioCmAlarmCrErrorCode2 | errorCode2 | ) |
Get the human-readable message for a PNIO-CM Alarm CR error.
| errorCode2 | PNIO-CM Alarm CR ErrorCode2 value. |
Definition at line 426 of file exceptions.cpp.
References Hex2(), InvalidAlarmCrType, and NoAlarmCrResources.
Here is the call graph for this function:| std::string profinet::GetPnioCmErrorMessage | ( | PnioCmArErrorCode2 | errorCode2 | ) |
Get the human-readable message for a PNIO-CM AR error.
| errorCode2 | PNIO-CM AR ErrorCode2 value. |
Definition at line 356 of file exceptions.cpp.
References ArAlreadyActive, ArUuidConflict, Hex2(), InvalidArType, InvalidSessionKey, NoAlarmResources, NoArResources, NoConsumerResources, NoMemory, and NoProviderResources.
Referenced by profinet::PNIOError::DecodePnioCmError(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string profinet::GetPnioCmErrorMessage | ( | PnioCmDeviceErrorCode2 | errorCode2 | ) |
Get the human-readable message for a PNIO-CM Device error.
| errorCode2 | PNIO-CM Device ErrorCode2 value. |
Definition at line 469 of file exceptions.cpp.
References AlreadyOwned, ArSetAborted, ConnectionResourceUnavailable, DeviceStateConflict, and Hex2().
Here is the call graph for this function:| std::string profinet::GetPnioCmErrorMessage | ( | PnioCmExpectedSubmoduleErrorCode2 | errorCode2 | ) |
Get the human-readable message for a PNIO-CM Expected Submodule error.
| errorCode2 | PNIO-CM Expected Submodule ErrorCode2 value. |
Definition at line 443 of file exceptions.cpp.
References Hex2(), InvalidSlot, InvalidSubslot, IoDataLengthMismatch, WrongModuleIdentNumber, and WrongSubmoduleIdentNumber.
Here is the call graph for this function:| std::string profinet::GetPnioCmErrorMessage | ( | PnioCmFaultyBlockErrorCode2 | errorCode2 | ) |
Get the human-readable message for a PNIO-CM Faulty Block error.
| errorCode2 | PNIO-CM Faulty Block ErrorCode2 value. |
Definition at line 492 of file exceptions.cpp.
References FaultyBlockStructure, and Hex2().
Here is the call graph for this function:| std::string profinet::GetPnioCmErrorMessage | ( | PnioCmIocrErrorCode2 | errorCode2 | ) |
Get the human-readable message for a PNIO-CM IOCR error.
| errorCode2 | PNIO-CM IOCR ErrorCode2 value. |
Definition at line 394 of file exceptions.cpp.
References CycleTimeConflict, Hex2(), InvalidFrameId, InvalidIocrType, InvalidIoDataLength, InvalidRtClass, NoIocrResources, and WatchdogConfigurationError.
Here is the call graph for this function:| std::string profinet::GetPnioErrorCode1Name | ( | PnioErrorCode1 | errorCode1 | ) |
Get the human-readable name of a PNIO ErrorCode1.
| errorCode1 | PNIO ErrorCode1 value. |
Definition at line 265 of file exceptions.cpp.
References Hex2(), PrmServer, and Rmpm.
Here is the call graph for this function:| std::string profinet::GetPnioErrorMessage | ( | PnioPrmServerErrorCode2 | errorCode2 | ) |
Get the human-readable message for a Parameter Server ErrorCode2.
| errorCode2 | Parameter Server ErrorCode2 value. |
Definition at line 308 of file exceptions.cpp.
References Hex2(), and StateConflict.
Here is the call graph for this function:| std::string profinet::GetPnioErrorMessage | ( | PnioRmpmErrorCode2 | errorCode2 | ) |
Get the human-readable message for an RMPM ErrorCode2.
| errorCode2 | RMPM ErrorCode2 value. |
Definition at line 282 of file exceptions.cpp.
References Hex2(), InvalidArgumentsLength, OutOfArResources, RequiredIocrBlockMissing, UnknownBlocksInRequest, and WrongAlarmCrBlockCount.
Referenced by profinet::PNIOError::DecodePnioError().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string profinet::GetPnioRwErrorCode1Name | ( | PnioRwErrorCode1 | errorCodeRw1 | ) |
Get the human-readable name for a PNIORW ErrorCode1.
| errorCodeRw1 | ErrorCode1 value. |
Definition at line 35 of file exceptions.cpp.
References Access, Application, Hex2(), InvalidIndex, Resource, and WriteLength.
Here is the call graph for this function:| std::string profinet::GetPnioRwErrorMessage | ( | PnioRwAccessErrorCode2 | errorCode2 | ) |
Get the human-readable message for an Access error.
| errorCode2 | PNIO Read/Write Access ErrorCode2. |
Definition at line 204 of file exceptions.cpp.
References AccessDenied, Hex2(), InvalidArea, InvalidRange, InvalidState, and LocalControl.
Here is the call graph for this function:| std::string profinet::GetPnioRwErrorMessage | ( | PnioRwApplicationErrorCode2 | errorCode2 | ) |
Get the human-readable message for an Application error.
| errorCode2 | PNIO Read/Write Application ErrorCode2. |
Definition at line 230 of file exceptions.cpp.
References AlarmPending, BackupNotAllowed, Hex2(), InvalidApi, ModuleFailure, ReadError, ResourceBusy, VersionConflict, and WriteError.
Here is the call graph for this function:| std::string profinet::GetPnioRwErrorMessage | ( | PnioRwErrorCode1 | errorCode1, |
| std::uint8_t | errorCode2 | ||
| ) |
Decode a PNIO read/write error.
| errorCode1 | PNIO read/write ErrorCode1 value. |
| errorCode2 | Raw PNIO read/write ErrorCode2 value. |
ErrorCode2 is interpreted according to the ErrorCode1 category. Unknown ErrorCode2 values are returned as a hexadecimal value.
Definition at line 322 of file exceptions.cpp.
References Access, Application, GetPnioRwErrorMessage(), Hex2(), InvalidIndex, Resource, and WriteLength.
Here is the call graph for this function:| std::string profinet::GetPnioRwErrorMessage | ( | PnioRwInvalidIndexErrorCode2 | errorCode2 | ) |
Get the human-readable message for an InvalidIndex error.
| errorCode2 | PNIO Read/Write InvalidIndex ErrorCode2. |
Definition at line 141 of file exceptions.cpp.
References Hex2(), IndexNotSupported, and IndexNotWritten.
Referenced by profinet::PNIOError::DecodePnioRWError(), and GetPnioRwErrorMessage().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string profinet::GetPnioRwErrorMessage | ( | PnioRwResourceErrorCode2 | errorCode2 | ) |
Get the human-readable message for a Resource error.
| errorCode2 | PNIO Read/Write Resource ErrorCode2. |
Definition at line 181 of file exceptions.cpp.
References Hex2(), InvalidSlot, InvalidSubslot, ModuleHasNoData, and ResourceNotAvailable.
Here is the call graph for this function:| std::string profinet::GetPnioRwErrorMessage | ( | PnioRwWriteLengthErrorCode2 | errorCode2 | ) |
Get the human-readable message for a WriteLength error.
| errorCode2 | PNIO Read/Write WriteLength ErrorCode2. |
Definition at line 158 of file exceptions.cpp.
References DataTooLong, DataTooShort, Hex2(), WriteLengthError, and WriteProtected.
Here is the call graph for this function:| std::string profinet::GetScope | ( | std::uint16_t | index | ) |
Get the addressing scope for an index.
| index | Record data index. |
Definition at line 683 of file indices.cpp.
Referenced by profinet::IndicesTest::ExpectScopes().
Here is the caller graph for this function:| std::string profinet::GetSubmoduleStateName | ( | std::uint16_t | state | ) |
Get the human-readable name for a submodule state.
| state | Raw submodule state value. |
Definition at line 457 of file indices.cpp.
References Hex4(), SUBMODULE_STATE_APPLICATION_READY_PENDING, SUBMODULE_STATE_LOCKED_BY_SUPERVISOR, SUBMODULE_STATE_NO_SUBMODULE, SUBMODULE_STATE_OK, and SUBMODULE_STATE_WRONG_SUBMODULE.
Referenced by profinet::IndicesTest::ExpectSubmoduleStates(), profinet::blocks::ModuleDiffSubmodule::StateName(), and TEST_F().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string profinet::GetUsiName | ( | Usi | usi | ) |
Get the human-readable name for a User Structure Identifier.
| usi | User Structure Identifier. |
Definition at line 386 of file indices.cpp.
References ChannelDiagnosis, ExtendedChannelDiagnosis, Hex4(), IParameter, Maintenance, MultipleDiagnosis, PeAlarm, PralAlarm, QualifiedChannelDiagnosis, RsAlarmHigh, RsAlarmLow, RsAlarmSubmodule, and Upload.
Referenced by profinet::IndicesTest::ExpectUsiNames(), profinet::AlarmItem::UsiName(), profinet::DiagnosisItem::UsiName(), profinet::MaintenanceItem::UsiName(), profinet::UploadRetrievalItem::UsiName(), profinet::IParameterItem::UsiName(), profinet::PEAlarmItem::UsiName(), profinet::RSAlarmItem::UsiName(), and profinet::PRALAlarmItem::UsiName().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string profinet::GetVendorName | ( | std::uint16_t | vendorId | ) |
Get the vendor name for a 16-bit PROFINET vendor ID.
| vendorId | 16-bit PROFINET vendor ID. |
Definition at line 29 of file vendors.cpp.
References LookupVendor().
Referenced by TEST_F(), and profinet::dcp::DCPDeviceDescription::VendorName().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string profinet::Hex2 | ( | std::uint8_t | value | ) |
Format an 8-bit unsigned integer as a 2-digit hexadecimal string.
| value | The 8-bit numeric value to format. |
Definition at line 49 of file util.cpp.
Referenced by profinet::PNIOError::CreateFromCodes(), profinet::dcp::GetBlockName(), profinet::dcp::GetDcpBlockErrorDescription(), profinet::dcp::GetDcpResponseCodeName(), GetErrorDecodeName(), GetIocrRtClassName(), GetPeModeName(), GetPnioCmErrorCode1Name(), GetPnioCmErrorMessage(), GetPnioCmErrorMessage(), GetPnioCmErrorMessage(), GetPnioCmErrorMessage(), GetPnioCmErrorMessage(), GetPnioCmErrorMessage(), GetPnioErrorCode1Name(), GetPnioErrorMessage(), GetPnioErrorMessage(), GetPnioRwErrorCode1Name(), GetPnioRwErrorMessage(), GetPnioRwErrorMessage(), GetPnioRwErrorMessage(), GetPnioRwErrorMessage(), GetPnioRwErrorMessage(), GetPnioRwErrorMessage(), profinet::dcp::GetSuboptionName(), profinet::dcp::DCPDHCPBlock::Parse(), profinet::dcp::ParseSetResponse(), profinet::cyclic::CyclicController::ProcessInputFrame(), TEST_F(), TEST_F(), and TEST_F().
Here is the caller graph for this function:| std::string profinet::Hex4 | ( | std::uint16_t | value | ) |
Format a 16-bit unsigned integer as a 4-digit hexadecimal string.
| value | The 16-bit numeric value to format. |
Definition at line 44 of file util.cpp.
Referenced by profinet::diagnosis::DecodeChannelErrorType(), profinet::diagnosis::DecodeExtChannelErrorType(), GetBlockTypeName(), profinet::dcp::GetDcpBlockQualifierDescription(), profinet::dcp::GetDeviceInitiativeName(), GetIndexName(), GetIocrTypeName(), profinet::dcp::GetIPBlockInfoName(), GetModuleStateName(), profinet::dcp::GetResetQualifierName(), profinet::dcp::GetResetQualifierName(), GetSubmoduleStateName(), GetUsiName(), profinet::dcp::ParseSetResponse(), TEST_F(), and profinet::dcp::DCPDeviceDescription::ToString().
Here is the caller graph for this function:| std::string profinet::HexFallback | ( | const char * | widthPrefix, |
| std::uint32_t | value, | ||
| int | digitWidth | ||
| ) |
Format a hexadecimal string with a custom prefix and dynamic width.
| widthPrefix | The text prefix to prepend before the opening parenthesis. |
| value | The 32-bit numeric value to format as hexadecimal. |
| digitWidth | The minimum number of digits for the hexadecimal part, zero-padded. |
| const IndexNamePairs & profinet::ImIndices | ( | ) |
I&M0-I&M15 indices.
Definition at line 509 of file indices.cpp.
References IM0, IM1, IM10, IM11, IM12, IM13, IM14, IM15, IM2, IM3, IM4, IM5, IM6, IM7, IM8, and IM9.
Referenced by AllStandardIndices(), profinet::rpc::RPCCon::EnumerateIndices(), and TEST_F().
Here is the caller graph for this function:References Reserved.
| const IndexNamePairs & profinet::InterfaceIndices | ( | ) |
Interface-level indices.
Definition at line 594 of file indices.cpp.
References PD_INTERFACE_DATA_REAL, PD_INTERFACE_MRP_DATA_REAL, and PD_NC_DATA_CHECK.
Referenced by AllStandardIndices(), profinet::rpc::RPCCon::EnumerateIndices(), and TEST_F().
Here is the caller graph for this function:| std::array< std::uint8_t, 4 > profinet::Ip2String | ( | const std::string & | ipStr | ) |
Parse a dotted-decimal IPv4 address string.
| ipStr | IPv4 address in "a.b.c.d" form. |
Throws InvalidIPError on malformed input.
Definition at line 222 of file util.cpp.
Referenced by profinet::device::ProfinetScannerTest::CreateScanResponses(), profinet::dcp::SendHello(), profinet::dcp::SetIp(), TEST(), TEST(), TEST_F(), and TEST_F().
Here is the caller graph for this function:| std::optional< std::string > profinet::LookupVendor | ( | std::uint16_t | vendorId | ) |
Look up a vendor name without a fallback string.
| vendorId | 16-bit PROFINET vendor ID. |
Definition at line 15 of file vendors.cpp.
References profinet::detail::kVendorTable, and profinet::detail::kVendorTableSize.
Referenced by GetVendorName(), TEST_F(), and TEST_F().
Here is the caller graph for this function:| std::string profinet::Mac2String | ( | const MacAddress & | mac | ) |
Format a MAC address as a colon-separated string.
| mac | MAC address to format. |
Definition at line 188 of file util.cpp.
References Mac2String().
Referenced by profinet::dcp::DCPDeviceDescription::DCPDeviceDescription(), profinet::sim::VirtualProfinetLab::AddAumaValve(), profinet::sim::VirtualProfinetLab::AddPhoenixPlc(), Mac2String(), profinet::blocks::PeerInfo::MacStr(), profinet::blocks::InterfaceInfo::MacStr(), profinet::sim::VirtualPhoenixPlc::StatusReport(), profinet::sim::VirtualProfinetLab::StatusReport(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), TEST(), TEST_F(), and TEST_F().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string profinet::Mac2String | ( | const std::uint8_t * | macBytes, |
| std::size_t | len | ||
| ) |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexpr |
Definition at line 282 of file protocol.h.
|
constexpr |
Definition at line 314 of file protocol.h.
|
constexprnoexcept |
|
inline |
|
inline |
|
constexprnoexcept |
Checks equality between a BlockType enum and a raw uint16_t value.
| lhs | Enum value to compare. |
| rhs | Raw uint16_t integer value. |
Definition at line 326 of file indices.h.
Referenced by profinet::cyclic::TEST_F().
Here is the caller graph for this function:
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexpr |
Definition at line 277 of file protocol.h.
|
constexpr |
Definition at line 309 of file protocol.h.
|
constexprnoexcept |
| std::pair< AlarmItemVariant, std::size_t > profinet::ParseAlarmItem | ( | const Bytes & | data, |
| std::size_t | offset = 0 |
||
| ) |
Parse a single alarm item starting at an offset.
| data | Buffer containing the alarm item. |
| offset | Byte offset within Data to start parsing at. |
Throws std::invalid_argument if data is truncated for the dispatched item type.
Definition at line 191 of file alarms.cpp.
References ChannelDiagnosis, ExtendedChannelDiagnosis, IParameter, Maintenance, PeAlarm, PralAlarm, QualifiedChannelDiagnosis, RsAlarmHigh, RsAlarmLow, RsAlarmSubmodule, profinet::wire::Reader::SkipTo(), profinet::wire::Reader::U16(), Upload, and profinet::AlarmItem::userStructureId.
Referenced by ParseAlarmNotification(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
Here is the call graph for this function:
Here is the caller graph for this function:| AlarmNotification profinet::ParseAlarmNotification | ( | const Bytes & | data | ) |
Parse a complete AlarmNotification PDU (BlockHeader + body + items).
| data | Buffer containing the complete PDU, including its block header. |
Throws std::invalid_argument if data is too short (< 26 bytes: the structurally correct BlockHeader(6)+Body(20) minimum. Item parsing errors past that point are swallowed and stop item parsing early, so a truncated trailing item doesn't lose the items parsed so far.
Definition at line 245 of file alarms.cpp.
References profinet::AlarmNotification::alarmSequenceNumber, AlarmSequenceNumber, profinet::AlarmNotification::alarmType, profinet::AlarmNotification::api, profinet::AlarmNotification::arDiagnosisState, ArDiagnosisState, blockHeaderLength, profinet::PNBlockHeader::blockLength, profinet::AlarmNotification::blockType, profinet::PNBlockHeader::blockType, profinet::AlarmNotification::blockVersion, profinet::PNBlockHeader::blockVersionHigh, profinet::PNBlockHeader::blockVersionLow, profinet::AlarmNotification::channelDiagnosis, ChannelDiagnosis, profinet::AlarmNotification::items, profinet::AlarmNotification::manufacturerSpecific, ManufacturerSpecific, profinet::AlarmNotification::moduleIdentNumber, profinet::PNBlockHeader::Parse(), ParseAlarmItem(), payload, profinet::AlarmNotification::rawPayload, profinet::AlarmNotification::slotNumber, profinet::AlarmNotification::submoduleDiagnosisState, SubmoduleDiagnosisState, profinet::AlarmNotification::submoduleIdentNumber, profinet::AlarmNotification::subslotNumber, profinet::wire::Reader::U16(), and profinet::wire::Reader::U32().
Referenced by profinet::AlarmListener::ProcessAlarm(), profinet::device::ProfinetDevice::ReadAlarm(), profinet::sim::TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
Here is the call graph for this function:
Here is the caller graph for this function:Parse an RTA ERR-PDU from raw RTA PDU bytes.
| data | Bytes starting at AlarmDstEndpoint. |
| std::invalid_argument | if the RTA PDU is invalid. |
Definition at line 2722 of file protocol.h.
References profinet::PNRTAHeader::Parse(), and ParseRtaError().
Here is the call graph for this function:
|
inline |
Parse an RTA ERR-PDU from an already parsed RTA header.
| header | Parsed RTA header. |
| std::invalid_argument | if the PDU is not ERR-RTA or the variable part is not exactly a four-byte PNIO status. |
Definition at line 2680 of file protocol.h.
References profinet::RtaError::ClassifyRtaError(), profinet::RtaError::ClassifyRtaErrorReason(), profinet::RtaError::errorCode, profinet::RtaError::errorCode1, profinet::RtaError::errorCode2, profinet::RtaError::errorDecode, profinet::RtaError::header, profinet::RtaError::kind, profinet::PNRTAHeader::payload, profinet::PNRTAHeader::pduType, profinet::RtaError::reason, profinet::PNRTAHeader::RTA_TYPE_ERR, profinet::RtaError::statusPnio, and profinet::PNRTAHeader::variablePartLenght.
Referenced by ParseRtaError(), profinet::AlarmListener::ProcessAlarm(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_P().
Here is the call graph for this function:
Here is the caller graph for this function:| const IndexNamePairs & profinet::PortIndices | ( | ) |
Port-level indices.
Definition at line 582 of file indices.cpp.
References PD_PORT_DATA_ADJUST, PD_PORT_DATA_CHECK, PD_PORT_DATA_REAL, PD_PORT_MRP_DATA_REAL, and PD_PORT_STATISTIC.
Referenced by AllStandardIndices(), profinet::rpc::RPCCon::EnumerateIndices(), and TEST_F().
Here is the caller graph for this function:
|
noexcept |
Return the byte offset of the real EtherType in a raw Ethernet frame.
PROFINET devices commonly send RT and alarm frames 802.1Q priority-tagged (TPID 0x8100, VID 0). Depending on NIC/driver VLAN offload, the tag may or may not be stripped before reaching a raw socket, so receivers must skip any number of VLAN tags. Recognized TPIDs include 802.1Q (0x8100), 802.1ad (0x88A8), and legacy double-tagging (0x9100).
| frame | A view over the raw Ethernet frame bytes, starting at the destination MAC address. |
Definition at line 70 of file util.cpp.
References profinet::rt::ETHERTYPE_VLAN, profinet::rt::ETHERTYPE_VLAN_AD, profinet::rt::ETHERTYPE_VLAN_LEGACY, frame, macAddressLength, profinet::wire::Reader::Position(), profinet::wire::Reader::Remaining(), profinet::wire::Reader::Skip(), profinet::wire::Reader::SkipTo(), and profinet::wire::Reader::U16().
Referenced by profinet::AlarmListener::HandleLayer2Frame(), profinet::AsioEthernetSocket::EthernetPacketBackend::MatchesEtherType(), profinet::cyclic::CyclicController::ProcessInputFrame(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string profinet::String2Ip | ( | const std::uint8_t * | ipBytes, |
| std::size_t | len | ||
| ) |
Format raw IPv4 address bytes as a dotted string.
| ipBytes | Pointer to at least 4 bytes. |
| len | Number of bytes available at ip_bytes. |
Throws InvalidIPError if fewer than 4 bytes are given.
Definition at line 217 of file util.cpp.
References String2Ip().
Here is the call graph for this function:| std::string profinet::String2Ip | ( | std::span< const std::uint8_t > | ipBytes | ) |
Format raw IPv4 address bytes as a dotted string.
| ipBytes | View over a contiguous sequence of at least 4 bytes. |
Throws InvalidIPError if fewer than 4 bytes are given.
Definition at line 206 of file util.cpp.
Referenced by profinet::dcp::DCPDeviceDescription::DCPDeviceDescription(), profinet::blocks::InterfaceInfo::GatewayStr(), profinet::blocks::InterfaceInfo::IpStr(), profinet::PNDCPBlockRequest::ParseIp(), profinet::PNDCPBlock::ParseIp(), String2Ip(), profinet::blocks::InterfaceInfo::SubnetStr(), TEST(), TEST_F(), TEST_F(), and TEST_F().
Here is the caller graph for this function:| MacAddress profinet::String2Mac | ( | const std::string & | macStr | ) |
Parse a colon-separated MAC address string.
| macStr | MAC address in "aa:bb:cc:dd:ee:ff" form. |
Throws InvalidMACError on malformed input.
Definition at line 122 of file util.cpp.
References macAddressLength.
Referenced by profinet::device::ProfinetScannerTest::CreateScanResponses(), profinet::dcp::GetParam(), profinet::rpc::RpcTests::InvokeSetRPCConSrcMac(), profinet::cyclic::CyclicTest::MakeController(), profinet::rpc::RpcTests::MakeRpcTestDeviceInfo(), MakeTestDeviceDescription(), profinet::dcp::ResetToFactory(), profinet::dcp::SendDiscover(), profinet::dcp::SendHello(), profinet::dcp::SendRequest(), profinet::dcp::SetIp(), profinet::dcp::SetParam(), profinet::dcp::SignalDevice(), profinet::device::ProfinetDevice::StartAlarmListener(), profinet::cyclic::CyclicTest::StartControllerWithBlockedReceive(), profinet::device::ProfinetDevice::StartCyclic(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::device::TEST(), profinet::device::TEST(), profinet::device::TEST(), TEST(), TEST(), profinet::cyclic::TEST_F(), profinet::cyclic::TEST_F(), profinet::cyclic::TEST_F(), profinet::cyclic::TEST_F(), profinet::device::TEST_F(), TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| profinet::TEST | ( | AlarmEndpointTests | , |
| AllFieldsCanBeConfigured | |||
| ) |
Definition at line 75 of file test_alarmListener.cpp.
References profinet::AlarmEndpoint::interface.
| profinet::TEST | ( | AlarmEndpointTests | , |
| DefaultTransportIsLayer2 | |||
| ) |
Definition at line 58 of file test_alarmListener.cpp.
References profinet::AlarmEndpoint::interface.
| profinet::TEST | ( | AlarmFrameIdTests | , |
| HighPriorityAlarmFrameId | |||
| ) |
Definition at line 273 of file test_alarmListener.cpp.
References FRAME_ID_ALARM_HIGH.
| profinet::TEST | ( | AlarmFrameIdTests | , |
| LowPriorityAlarmFrameId | |||
| ) |
Definition at line 279 of file test_alarmListener.cpp.
References FRAME_ID_ALARM_LOW.
| profinet::TEST | ( | ExceptionCatchingTests | , |
| CatchAllProfinetErrors | |||
| ) |
Definition at line 120 of file test_exceptions.cpp.
| profinet::TEST | ( | ExceptionCatchingTests | , |
| CatchDcpVariants | |||
| ) |
Definition at line 129 of file test_exceptions.cpp.
| profinet::TEST | ( | ExceptionCatchingTests | , |
| CatchRpcVariants | |||
| ) |
Definition at line 136 of file test_exceptions.cpp.
| profinet::TEST | ( | ExceptionHierarchyTests | , |
| DcpDeviceNotFoundInheritsDcpError | |||
| ) |
Definition at line 31 of file test_exceptions.cpp.
| profinet::TEST | ( | ExceptionHierarchyTests | , |
| DcpErrorInheritsProfinetError | |||
| ) |
Definition at line 19 of file test_exceptions.cpp.
| profinet::TEST | ( | ExceptionHierarchyTests | , |
| DcpTimeoutInheritsDcpError | |||
| ) |
Definition at line 25 of file test_exceptions.cpp.
| profinet::TEST | ( | ExceptionHierarchyTests | , |
| InvalidIpInheritsValidationError | |||
| ) |
Definition at line 73 of file test_exceptions.cpp.
| profinet::TEST | ( | ExceptionHierarchyTests | , |
| InvalidMacInheritsValidationError | |||
| ) |
Definition at line 67 of file test_exceptions.cpp.
| profinet::TEST | ( | ExceptionHierarchyTests | , |
| PermissionDeniedInheritsSocketError | |||
| ) |
Definition at line 85 of file test_exceptions.cpp.
| profinet::TEST | ( | ExceptionHierarchyTests | , |
| RpcConnectionInheritsRpcError | |||
| ) |
Definition at line 55 of file test_exceptions.cpp.
| profinet::TEST | ( | ExceptionHierarchyTests | , |
| RpcErrorInheritsProfinetError | |||
| ) |
Definition at line 37 of file test_exceptions.cpp.
| profinet::TEST | ( | ExceptionHierarchyTests | , |
| RpcFaultInheritsRpcError | |||
| ) |
Definition at line 49 of file test_exceptions.cpp.
| profinet::TEST | ( | ExceptionHierarchyTests | , |
| RpcTimeoutInheritsRpcError | |||
| ) |
Definition at line 43 of file test_exceptions.cpp.
| profinet::TEST | ( | ExceptionHierarchyTests | , |
| SocketErrorInheritsProfinetError | |||
| ) |
Definition at line 79 of file test_exceptions.cpp.
| profinet::TEST | ( | ExceptionHierarchyTests | , |
| ValidationErrorInheritsProfinetError | |||
| ) |
Definition at line 61 of file test_exceptions.cpp.
| profinet::TEST | ( | IoControllerAumaConnection | , |
| ConnectUsesCapturedNegotiatedFrameIdsAndTiming | |||
| ) |
Definition at line 291 of file test_regressionAuma.cpp.
References ApplicationRelationRequest, profinet::PNIOCRBlockReqHeader::BLOCK_TYPE, profinet::rpc::BlockHeaderView::blockType, kInputFrameId, kOutputFrameId, profinet::PNRPCHeader::Parse(), profinet::PNNRDData::Parse(), profinet::PNIOCRBlockReqHeader::Parse(), profinet::PNNRDData::payload, profinet::rpc::PeekBlockHeader(), and profinet::rpc::IOCRSetup::slots.
Here is the call graph for this function:| profinet::TEST | ( | IoControllerAumaCyclicIo | , |
| CapturedOneSecondOpenSequenceUsesEightMillisecondCycle | |||
| ) |
Definition at line 562 of file test_regressionAuma.cpp.
| profinet::TEST | ( | IoControllerAumaCyclicIo | , |
| InputPositionSamplesRemainBigEndianAtCapturedBytes20And21 | |||
| ) |
Definition at line 493 of file test_regressionAuma.cpp.
References profinet::rt::CyclicDataBuilder::Build(), profinet::rt::CyclicDataBuilder::Load(), payload, profinet::rt::CyclicDataBuilder::Swap(), profinet::wire::Reader::U16(), and profinet::wire::Reader::U8().
Here is the call graph for this function:| profinet::TEST | ( | IoControllerAumaCyclicIo | , |
| Layer2FramesMatchCaptureLengthsAndDirections | |||
| ) |
Definition at line 519 of file test_regressionAuma.cpp.
References profinet::rt::BuildEthernetFrame(), profinet::rt::DATA_STATUS_PROVIDER_RUN, profinet::rt::DATA_STATUS_STATE, profinet::rt::DATA_STATUS_STATION_OK, profinet::rt::DATA_STATUS_VALID, profinet::wire::Reader::Fixed(), profinet::rt::RTFrame::frameId, profinet::rt::RTFrame::FromBytes(), kInputFrameId, kOutputFrameId, macAddressLength, profinet::wire::Reader::ReadBytes(), profinet::wire::Reader::Remaining(), and profinet::wire::Reader::U16().
Here is the call graph for this function:| profinet::TEST | ( | IoControllerAumaCyclicIo | , |
| OutputOpenAndStopUseCapturedByte25 | |||
| ) |
Definition at line 346 of file test_regressionAuma.cpp.
References profinet::rt::CyclicDataBuilder::Build(), profinet::rt::BuildEthernetFrame(), profinet::rt::DATA_STATUS_PROVIDER_RUN, profinet::rt::DATA_STATUS_STATE, profinet::rt::DATA_STATUS_STATION_OK, profinet::rt::DATA_STATUS_VALID, profinet::wire::Reader::Fixed(), frame, profinet::rt::RTFrame::frameId, profinet::rt::RTFrame::FromBytes(), kOutputFrameId, macAddressLength, PROFINET_ETHERTYPE, profinet::wire::Reader::ReadBytes(), profinet::wire::Reader::Remaining(), profinet::rt::CyclicDataBuilder::SetData(), profinet::rt::CyclicDataBuilder::Swap(), profinet::wire::Reader::U16(), and profinet::wire::Reader::U8().
Here is the call graph for this function:| profinet::TEST | ( | IoControllerAumaGsdml | , |
| AumaProfileMatchesCaptureDevice | |||
| ) |
Definition at line 262 of file test_regressionAuma.cpp.
| profinet::TEST | ( | IoControllerAumaGsdml | , |
| PhoenixProfileMatchesCaptureController | |||
| ) |
Definition at line 282 of file test_regressionAuma.cpp.
| profinet::TEST | ( | PNIOErrorTests | , |
| BlockNameReturnsArBlock | |||
| ) |
Definition at line 660 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| BlockNameReturnsArResponseBlock | |||
| ) |
Definition at line 682 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| BlockNameReturnsEmptyForPnioError | |||
| ) |
Definition at line 715 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| BlockNameReturnsEmptyForPnioRwError | |||
| ) |
Definition at line 704 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| BlockNameReturnsEmptyForUnknownDecode | |||
| ) |
Definition at line 726 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| BlockNameReturnsIocrBlock | |||
| ) |
Definition at line 671 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| BlockNameReturnsUnknownForUnknownCmErrorCode1 | |||
| ) |
Definition at line 693 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioCmAlarmCr | |||
| ) |
Definition at line 333 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioCmAlarmCrResponse | |||
| ) |
Definition at line 344 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioCmAr | |||
| ) |
Definition at line 281 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioCmArResponse | |||
| ) |
Definition at line 296 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioCmDevice | |||
| ) |
Definition at line 366 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioCmExpectedSubmodule | |||
| ) |
Definition at line 355 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioCmFaultyBlock | |||
| ) |
Definition at line 377 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioCmIocr | |||
| ) |
Definition at line 311 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioCmIocrResponse | |||
| ) |
Definition at line 322 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioCmUnknownErrorCode1 | |||
| ) |
Definition at line 388 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioPrmServer | |||
| ) |
Definition at line 418 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioRmpm | |||
| ) |
Definition at line 403 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioRwAccess | |||
| ) |
Definition at line 479 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioRwApplication | |||
| ) |
Definition at line 491 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioRwInvalidIndex | |||
| ) |
Definition at line 444 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioRwResource | |||
| ) |
Definition at line 468 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioRwUnknownErrorCode1 | |||
| ) |
Definition at line 502 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioRwWriteLength | |||
| ) |
Definition at line 456 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesPnioUnknownErrorCode1 | |||
| ) |
Definition at line 429 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CreateFromCodesUnknownErrorDecode | |||
| ) |
Definition at line 517 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| CustomValues | |||
| ) |
Definition at line 165 of file test_exceptions.cpp.
References error.
| profinet::TEST | ( | PNIOErrorTests | , |
| DefaultValues | |||
| ) |
Definition at line 155 of file test_exceptions.cpp.
References error.
| profinet::TEST | ( | PNIOErrorTests | , |
| DirectConstructionIsCmError | |||
| ) |
Definition at line 758 of file test_exceptions.cpp.
References error.
| profinet::TEST | ( | PNIOErrorTests | , |
| DirectConstructionIsNotCmError | |||
| ) |
Definition at line 771 of file test_exceptions.cpp.
References error.
| profinet::TEST | ( | PNIOErrorTests | , |
| DirectConstructionPreservesMessageAndCodes | |||
| ) |
Definition at line 741 of file test_exceptions.cpp.
References error.
| profinet::TEST | ( | PNIOErrorTests | , |
| ErrorConstants | |||
| ) |
Definition at line 266 of file test_exceptions.cpp.
References Application, InvalidIndex, Pnio, PnioCm, PnioRw, and Resource.
| profinet::TEST | ( | PNIOErrorTests | , |
| FromArgsStatusDecodesPnioCmError | |||
| ) |
Definition at line 588 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromArgsStatus().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| FromArgsStatusInvalidApi | |||
| ) |
Definition at line 217 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromArgsStatus().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| FromArgsStatusInvalidIndex | |||
| ) |
Definition at line 203 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromArgsStatus().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| FromArgsStatusInvalidSlot | |||
| ) |
Definition at line 175 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromArgsStatus().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| FromArgsStatusInvalidSubslot | |||
| ) |
Definition at line 189 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromArgsStatus().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| FromArgsStatusReversesByteOrder | |||
| ) |
Definition at line 568 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromArgsStatus().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| FromArgsStatusRmpmError | |||
| ) |
Definition at line 231 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromArgsStatus().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| FromArgsStatusUnknownError | |||
| ) |
Definition at line 246 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromArgsStatus().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| FromBytesPreservesAllRawErrorBytes | |||
| ) |
Definition at line 536 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| FromBytesUsesExpectedByteOrder | |||
| ) |
Definition at line 550 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| IsCmErrorReturnsFalseForPnio | |||
| ) |
Definition at line 634 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| IsCmErrorReturnsFalseForPnioRw | |||
| ) |
Definition at line 623 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| IsCmErrorReturnsFalseForUnknownDecode | |||
| ) |
Definition at line 645 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| IsCmErrorReturnsTrueForPnioCm | |||
| ) |
Definition at line 612 of file test_exceptions.cpp.
References error, and profinet::PNIOError::FromBytes().
Here is the call graph for this function:| profinet::TEST | ( | PNIOErrorTests | , |
| PnioErrorInheritsRpcError | |||
| ) |
Definition at line 149 of file test_exceptions.cpp.
| profinet::TEST | ( | PNIOErrorTests | , |
| StrFormat | |||
| ) |
Definition at line 258 of file test_exceptions.cpp.
References error.
| profinet::TEST | ( | RPCFaultErrorTests | , |
| FaultCodeCustom | |||
| ) |
Definition at line 102 of file test_exceptions.cpp.
References error.
| profinet::TEST | ( | RPCFaultErrorTests | , |
| FaultCodeDefault | |||
| ) |
Definition at line 95 of file test_exceptions.cpp.
References error.
| profinet::TEST | ( | RPCFaultErrorTests | , |
| Message | |||
| ) |
Definition at line 109 of file test_exceptions.cpp.
References error.
| profinet::TEST | ( | RtaErrorsTests | , |
| UndefinedReasonIsUnknown | |||
| ) |
Definition at line 1114 of file test_alarmListenerRta.cpp.
References profinet::RtaError::ClassifyRtaError(), profinet::RtaError::ClassifyRtaErrorReason(), and Reserved.
Here is the call graph for this function:| profinet::TEST | ( | UdpSocketTests | , |
| MoveAssignmentTransfersSocketOwnership | |||
| ) |
Definition at line 124 of file test_udpSocket.cpp.
References profinet::UdpSocket::LocalEndpoint().
Here is the call graph for this function:| profinet::TEST | ( | UdpSocketTests | , |
| MoveConstructionTransfersSocketOwnership | |||
| ) |
Definition at line 112 of file test_udpSocket.cpp.
References profinet::UdpSocket::LocalEndpoint().
Here is the call graph for this function:| profinet::TEST | ( | UdpSocketTests | , |
| RecvFromReturnsEmptyDatagramOnTimeout | |||
| ) |
Definition at line 100 of file test_udpSocket.cpp.
References profinet::UdpEndpoint::address, profinet::UdpDatagram::data, profinet::UdpEndpoint::port, profinet::UdpSocket::RecvFrom(), and profinet::UdpDatagram::source.
Here is the call graph for this function:| profinet::TEST | ( | UdpSocketTests | , |
| RecvFromReturnsPayloadAndSourceEndpoint | |||
| ) |
Definition at line 51 of file test_udpSocket.cpp.
References profinet::UdpEndpoint::address, profinet::UdpDatagram::data, payload, profinet::UdpEndpoint::port, profinet::UdpSocket::RecvFrom(), profinet::UdpSocket::Send(), and profinet::UdpDatagram::source.
Here is the call graph for this function:| profinet::TEST | ( | UdpSocketTests | , |
| SendToSendsToSuppliedEndpoint | |||
| ) |
Definition at line 73 of file test_udpSocket.cpp.
References profinet::UdpDatagram::data, payload, profinet::UdpSocket::Recv(), profinet::UdpSocket::RecvFrom(), profinet::UdpSocket::Send(), profinet::UdpSocket::SendTo(), and profinet::UdpDatagram::source.
Here is the call graph for this function:| profinet::TEST | ( | UtilTest | , |
| ByteAtU16 | |||
| ) |
Definition at line 108 of file test_util.cpp.
References ByteAt().
Here is the call graph for this function:| profinet::TEST | ( | UtilTest | , |
| ByteAtU32 | |||
| ) |
Definition at line 118 of file test_util.cpp.
References ByteAt().
Here is the call graph for this function:| profinet::TEST | ( | UtilTest | , |
| ByteAtU64 | |||
| ) |
Definition at line 130 of file test_util.cpp.
References ByteAt().
Here is the call graph for this function:| profinet::TEST | ( | UtilTest | , |
| ByteAtU8 | |||
| ) |
Definition at line 99 of file test_util.cpp.
References ByteAt().
Here is the call graph for this function:| profinet::TEST | ( | UtilTest | , |
| ByteSwapU16 | |||
| ) |
Definition at line 76 of file test_util.cpp.
| profinet::TEST | ( | UtilTest | , |
| ByteSwapU32 | |||
| ) |
Definition at line 82 of file test_util.cpp.
| profinet::TEST | ( | UtilTest | , |
| ByteSwapU64 | |||
| ) |
Definition at line 88 of file test_util.cpp.
| profinet::TEST | ( | UtilTest | , |
| ByteSwapU8 | |||
| ) |
Definition at line 94 of file test_util.cpp.
| profinet::TEST | ( | UtilTest | , |
| DecodeBytesStripsTrailingNuls | |||
| ) |
Definition at line 63 of file test_util.cpp.
References DecodeBytes().
Here is the call graph for this function:| profinet::TEST | ( | UtilTest | , |
| Ip2SRejectsMalformedInput | |||
| ) |
Definition at line 48 of file test_util.cpp.
References Ip2String().
Here is the call graph for this function:| profinet::TEST | ( | UtilTest | , |
| Ip2SS2IpRoundtrip | |||
| ) |
Definition at line 41 of file test_util.cpp.
References Ip2String(), and String2Ip().
Here is the call graph for this function:| profinet::TEST | ( | UtilTest | , |
| Mac2SS2MacRoundtrip | |||
| ) |
Definition at line 25 of file test_util.cpp.
References Mac2String(), and String2Mac().
Here is the call graph for this function:| profinet::TEST | ( | UtilTest | , |
| MaxTimeoutReportsElapsed | |||
| ) |
Definition at line 70 of file test_util.cpp.
References profinet::MaxTimeout::TimedOut().
Here is the call graph for this function:| profinet::TEST | ( | UtilTest | , |
| S2MacRejectsMalformedInput | |||
| ) |
Definition at line 33 of file test_util.cpp.
References String2Mac().
Here is the call graph for this function:| profinet::TEST | ( | UtilTest | , |
| ToHexEncodesBytes | |||
| ) |
Definition at line 56 of file test_util.cpp.
References ToHex().
Here is the call graph for this function:| profinet::TEST_F | ( | AlarmListenerCallbackTest | , |
| CallbackExceptionDoesNotPreventOtherCallbacks | |||
| ) |
Definition at line 702 of file test_alarmListenerRta.cpp.
| profinet::TEST_F | ( | AlarmListenerCallbackTest | , |
| EmptyCallbackIsIgnored | |||
| ) |
Definition at line 688 of file test_alarmListenerRta.cpp.
| profinet::TEST_F | ( | AlarmListenerCallbackTest | , |
| MultipleCallbacksAreInvoked | |||
| ) |
Definition at line 665 of file test_alarmListenerRta.cpp.
| profinet::TEST_F | ( | AlarmListenerCallbackTest | , |
| ReceivedAlarmInvokesCallback | |||
| ) |
Definition at line 643 of file test_alarmListenerRta.cpp.
| profinet::TEST_F | ( | AlarmListenerRtaIntegrationTest | , |
| DISABLED_DuplicateNotificationIsNotDispatchedTwice | |||
| ) |
A retransmission of an already processed DATA PDU must be acknowledged again but must not result in a second application-level alarm callback.
This test currently exposes missing RTA duplicate/sequence handling in AlarmListener.
Definition at line 812 of file test_alarmListenerRta.cpp.
References frame.
| profinet::TEST_F | ( | AlarmListenerRtaIntegrationTest | , |
| TwoAlarmNotificationsAreDispatched | |||
| ) |
Definition at line 726 of file test_alarmListenerRta.cpp.
| profinet::TEST_F | ( | AlarmListenerRtaTest | , |
| AlarmAckEchoesReceivedSequenceNumber | |||
| ) |
Definition at line 622 of file test_alarmListenerRta.cpp.
References frame.
| profinet::TEST_F | ( | AlarmListenerRtaTest | , |
| AlarmAckIsPriorityVlanTagged | |||
| ) |
Definition at line 554 of file test_alarmListenerRta.cpp.
References profinet::wire::Reader::Fixed(), frame, macAddressLength, and profinet::wire::Reader::U16().
Here is the call graph for this function:| profinet::TEST_F | ( | AlarmListenerRtaTest | , |
| AlarmAckUsesDataPdu | |||
| ) |
Definition at line 582 of file test_alarmListenerRta.cpp.
References frame.
| profinet::TEST_F | ( | AlarmListenerRtaTest | , |
| AlarmAckUsesDeviceEndpointAsDestination | |||
| ) |
Definition at line 601 of file test_alarmListenerRta.cpp.
References frame.
| profinet::TEST_F | ( | AlarmListenerRtaTest | , |
| DataWithoutTackIsIgnored | |||
| ) |
The intended RTA transport behavior requires the TACK request flag for a DATA notification exchange.
Definition at line 797 of file test_alarmListenerRta.cpp.
| profinet::TEST_F | ( | AlarmListenerRtaTest | , |
| DISABLED_OutOfSequenceNotificationIsRejected | |||
| ) |
The intended RTA transport behavior is to reject DATA whose SendSeqNum does not match the expected receive sequence and to send a NACK.
This currently exposes missing RTA sequence-state handling.
Definition at line 840 of file test_alarmListenerRta.cpp.
| profinet::TEST_F | ( | AlarmListenerRtaTest | , |
| FirstAlarmAckUsesInitialSequenceNumber | |||
| ) |
The implementation starts the RTA DATA sequence counter at 0xFFFF and advances modulo 0x8000.
This test currently exposes the difference between the current implementation and the intended transport state machine.
Definition at line 866 of file test_alarmListenerRta.cpp.
References frame.
| profinet::TEST_F | ( | AlarmListenerRtaTest | , |
| HighPriorityAlarmUsesHighFrameId | |||
| ) |
Definition at line 465 of file test_alarmListenerRta.cpp.
References frame, and FRAME_ID_ALARM_HIGH.
| profinet::TEST_F | ( | AlarmListenerRtaTest | , |
| InvalidAlarmPayloadIsNotAcknowledged | |||
| ) |
Definition at line 751 of file test_alarmListenerRta.cpp.
| profinet::TEST_F | ( | AlarmListenerRtaTest | , |
| NonProfinetEtherTypeIsIgnored | |||
| ) |
Definition at line 490 of file test_alarmListenerRta.cpp.
References frame.
| profinet::TEST_F | ( | AlarmListenerRtaTest | , |
| ShortEthernetFrameIsIgnored | |||
| ) |
Definition at line 546 of file test_alarmListenerRta.cpp.
| profinet::TEST_F | ( | AlarmListenerRtaTest | , |
| UntaggedAlarmFrameIsProcessed | |||
| ) |
Definition at line 415 of file test_alarmListenerRta.cpp.
References frame, and FRAME_ID_ALARM_LOW.
| profinet::TEST_F | ( | AlarmListenerRtaTest | , |
| VlanTaggedAlarmFrameIsProcessed | |||
| ) |
Definition at line 443 of file test_alarmListenerRta.cpp.
References frame, and FRAME_ID_ALARM_LOW.
| profinet::TEST_F | ( | AlarmListenerRtaTest | , |
| WrongDestinationReferenceIsIgnored | |||
| ) |
Definition at line 530 of file test_alarmListenerRta.cpp.
| profinet::TEST_F | ( | AlarmListenerRtaTest | , |
| WrongRtaVersionIsIgnored | |||
| ) |
The intended RTA behavior is to ignore PDUs whose high nibble does not contain protocol version 1.
Definition at line 769 of file test_alarmListenerRta.cpp.
References frame, and FRAME_ID_ALARM_LOW.
| profinet::TEST_F | ( | AlarmListenerRtaTest | , |
| WrongSourceMacIsIgnored | |||
| ) |
Definition at line 508 of file test_alarmListenerRta.cpp.
References frame.
| profinet::TEST_F | ( | AlarmListenerTests | , |
| AcceptsCustomControllerMac | |||
| ) |
Definition at line 258 of file test_alarmListener.cpp.
References profinet::AlarmListenerTestAccess::ControllerMac(), and ioContext.
Here is the call graph for this function:| profinet::TEST_F | ( | AlarmListenerTests | , |
| AddCallbackRegistersCallback | |||
| ) |
Definition at line 146 of file test_alarmListener.cpp.
References profinet::AlarmListenerTestAccess::CallbackCount().
Here is the call graph for this function:| profinet::TEST_F | ( | AlarmListenerTests | , |
| AddEmptyCallbackDoesNothing | |||
| ) |
Passing an empty std::function must not add an entry to the callback collection.
Definition at line 158 of file test_alarmListener.cpp.
References profinet::AlarmListenerTestAccess::CallbackCount().
Here is the call graph for this function:| profinet::TEST_F | ( | AlarmListenerTests | , |
| AddLambaCallbackRegistersCallback | |||
| ) |
Definition at line 130 of file test_alarmListener.cpp.
References profinet::AlarmListenerTestAccess::CallbackCount().
Here is the call graph for this function:| profinet::TEST_F | ( | AlarmListenerTests | , |
| ControllerMacDefaultsToZero | |||
| ) |
Definition at line 250 of file test_alarmListener.cpp.
References profinet::AlarmListenerTestAccess::ControllerMac().
Here is the call graph for this function:| profinet::TEST_F | ( | AlarmListenerTests | , |
| FailedStartLeavesListenerStopped | |||
| ) |
Definition at line 283 of file test_alarmListener.cpp.
| profinet::TEST_F | ( | AlarmListenerTests | , |
| InitializesWithEndpoint | |||
| ) |
Definition at line 113 of file test_alarmListener.cpp.
| profinet::TEST_F | ( | AlarmListenerTests | , |
| InitializesWithoutCallbacks | |||
| ) |
Definition at line 120 of file test_alarmListener.cpp.
References profinet::AlarmListenerTestAccess::CallbackCount().
Here is the call graph for this function:| profinet::TEST_F | ( | AlarmListenerTests | , |
| IsRunningInitiallyFalse | |||
| ) |
A newly constructed AlarmListener must report that it is not running.
Definition at line 213 of file test_alarmListener.cpp.
| profinet::TEST_F | ( | AlarmListenerTests | , |
| IsRunningReflectsState | |||
| ) |
A Layer 2 listener is started with an injected mock socket so that the test does not create a production raw Ethernet socket or require elevated privileges. The mock receive operation returns immediately, allowing the listener thread to be stopped deterministically.
Definition at line 226 of file test_alarmListener.cpp.
References ioContext.
| profinet::TEST_F | ( | AlarmListenerTests | , |
| RemoveCallback | |||
| ) |
Registers a plain function pointer and verifies that RemoveCallback removes the matching callback from the listener.
Definition at line 168 of file test_alarmListener.cpp.
References profinet::AlarmListenerTestAccess::CallbackCount().
Here is the call graph for this function:| profinet::TEST_F | ( | AlarmListenerTests | , |
| RemoveEmptyCallbackDoesNothing | |||
| ) |
Passing an empty std::function to RemoveCallback must be ignored and must not modify the callback collection.
Definition at line 196 of file test_alarmListener.cpp.
References profinet::AlarmListenerTestAccess::CallbackCount().
Here is the call graph for this function:| profinet::TEST_F | ( | AlarmListenerTests | , |
| RemoveNonexistentCallbackDoesNotThrow | |||
| ) |
RemoveCallback must be a no-op when the requested callback does not exist and must not throw an exception.
Definition at line 184 of file test_alarmListener.cpp.
References profinet::AlarmListenerTestAccess::CallbackCount().
Here is the call graph for this function:| profinet::TEST_F | ( | AlarmListenerTests | , |
| StartAfterFailedStartSucceeds | |||
| ) |
Definition at line 295 of file test_alarmListener.cpp.
| profinet::TEST_F | ( | AlarmListenerTests | , |
| StopIsIdempotent | |||
| ) |
Definition at line 313 of file test_alarmListener.cpp.
| profinet::TEST_F | ( | AlarmListenerUdpTest | , |
| IgnoresTooShortUdpPayload | |||
| ) |
Definition at line 210 of file test_alarmListenerUdp.cpp.
References profinet::UdpDatagram::data, RECEIVE_BUFFER_LENGTH, and profinet::UdpDatagram::source.
| profinet::TEST_F | ( | AlarmListenerUdpTest | , |
| ReceivesAlarmAndSendsAckToSource | |||
| ) |
Definition at line 135 of file test_alarmListenerUdp.cpp.
References profinet::UdpDatagram::data, profinet::PNAlarmAckPDU::kSize, RECEIVE_BUFFER_LENGTH, profinet::AlarmNotification::slotNumber, profinet::UdpDatagram::source, and profinet::AlarmNotification::subslotNumber.
| profinet::TEST_F | ( | AlarmListenerUdpTest | , |
| StartWhileRunningDoesNothing | |||
| ) |
Definition at line 260 of file test_alarmListenerUdp.cpp.
References RECEIVE_BUFFER_LENGTH.
| profinet::TEST_F | ( | AlarmListenerUdpTest | , |
| StopBeforeStartIsSafe | |||
| ) |
Definition at line 283 of file test_alarmListenerUdp.cpp.
| profinet::TEST_F | ( | AlarmNotificationTest | , |
| ArDiagnosisIsBit14 | |||
| ) |
Definition at line 142 of file test_alarmNotification.cpp.
References ParseAlarmNotification().
Here is the call graph for this function:| profinet::TEST_F | ( | AlarmNotificationTest | , |
| ChannelDiagnosisItemIsDecoded | |||
| ) |
Definition at line 109 of file test_alarmNotification.cpp.
References ParseAlarmNotification().
Here is the call graph for this function:| profinet::TEST_F | ( | AlarmNotificationTest | , |
| EthernetPaddingIsNotParsedAsItems | |||
| ) |
Ethernet transmitters pad short frames to the minimum frame size. Parsing must be bounded by the AlarmNotification BlockLength rather than by the total Ethernet frame size.
Definition at line 128 of file test_alarmNotification.cpp.
References ParseAlarmNotification().
Here is the call graph for this function:| profinet::TEST_F | ( | AlarmNotificationTest | , |
| ItemLessAlarmIsAccepted | |||
| ) |
Definition at line 95 of file test_alarmNotification.cpp.
References ParseAlarmNotification().
Here is the call graph for this function:| profinet::TEST_F | ( | AlarmNotificationTest | , |
| ReservedBit15IsNotArDiagnosis | |||
| ) |
Definition at line 150 of file test_alarmNotification.cpp.
References ParseAlarmNotification().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| AllStandardIndicesContainsAllStandardCategories | |||
| ) |
Definition at line 545 of file test_indices.cpp.
References AllStandardIndices().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| CriticalIndicesReturnsExpectedEntries | |||
| ) |
Definition at line 473 of file test_indices.cpp.
References AR_DATA, CriticalIndices(), DIAG_DEVICE, IM0, IM0_FILTER_DATA, LOG_DATA, MODULE_DIFF_BLOCK, and PD_REAL_DATA.
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| DeviceIndicesReturnsExpectedEntries | |||
| ) |
Definition at line 529 of file test_indices.cpp.
References API_DATA, AR_DATA, AUTO_CONFIG, DeviceIndices(), LOG_DATA, PD_EXPECTED_DATA, PD_REAL_DATA, and PDEV_DATA.
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| DiagnosisIndicesReturnsApiTable | |||
| ) |
Definition at line 443 of file test_indices.cpp.
References DIAG_ALL_API, DIAG_CHANNEL_API, DIAG_MAINTENANCE_API, and DiagnosisIndices().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| DiagnosisIndicesReturnsArTable | |||
| ) |
Definition at line 431 of file test_indices.cpp.
References DIAG_ALL_AR, DIAG_CHANNEL_AR, DIAG_MAINTENANCE_AR, and DiagnosisIndices().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| DiagnosisIndicesReturnsDeviceTable | |||
| ) |
Definition at line 455 of file test_indices.cpp.
References DIAG_DEVICE, and DiagnosisIndices().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| DiagnosisIndicesReturnsEmptyTableForUnknownScopes | |||
| ) |
Definition at line 465 of file test_indices.cpp.
References DiagnosisIndices().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| DiagnosisIndicesReturnsSlotTable | |||
| ) |
Definition at line 419 of file test_indices.cpp.
References DIAG_ALL_SLOT, DIAG_CHANNEL_SLOT, DIAG_MAINTENANCE_SLOT, and DiagnosisIndices().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| DiagnosisIndicesReturnsSubslotTable | |||
| ) |
Definition at line 407 of file test_indices.cpp.
References DIAG_ALL_SUBSLOT, DIAG_CHANNEL_SUBSLOT, DIAG_MAINTENANCE_SUBSLOT, and DiagnosisIndices().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| GetAlarmTypeNameFallsBackForUnknownType | |||
| ) |
Definition at line 242 of file test_indices.cpp.
References GetAlarmTypeName().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| GetAlarmTypeNameResolvesEveryKnownAlarmType | |||
| ) |
Definition at line 214 of file test_indices.cpp.
References ControlledBySupervisor, DfpProblem, Diagnosis, DiagnosisDisappears, IsochronousModeProblem, MulticastMismatch, NetworkComponentProblem, Plug, PlugWrongSubmodule, PortDataChange, Process, Pull, PullModule, Redundancy, Released, ReturnOfSubmodule, Status, SyncDataChanged, TimeDataChanged, Update, and UploadRetrieval.
| profinet::TEST_F | ( | IndicesTest | , |
| GetBlockTypeNameFallsBackForUnknownTypes | |||
| ) |
Definition at line 208 of file test_indices.cpp.
References GetBlockTypeName().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| GetBlockTypeNameResolvesEveryKnownBlockType | |||
| ) |
Definition at line 132 of file test_indices.cpp.
References AlarmAcknowledgementHigh, AlarmAcknowledgementLow, AlarmCrRequest, AlarmCrResponse, AlarmNotificationHigh, AlarmNotificationLow, ApiData, ApplicationRelationData, ApplicationRelationRequest, ApplicationRelationResponse, ApplicationRelationServer, ContainerContent, ControlApplicationReadyRequest, ControlApplicationReadyResponse, ControlPrmEndRequest, ControlPrmEndResponse, ControlRtClass3Request, ControlRtClass3Response, DiagnosisData, ExpectedIdentificationData, ExpectedProcessData, ExpectedSubmoduleRequest, IdentificationMaintenance0, IdentificationMaintenance1, IdentificationMaintenance10, IdentificationMaintenance11, IdentificationMaintenance12, IdentificationMaintenance13, IdentificationMaintenance14, IdentificationMaintenance15, IdentificationMaintenance2, IdentificationMaintenance3, IdentificationMaintenance4, IdentificationMaintenance5, IdentificationMaintenance6, IdentificationMaintenance7, IdentificationMaintenance8, IdentificationMaintenance9, InterfaceMrpDataAdjust, InterfaceMrpDataReal, IoCrRequest, IoCrResponse, IoDataReadRequest, IoDataReadResponse, IoDataWriteRequest, IoDataWriteResponse, LogData, ModuleDifference, MrpRingStateData, MultipleHeader, ParameterizationBeginRequest, ParameterizationBeginResponse, PortDataAdjust, PortDataCheck, PortDataInterfaceDataReal, PortDataReal, PortDataRealExtended, PortFoDataAdjust, PortFoDataCheck, PortFoDataReal, PortMrpDataReal, PortStatistics, RealIdentificationData, RealIdentificationDataApi, RealProcessData, ReleaseRequest, ReleaseResponse, SrlData, and SubmoduleList.
| profinet::TEST_F | ( | IndicesTest | , |
| GetIndexNameClassifiesUnregisteredApiIndices | |||
| ) |
Definition at line 672 of file test_indices.cpp.
| profinet::TEST_F | ( | IndicesTest | , |
| GetIndexNameClassifiesUnregisteredArIndices | |||
| ) |
Definition at line 663 of file test_indices.cpp.
| profinet::TEST_F | ( | IndicesTest | , |
| GetIndexNameClassifiesUnregisteredDeviceIndices | |||
| ) |
Definition at line 681 of file test_indices.cpp.
| profinet::TEST_F | ( | IndicesTest | , |
| GetIndexNameClassifiesUnregisteredImIndices | |||
| ) |
Definition at line 634 of file test_indices.cpp.
| profinet::TEST_F | ( | IndicesTest | , |
| GetIndexNameClassifiesUnregisteredSlotIndices | |||
| ) |
Definition at line 654 of file test_indices.cpp.
| profinet::TEST_F | ( | IndicesTest | , |
| GetIndexNameClassifiesUnregisteredSubslotIndices | |||
| ) |
Definition at line 644 of file test_indices.cpp.
| profinet::TEST_F | ( | IndicesTest | , |
| GetIndexNameClassifiesUserSpecificIndices | |||
| ) |
Definition at line 624 of file test_indices.cpp.
| profinet::TEST_F | ( | IndicesTest | , |
| GetIndexNameResolvesAllStandardCategories | |||
| ) |
Definition at line 590 of file test_indices.cpp.
References API_DATA, AR_DATA, AUTO_CONFIG, DIAG_ALL_SUBSLOT, DIAG_CHANNEL_SUBSLOT, DIAG_DEVICE, DIAG_MAINTENANCE_SUBSLOT, EXPECTED_ID_SUBSLOT, IM0, IM15, LOG_DATA, MODULE_DIFF_BLOCK, PD_EXPECTED_DATA, PD_INTERFACE_DATA_REAL, PD_INTERFACE_MRP_DATA_REAL, PD_NC_DATA_CHECK, PD_PORT_DATA_ADJUST, PD_PORT_DATA_CHECK, PD_PORT_DATA_REAL, PD_PORT_MRP_DATA_REAL, PD_PORT_STATISTIC, PD_REAL_DATA, PDEV_DATA, REAL_ID_SUBSLOT, RECORD_INPUT_DATA, RECORD_OUTPUT_DATA, and SUBSTITUTE_VALUES.
| profinet::TEST_F | ( | IndicesTest | , |
| GetIndexNameReturnsUnknownForUnclassifiedIndices | |||
| ) |
Definition at line 690 of file test_indices.cpp.
| profinet::TEST_F | ( | IndicesTest | , |
| GetIocrRtClassNameFallsBackForUnknownType | |||
| ) |
Definition at line 271 of file test_indices.cpp.
References GetIocrRtClassName().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| GetIocrRtClassNameResolvesUdp | |||
| ) |
Definition at line 265 of file test_indices.cpp.
References GetIocrRtClassName(), and Udp.
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| GetIocrTypeNameFallsBackForUnknownType | |||
| ) |
Definition at line 259 of file test_indices.cpp.
References GetIocrTypeName().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| GetIocrTypeNameResolvesEveryKnownType | |||
| ) |
Definition at line 248 of file test_indices.cpp.
References Input, MulticastConsumer, MulticastProvider, and Output.
| profinet::TEST_F | ( | IndicesTest | , |
| GetModuleStateNameFallsBackForUnknownState | |||
| ) |
Definition at line 338 of file test_indices.cpp.
References GetModuleStateName().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| GetModuleStateNameResolvesEveryKnownState | |||
| ) |
Definition at line 327 of file test_indices.cpp.
References MODULE_STATE_NO_MODULE, MODULE_STATE_PROPER_MODULE, MODULE_STATE_SUBSTITUTE_MODULE, and MODULE_STATE_WRONG_MODULE.
| profinet::TEST_F | ( | IndicesTest | , |
| GetPeModeNameResolvesEnergySavingRange | |||
| ) |
Definition at line 373 of file test_indices.cpp.
References GetPeModeName(), Hex2(), PE_MODE_ENERGY_SAVING_MAX, and PE_MODE_ENERGY_SAVING_MIN.
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| GetPeModeNameResolvesFixedModes | |||
| ) |
Definition at line 362 of file test_indices.cpp.
References PE_MODE_OPERATE, PE_MODE_POWER_OFF, PE_MODE_READY_TO_OPERATE, and PE_MODE_SLEEP_MODE_WOL.
| profinet::TEST_F | ( | IndicesTest | , |
| GetPeModeNameReturnsReservedForValueBetweenEnergySavingAndOperate | |||
| ) |
Definition at line 382 of file test_indices.cpp.
References GetPeModeName().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| GetPeModeNameReturnsReservedForValueBetweenOperateAndSleepMode | |||
| ) |
Definition at line 388 of file test_indices.cpp.
References GetPeModeName().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| GetPeModeNameReturnsReservedForValueBetweenSleepModeAndReadyToOperate | |||
| ) |
Definition at line 394 of file test_indices.cpp.
References GetPeModeName(), Hex2(), and PE_MODE_ENERGY_SAVING_MAX.
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| GetScopeClassifiesAllSupportedScopes | |||
| ) |
Definition at line 701 of file test_indices.cpp.
| profinet::TEST_F | ( | IndicesTest | , |
| GetScopeReturnsUnknownForUnclassifiedRanges | |||
| ) |
Definition at line 722 of file test_indices.cpp.
| profinet::TEST_F | ( | IndicesTest | , |
| GetSubmoduleStateNameFallsBackForUnknownState | |||
| ) |
Definition at line 356 of file test_indices.cpp.
References GetSubmoduleStateName().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| GetSubmoduleStateNameResolvesEveryKnownState | |||
| ) |
Definition at line 344 of file test_indices.cpp.
References SUBMODULE_STATE_APPLICATION_READY_PENDING, SUBMODULE_STATE_LOCKED_BY_SUPERVISOR, SUBMODULE_STATE_NO_SUBMODULE, SUBMODULE_STATE_OK, and SUBMODULE_STATE_WRONG_SUBMODULE.
| profinet::TEST_F | ( | IndicesTest | , |
| GetUsiNameClassifiesManufacturerSpecificValues | |||
| ) |
Definition at line 296 of file test_indices.cpp.
| profinet::TEST_F | ( | IndicesTest | , |
| GetUsiNameClassifiesProfileSpecificValues | |||
| ) |
Definition at line 306 of file test_indices.cpp.
| profinet::TEST_F | ( | IndicesTest | , |
| GetUsiNameClassifiesReservedValues | |||
| ) |
Definition at line 316 of file test_indices.cpp.
| profinet::TEST_F | ( | IndicesTest | , |
| GetUsiNameResolvesEveryKnownUsi | |||
| ) |
Definition at line 277 of file test_indices.cpp.
References ChannelDiagnosis, ExtendedChannelDiagnosis, IParameter, Maintenance, MultipleDiagnosis, PeAlarm, PralAlarm, QualifiedChannelDiagnosis, RsAlarmHigh, RsAlarmLow, RsAlarmSubmodule, and Upload.
| profinet::TEST_F | ( | IndicesTest | , |
| ImIndicesReturnsAllImEntries | |||
| ) |
Definition at line 489 of file test_indices.cpp.
References IM0, and ImIndices().
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| InterfaceIndicesReturnsExpectedEntries | |||
| ) |
Definition at line 517 of file test_indices.cpp.
References InterfaceIndices(), PD_INTERFACE_DATA_REAL, PD_INTERFACE_MRP_DATA_REAL, and PD_NC_DATA_CHECK.
Here is the call graph for this function:| profinet::TEST_F | ( | IndicesTest | , |
| PortIndicesReturnsExpectedEntries | |||
| ) |
Definition at line 503 of file test_indices.cpp.
References PD_PORT_DATA_ADJUST, PD_PORT_DATA_CHECK, PD_PORT_DATA_REAL, PD_PORT_MRP_DATA_REAL, PD_PORT_STATISTIC, and PortIndices().
Here is the call graph for this function:| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmArErrorArUuidConflict | |||
| ) |
Definition at line 1158 of file test_exceptions.cpp.
References ArUuidConflict, and GetPnioCmErrorMessage().
Here is the call graph for this function:| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmArErrorInvalidSessionKey | |||
| ) |
Definition at line 1152 of file test_exceptions.cpp.
References GetPnioCmErrorMessage(), and InvalidSessionKey.
Here is the call graph for this function:| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmArErrorNoAlarmResources | |||
| ) |
Definition at line 1140 of file test_exceptions.cpp.
References GetPnioCmErrorMessage(), and NoAlarmResources.
Here is the call graph for this function:| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmArErrorNoArResources | |||
| ) |
Definition at line 1122 of file test_exceptions.cpp.
References GetPnioCmErrorMessage(), and NoArResources.
Here is the call graph for this function:| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmArErrorNoConsumerResources | |||
| ) |
Definition at line 1134 of file test_exceptions.cpp.
References GetPnioCmErrorMessage(), and NoConsumerResources.
Here is the call graph for this function:| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmArErrorNoMemory | |||
| ) |
Definition at line 1146 of file test_exceptions.cpp.
References GetPnioCmErrorMessage(), and NoMemory.
Here is the call graph for this function:| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmArErrorNoProviderResources | |||
| ) |
Definition at line 1128 of file test_exceptions.cpp.
References GetPnioCmErrorMessage(), and NoProviderResources.
Here is the call graph for this function:| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmArErrorUnknownCode2 | |||
| ) |
Definition at line 1164 of file test_exceptions.cpp.
References GetPnioCmErrorMessage().
Here is the call graph for this function:| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmErrorAlarmCr | |||
| ) |
Definition at line 1181 of file test_exceptions.cpp.
References AlarmCr.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmErrorAlarmCrResponse | |||
| ) |
Definition at line 1187 of file test_exceptions.cpp.
References AlarmCrResponse.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmErrorAr | |||
| ) |
Definition at line 1098 of file test_exceptions.cpp.
References Ar.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmErrorArActive | |||
| ) |
Definition at line 1110 of file test_exceptions.cpp.
References Ar.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmErrorArActiveResponse | |||
| ) |
Definition at line 1116 of file test_exceptions.cpp.
References ArResponse.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmErrorArResponse | |||
| ) |
Definition at line 1104 of file test_exceptions.cpp.
References ArResponse.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmErrorDevice | |||
| ) |
Definition at line 1199 of file test_exceptions.cpp.
References CmDev.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmErrorExpectedSubmodule | |||
| ) |
Definition at line 1193 of file test_exceptions.cpp.
References ExpectedSubmodule.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmErrorFaultyBlock | |||
| ) |
Definition at line 1205 of file test_exceptions.cpp.
References FaultyBlock.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmErrorIocr | |||
| ) |
Definition at line 1169 of file test_exceptions.cpp.
References Iocr.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmErrorIocrResponse | |||
| ) |
Definition at line 1175 of file test_exceptions.cpp.
References IocrResponse.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioCmErrorUnknownCode1 | |||
| ) |
Definition at line 1211 of file test_exceptions.cpp.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioErrorPrmServer | |||
| ) |
Definition at line 1223 of file test_exceptions.cpp.
References PrmServer.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioErrorRmpm | |||
| ) |
Definition at line 1217 of file test_exceptions.cpp.
References Rmpm.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioErrorUnknownCode1 | |||
| ) |
Definition at line 1229 of file test_exceptions.cpp.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioRwErrorAccess | |||
| ) |
Definition at line 1252 of file test_exceptions.cpp.
References Access.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioRwErrorApplication | |||
| ) |
Definition at line 1258 of file test_exceptions.cpp.
References Application.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioRwErrorInvalidIndex | |||
| ) |
Definition at line 1234 of file test_exceptions.cpp.
References InvalidIndex.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioRwErrorResource | |||
| ) |
Definition at line 1246 of file test_exceptions.cpp.
References Resource.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioRwErrorUnknownCode1 | |||
| ) |
Definition at line 1264 of file test_exceptions.cpp.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DecodePnioRwErrorWriteLength | |||
| ) |
Definition at line 1240 of file test_exceptions.cpp.
References WriteLength.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioCmAlarmCr | |||
| ) |
Definition at line 873 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioCmAlarmCrResponse | |||
| ) |
Definition at line 885 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioCmAr | |||
| ) |
Definition at line 821 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioCmArResponse | |||
| ) |
Definition at line 837 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioCmDevice | |||
| ) |
Definition at line 909 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioCmExpectedSubmodule | |||
| ) |
Definition at line 897 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioCmFaultyBlock | |||
| ) |
Definition at line 921 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioCmIocr | |||
| ) |
Definition at line 849 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioCmIocrResponse | |||
| ) |
Definition at line 861 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioCmPreservesRawCodes | |||
| ) |
Definition at line 1053 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioCmUnknownErrorCode1 | |||
| ) |
Definition at line 933 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioPreservesRawCodes | |||
| ) |
Definition at line 1083 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioPrmServer | |||
| ) |
Definition at line 957 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioRmpm | |||
| ) |
Definition at line 945 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioRwAccess | |||
| ) |
Definition at line 1017 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioRwApplication | |||
| ) |
Definition at line 1029 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioRwInvalidIndex | |||
| ) |
Definition at line 981 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioRwPreservesRawCodes | |||
| ) |
Definition at line 1068 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioRwResource | |||
| ) |
Definition at line 1005 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioRwUnknownErrorCode1 | |||
| ) |
Definition at line 1041 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioRwWriteLength | |||
| ) |
Definition at line 993 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | PNIOErrorDirectTests | , |
| DirectCreateFromCodesPnioUnknownErrorCode1 | |||
| ) |
Definition at line 969 of file test_exceptions.cpp.
References error.
| profinet::TEST_F | ( | RtaErrorTests | , |
| IgnoresEthernetPaddingAfterStatus | |||
| ) |
Definition at line 942 of file test_alarmListenerRta.cpp.
References error, and ParseRtaError().
Here is the call graph for this function:| profinet::TEST_F | ( | RtaErrorTests | , |
| NonRtaStatusIsNotProtocolError | |||
| ) |
Definition at line 1004 of file test_alarmListenerRta.cpp.
References error, and ParseRtaError().
Here is the call graph for this function:| profinet::TEST_F | ( | RtaErrorTests | , |
| ParsesAumaReleaseIndReceivedError | |||
| ) |
Definition at line 915 of file test_alarmListenerRta.cpp.
References error, and ParseRtaError().
Here is the call graph for this function:| profinet::TEST_F | ( | RtaErrorTests | , |
| RejectsNonErrRtaPdu | |||
| ) |
Definition at line 955 of file test_alarmListenerRta.cpp.
References ParseRtaError(), profinet::PNRTAHeader::payload, profinet::PNRTAHeader::pduType, profinet::PNRTAHeader::RTA_TYPE_DATA, profinet::PNRTAHeader::variablePartLenght, and profinet::PNRTAHeader::VERSION_1.
Here is the call graph for this function:| profinet::TEST_F | ( | RtaErrorTests | , |
| RejectsTruncatedStatus | |||
| ) |
Definition at line 979 of file test_alarmListenerRta.cpp.
References ParseRtaError(), profinet::PNRTAHeader::payload, profinet::PNRTAHeader::pduType, profinet::PNRTAHeader::RTA_TYPE_ERR, profinet::PNRTAHeader::variablePartLenght, and profinet::PNRTAHeader::VERSION_1.
Here is the call graph for this function:| profinet::TEST_F | ( | RtaErrorTests | , |
| RejectsWrongVariablePartLength | |||
| ) |
Definition at line 967 of file test_alarmListenerRta.cpp.
References ParseRtaError(), profinet::PNRTAHeader::payload, profinet::PNRTAHeader::pduType, profinet::PNRTAHeader::RTA_TYPE_ERR, profinet::PNRTAHeader::variablePartLenght, and profinet::PNRTAHeader::VERSION_1.
Here is the call graph for this function:| profinet::TEST_F | ( | RtaErrorTests | , |
| SequenceErrorIsNotAbort | |||
| ) |
Definition at line 991 of file test_alarmListenerRta.cpp.
References error, and ParseRtaError().
Here is the call graph for this function:| profinet::TEST_F | ( | SkipVlanTagsTest | , |
| DoubleTaggedQinQFrameReturnsOffset20 | |||
| ) |
Definition at line 78 of file test_skipVlanTags.cpp.
References frame, and SkipVlanTags().
Here is the call graph for this function:| profinet::TEST_F | ( | SkipVlanTagsTest | , |
| ShortFrameReturnsEthernetHeaderLength | |||
| ) |
Definition at line 97 of file test_skipVlanTags.cpp.
References frame, and SkipVlanTags().
Here is the call graph for this function:| profinet::TEST_F | ( | SkipVlanTagsTest | , |
| Single8021QTagReturnsOffset16 | |||
| ) |
Definition at line 68 of file test_skipVlanTags.cpp.
References frame, and SkipVlanTags().
Here is the call graph for this function:| profinet::TEST_F | ( | SkipVlanTagsTest | , |
| UntaggedFrameReturnsOffset12 | |||
| ) |
Definition at line 61 of file test_skipVlanTags.cpp.
References frame, and SkipVlanTags().
Here is the call graph for this function:| profinet::TEST_P | ( | RtaErrorsTests | , |
| EveryDefinedReasonIsDecoded | |||
| ) |
Definition at line 1035 of file test_alarmListenerRta.cpp.
References error, ParseRtaError(), profinet::PNRTAHeader::payload, profinet::PNRTAHeader::pduType, profinet::PNRTAHeader::RTA_TYPE_ERR, profinet::PNRTAHeader::variablePartLenght, and profinet::PNRTAHeader::VERSION_1.
Here is the call graph for this function:| std::string profinet::ToHex | ( | const std::uint8_t * | data, |
| std::size_t | len | ||
| ) |
Hex-encode a byte buffer.
| data | Pointer to the first byte to encode. |
| len | Number of bytes to encode. |
Definition at line 104 of file util.cpp.
Referenced by profinet::dcp::DCPDHCPBlock::Parse(), TEST(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), TEST_F(), ToHex(), profinet::dcp::DCPDeviceDescription::ToString(), and profinet::rpc::UuidBytesToString().
Here is the caller graph for this function:| std::string profinet::ToHex | ( | const std::vector< std::uint8_t > & | data | ) |
| std::vector< std::uint8_t > profinet::ToVec | ( | const std::string & | input | ) |
Convert a string into a vector of raw bytes.
| input | The input string containing the data to convert. |
Definition at line 54 of file util.cpp.
Referenced by profinet::dcp::BuildSetParamRequest(), profinet::dcp::SendHello(), and TEST_F().
Here is the caller graph for this function:| std::string profinet::UsiNameOf | ( | const AlarmItemVariant & | item | ) |
Get the human-readable USI name for any AlarmItemVariant alternative.
| item | The alarm item to inspect. |
Definition at line 19 of file alarms.cpp.
| Usi profinet::UsiOf | ( | const AlarmItemVariant & | item | ) |
Get the USI shared by every AlarmItemVariant alternative.
| item | The alarm item to inspect. |
Definition at line 13 of file alarms.cpp.
|
inlineconstexpr |
|
inlineconstexpr |
UDP port used for alarm transport when Transport == 1.
Definition at line 42 of file alarmListener.h.
Referenced by profinet::AlarmListener::Start().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
API Data.
Definition at line 811 of file indices.h.
Referenced by DeviceIndices(), TEST_F(), and TEST_F().
|
inlineconstexpr |
AR Data.
Definition at line 809 of file indices.h.
Referenced by CriticalIndices(), DeviceIndices(), TEST_F(), TEST_F(), and TEST_F().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Auto Config.
Definition at line 819 of file indices.h.
Referenced by DeviceIndices(), TEST_F(), and TEST_F().
|
inlineconstexpr |
Constant lenght of a blockHeader.
Definition at line 58 of file protocol.h.
Referenced by profinet::rpc::RPCCon::ApplicationReady(), profinet::rpc::RPCCon::BuildAlarmCrBlock(), TestRpcDevice::BuildApplicationReadyRequestPayload(), TestRpcDevice::BuildControlRequestPayload(), profinet::rpc::RPCCon::Connect(), profinet::rpc::RPCCon::Disconnect(), TestRpcDevice::HandleConnect(), profinet::PNIODHeader::Parse(), profinet::PNARBlockRequest::Parse(), profinet::PNIODReleaseBlock::Parse(), profinet::PNInM0::Parse(), profinet::PNInM1::Parse(), profinet::PNInM2::Parse(), profinet::PNInM3::Parse(), profinet::PNInM4::Parse(), profinet::PNInM5::Parse(), profinet::PNInMReserved< Idx >::Parse(), profinet::PNIOCRBlockRes::Parse(), profinet::PNIOCRBlockReqHeader::Parse(), profinet::PNAlarmCRBlockReq::Parse(), profinet::PNAlarmCRBlockRes::Parse(), profinet::PNAlarmNotificationPDU::Parse(), profinet::PNIODWriteRes::Parse(), profinet::rpc::RPCCon::ParseAlarmCrResponse(), ParseAlarmNotification(), profinet::blocks::ParseBlockHeader(), profinet::diagnosis::ParseDiagnosisSimple(), profinet::rpc::RPCCon::ParseIocrResponse(), profinet::blocks::ParseModuleDiffBlock(), profinet::blocks::ParsePdRealData(), profinet::blocks::ParseRealIdentificationData(), profinet::rpc::RPCCon::Read(), profinet::rpc::RPCCon::ReadImplicit(), profinet::AlarmListener::SendAck(), profinet::rpc::RPCCon::SendControl(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::RPCCon::Write(), and profinet::rpc::RPCCon::WriteMultiple().
|
inlineconstexpr |
DIAG All API.
Definition at line 765 of file indices.h.
Referenced by DiagnosisIndices(), and TEST_F().
|
inlineconstexpr |
DIAG All AR.
Definition at line 758 of file indices.h.
Referenced by DiagnosisIndices(), and TEST_F().
|
inlineconstexpr |
DIAG All Slot.
Definition at line 751 of file indices.h.
Referenced by DiagnosisIndices(), and TEST_F().
|
inlineconstexpr |
DIAG All Subslot.
Definition at line 744 of file indices.h.
Referenced by DiagnosisIndices(), TEST_F(), and TEST_F().
|
inlineconstexpr |
DIAG Channel API.
Definition at line 763 of file indices.h.
Referenced by DiagnosisIndices(), and TEST_F().
|
inlineconstexpr |
DIAG Channel AR.
Definition at line 756 of file indices.h.
Referenced by DiagnosisIndices(), and TEST_F().
|
inlineconstexpr |
DIAG Channel Slot.
Definition at line 749 of file indices.h.
Referenced by DiagnosisIndices(), and TEST_F().
|
inlineconstexpr |
DIAG Channel Subslot.
Definition at line 742 of file indices.h.
Referenced by DiagnosisIndices(), TEST_F(), and TEST_F().
|
inlineconstexpr |
DIAG Device.
Definition at line 770 of file indices.h.
Referenced by CriticalIndices(), DiagnosisIndices(), TEST_F(), TEST_F(), and TEST_F().
|
inlineconstexpr |
DIAG Maintenance API.
Definition at line 767 of file indices.h.
Referenced by DiagnosisIndices(), and TEST_F().
|
inlineconstexpr |
DIAG Maintenance AR.
Definition at line 760 of file indices.h.
Referenced by DiagnosisIndices(), and TEST_F().
|
inlineconstexpr |
DIAG Maintenance Slot.
Definition at line 753 of file indices.h.
Referenced by DiagnosisIndices(), and TEST_F().
|
inlineconstexpr |
DIAG Maintenance Subslot.
Definition at line 746 of file indices.h.
Referenced by DiagnosisIndices(), TEST_F(), and TEST_F().
|
inlineconstexpr |
EtherType used by PROFINET RTA frames (0x8892).
Definition at line 40 of file alarmListener.h.
Referenced by profinet::AlarmListener::HandleLayer2Frame(), profinet::AlarmListener::SendRtaFrame(), and profinet::AlarmListener::Start().
|
inlineconstexpr |
|
inlineconstexpr |
Expected ID Subslot.
Definition at line 794 of file indices.h.
Referenced by AllStandardIndices(), profinet::rpc::RPCCon::EnumerateIndices(), and TEST_F().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Frame ID used for high-priority alarms.
Definition at line 36 of file alarmListener.h.
Referenced by profinet::AlarmListener::HandleLayer2Frame(), profinet::AlarmListener::SendRtaFrame(), TEST(), and TEST_F().
|
inlineconstexpr |
Frame ID used for low-priority alarms.
Definition at line 38 of file alarmListener.h.
Referenced by profinet::AlarmListener::HandleLayer2Frame(), profinet::AlarmListener::SendRtaFrame(), TEST(), TEST_F(), TEST_F(), and TEST_F().
|
inlineconstexpr |
I&M0.
Definition at line 701 of file indices.h.
Referenced by CriticalIndices(), ImIndices(), TEST_F(), TEST_F(), and TEST_F().
|
inlineconstexpr |
I&M0 Filter Data.
Definition at line 733 of file indices.h.
Referenced by CriticalIndices(), and TEST_F().
|
inlineconstexpr |
I&M1.
Definition at line 703 of file indices.h.
Referenced by ImIndices(), profinet::device::TEST_F(), and profinet::device::ProfinetDevice::WriteIm1().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
I&M2.
Definition at line 705 of file indices.h.
Referenced by ImIndices(), profinet::device::TEST_F(), and profinet::device::ProfinetDevice::WriteIm2().
|
inlineconstexpr |
I&M3.
Definition at line 707 of file indices.h.
Referenced by ImIndices(), profinet::device::TEST_F(), and profinet::device::ProfinetDevice::WriteIm3().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
EtherType value identifying IP frames (0x8000).
Definition at line 32 of file util.h.
Referenced by profinet::rpc::RPCCon::BuildAlarmCrBlock(), profinet::rpc::TEST_F(), and profinet::rpc::TEST_F().
|
inlineconstexpr |
|
constexpr |
Definition at line 13 of file stubRpcTransport.h.
Referenced by profinet::cyclic::CyclicDataTests::DeliverInput(), profinet::cyclic::CyclicCallbackTests::DeliverInput(), profinet::cyclic::CyclicStateTests::MakeController(), profinet::cyclic::CyclicStatsTests::MakeController(), profinet::cyclic::CyclicFrameTests::ProcessCounter(), profinet::StubRpcTransport::SendReceive(), profinet::cyclic::CyclicDataTests::SetUp(), profinet::cyclic::CyclicCallbackTests::SetUp(), profinet::cyclic::CyclicFrameTests::SetUp(), profinet::cyclic::CyclicWatchdogTests::SetUp(), profinet::cyclic::CyclicTxTests::SetUp(), profinet::CyclicCaptureTests::TEST(), profinet::CyclicCaptureTests::TEST(), profinet::CyclicCaptureTests::TEST(), profinet::CyclicCaptureTests::TEST(), profinet::CyclicCaptureTests::TEST(), profinet::CyclicCaptureTests::TEST(), TEST(), TEST(), profinet::cyclic::TEST_F(), profinet::cyclic::TEST_F(), profinet::cyclic::TEST_F(), profinet::cyclic::TEST_F(), and profinet::cyclic::TEST_F().
|
constexpr |
Definition at line 14 of file stubRpcTransport.h.
Referenced by profinet::cyclic::CyclicStateTests::MakeController(), profinet::cyclic::CyclicStatsTests::MakeController(), profinet::StubRpcTransport::SendReceive(), profinet::cyclic::CyclicDataTests::SetUp(), profinet::cyclic::CyclicCallbackTests::SetUp(), profinet::cyclic::CyclicFrameTests::SetUp(), profinet::cyclic::CyclicWatchdogTests::SetUp(), profinet::cyclic::CyclicTxTests::SetUp(), profinet::CyclicCaptureTests::TEST(), profinet::CyclicCaptureTests::TEST(), profinet::CyclicCaptureTests::TEST(), profinet::CyclicCaptureTests::TEST(), profinet::CyclicCaptureTests::TEST(), TEST(), TEST(), TEST(), profinet::cyclic::TEST_F(), profinet::cyclic::TEST_F(), and profinet::cyclic::TEST_F().
|
inlineconstexpr |
PROFINET UUID suffix, shared by all interface/object UUIDs.
Definition at line 855 of file protocol.h.
Referenced by profinet::rpc::BuildObjectUuid(), and profinet::PNRPCHeader::PrefixedUuid().
|
inlineconstexpr |
Log Data.
Definition at line 821 of file indices.h.
Referenced by CriticalIndices(), DeviceIndices(), TEST_F(), TEST_F(), and TEST_F().
|
inlineconstexpr |
Constant lenght of a mac address.
Definition at line 37 of file util.h.
Referenced by profinet::AlarmListener::HandleLayer2Frame(), profinet::EthernetHeader::Parse(), profinet::EthernetVLANHeader::Parse(), profinet::PNARBlockRequest::Parse(), profinet::PNIOCRBlockReqHeader::Parse(), profinet::device::ParseMac(), profinet::blocks::ParsePdInterfaceDataReal(), profinet::blocks::ParsePdPortDataReal(), profinet::cyclic::CyclicController::ProcessInputFrame(), profinet::dcp::SetIp(), SkipVlanTags(), String2Mac(), TEST(), TEST(), TEST(), TEST_F(), and TEST_F().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Maximum PROFINET Ethernet frame size in bytes (including VLAN tag headroom).
Definition at line 28 of file util.h.
Referenced by profinet::AsioEthernetSocket::EthernetPacketBackend::OpenCapture().
|
inlineconstexpr |
Module Diff Block.
Definition at line 803 of file indices.h.
Referenced by AllStandardIndices(), CriticalIndices(), profinet::rpc::RPCCon::EnumerateIndices(), profinet::rpc::RPCCon::ReadModuleDiff(), TEST_F(), TEST_F(), and profinet::rpc::TEST_F().
|
inlineconstexpr |
Module State No Module.
Definition at line 641 of file indices.h.
Referenced by GetModuleStateName(), and TEST_F().
|
inlineconstexpr |
Module State Proper Module.
Definition at line 645 of file indices.h.
Referenced by GetModuleStateName(), profinet::blocks::ModuleDiffModule::IsProper(), profinet::rpc::RpcTests::MakeModuleDiffPayload(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and profinet::device::TEST_F().
|
inlineconstexpr |
Module State Substitute Module.
Definition at line 647 of file indices.h.
Referenced by GetModuleStateName(), and TEST_F().
|
inlineconstexpr |
Module State Wrong Module.
Definition at line 643 of file indices.h.
Referenced by GetModuleStateName(), and TEST_F().
|
inlineconstexpr |
PD Expected Data.
Definition at line 817 of file indices.h.
Referenced by DeviceIndices(), TEST_F(), and TEST_F().
|
inlineconstexpr |
|
inlineconstexpr |
PD Interface Data Real.
Definition at line 853 of file indices.h.
Referenced by InterfaceIndices(), TEST_F(), and TEST_F().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
PD Interface MRP Data Real.
Definition at line 879 of file indices.h.
Referenced by InterfaceIndices(), TEST_F(), and TEST_F().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
PD NC Data Check.
Definition at line 849 of file indices.h.
Referenced by InterfaceIndices(), TEST_F(), and TEST_F().
|
inlineconstexpr |
PD Port Data Adjust.
Definition at line 838 of file indices.h.
Referenced by PortIndices(), TEST_F(), and TEST_F().
|
inlineconstexpr |
PD Port Data Check.
Definition at line 832 of file indices.h.
Referenced by PortIndices(), TEST_F(), and TEST_F().
|
inlineconstexpr |
PD Port Data Real.
Definition at line 830 of file indices.h.
Referenced by PortIndices(), TEST_F(), and TEST_F().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
PD Port MRP Data Real.
Definition at line 888 of file indices.h.
Referenced by PortIndices(), TEST_F(), and TEST_F().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
PD Port Statistic.
Definition at line 840 of file indices.h.
Referenced by PortIndices(), TEST_F(), and TEST_F().
|
inlineconstexpr |
PD Real Data.
Definition at line 815 of file indices.h.
Referenced by CriticalIndices(), DeviceIndices(), profinet::rpc::RPCCon::ReadPdRealData(), TEST_F(), TEST_F(), TEST_F(), profinet::rpc::TEST_F(), and profinet::rpc::TEST_F().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Pdev Data.
Definition at line 813 of file indices.h.
Referenced by DeviceIndices(), TEST_F(), and TEST_F().
|
inlineconstexpr |
PE Mode Energy Saving Max.
Definition at line 681 of file indices.h.
Referenced by GetPeModeName(), TEST_F(), and TEST_F().
|
inlineconstexpr |
PE Mode Energy Saving Min.
Definition at line 679 of file indices.h.
Referenced by GetPeModeName(), and TEST_F().
|
inlineconstexpr |
PE Mode Operate.
Definition at line 683 of file indices.h.
Referenced by GetPeModeName(), and TEST_F().
|
inlineconstexpr |
PE Mode Power Off.
Definition at line 677 of file indices.h.
Referenced by GetPeModeName(), and TEST_F().
|
inlineconstexpr |
PE Mode Ready To Operate.
Definition at line 687 of file indices.h.
Referenced by GetPeModeName(), and TEST_F().
|
inlineconstexpr |
PE Mode Sleep Mode WOL.
Definition at line 685 of file indices.h.
Referenced by GetPeModeName(), and TEST_F().
|
inlineconstexpr |
|
inlineconstexpr |
EtherType value identifying PROFINET frames (0x8892).
Definition at line 30 of file util.h.
Referenced by profinet::rpc::RPCCon::BuildAlarmCrBlock(), profinet::rpc::RPCCon::BuildIocrBlock(), profinet::rpc::RPCCon::Connect(), profinet::rpc::RpcTests::MakeDcpResponseFrame(), profinet::dcp::ParseSetResponse(), profinet::dcp::ReadResponse(), profinet::dcp::ReceiveHello(), profinet::dcp::RecvSetResponse(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), and profinet::rpc::TEST_F().
|
inlineconstexpr |
Real ID API.
Definition at line 806 of file indices.h.
Referenced by profinet::rpc::RPCCon::ReadRealIdentificationData(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), and profinet::rpc::TEST_F().
|
inlineconstexpr |
|
inlineconstexpr |
Real ID Subslot.
Definition at line 796 of file indices.h.
Referenced by AllStandardIndices(), profinet::rpc::RPCCon::EnumerateIndices(), and TEST_F().
|
inlineconstexpr |
Receive buffer length.
Definition at line 43 of file util.h.
Referenced by profinet::AlarmListener::HandleUdpFrame(), TestRpcDevice::Run(), TEST_F(), TEST_F(), and TEST_F().
|
inlineconstexpr |
Record Input Data.
Definition at line 918 of file indices.h.
Referenced by AllStandardIndices(), profinet::rpc::RPCCon::EnumerateIndices(), and TEST_F().
|
inlineconstexpr |
Record Output Data.
Definition at line 920 of file indices.h.
Referenced by AllStandardIndices(), profinet::rpc::RPCCon::EnumerateIndices(), and TEST_F().
|
inlineconstexpr |
Submodule State Application Ready Pending.
Definition at line 656 of file indices.h.
Referenced by GetSubmoduleStateName(), and TEST_F().
|
inlineconstexpr |
Submodule State Locked By Supervisor.
Definition at line 654 of file indices.h.
Referenced by GetSubmoduleStateName(), and TEST_F().
|
inlineconstexpr |
Submodule State No Submodule.
Definition at line 650 of file indices.h.
Referenced by GetSubmoduleStateName(), and TEST_F().
|
inlineconstexpr |
Submodule State Ok.
Definition at line 658 of file indices.h.
Referenced by GetSubmoduleStateName(), profinet::blocks::ModuleDiffSubmodule::IsOk(), profinet::rpc::RpcTests::MakeModuleDiffPayload(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and profinet::device::TEST_F().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Substitute Values.
Definition at line 916 of file indices.h.
Referenced by AllStandardIndices(), and TEST_F().
|
inlineconstexpr |
Constant lenght of a UUID.
Definition at line 40 of file util.h.
Referenced by profinet::rpc::RPCCon::EpmLookup(), profinet::rpc::RpcTests::MakeRawRpcHeader(), profinet::rpc::RpcTests::MakeWriteMultipleResponsePayload(), profinet::PNRPCHeader::Parse(), profinet::PNIODHeader::Parse(), profinet::PNARBlockRequest::Parse(), profinet::PNIODReleaseBlock::Parse(), profinet::PNIODWriteRes::Parse(), profinet::dcp::DCPDHCPBlock::Parse(), profinet::sim::VirtualProfinetRpcDevice::ParseArIdentity(), TestRpcDevice::ParseControlRequest(), TestRpcDevice::ParseControlResponse(), profinet::rpc::ParseEpmTower(), profinet::rpc::raw::ParseRawRpcHeader(), profinet::blocks::ParseWriteMultipleResponse(), profinet::rpc::StringToUuidBytes(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), profinet::rpc::TEST_F(), and profinet::rpc::TEST_F().
|
inlineconstexpr |
EtherType value identifying an 802.1Q VLAN tag (0x8100).
Definition at line 34 of file util.h.
Referenced by profinet::dcp::ParseSetResponse(), profinet::dcp::ReadResponse(), profinet::dcp::ReceiveHello(), profinet::dcp::RecvSetResponse(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), and profinet::dcp::TEST().