|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
One slot/subslot's placement within an IOCR's cyclic data frame. More...
#include <protocol.h>
Collaboration diagram for profinet::IOCRAPIObject:Public Member Functions | |
| Bytes | ToBytes () const |
| Serialize this object back to raw bytes. | |
Static Public Member Functions | |
| static IOCRAPIObject | Parse (const Bytes &data) |
| Parse an IOCR API object from raw bytes. | |
Public Attributes | |
| std::uint16_t | slotNumber = 0 |
| Slot number. | |
| std::uint16_t | subslotNumber = 0 |
| Subslot number. | |
| std::uint16_t | frameOffset = 0 |
| Byte offset of this object's data within the cyclic frame. | |
Static Public Attributes | |
| static constexpr std::size_t | kSize = 6 |
| Size in bytes of this object. | |
One slot/subslot's placement within an IOCR's cyclic data frame.
Definition at line 1895 of file protocol.h.
|
inlinestatic |
Parse an IOCR API object from raw bytes.
| data | Bytes starting at the SlotNumber field. |
Definition at line 1912 of file protocol.h.
References frameOffset, kSize, slotNumber, subslotNumber, and profinet::wire::Reader::U16().
Referenced by profinet::CyclicCaptureTests::TEST().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Serialize this object back to raw bytes.
Definition at line 1928 of file protocol.h.
References frameOffset, profinet::wire::PutU16(), slotNumber, and subslotNumber.
Here is the call graph for this function:| std::uint16_t profinet::IOCRAPIObject::frameOffset = 0 |
Byte offset of this object's data within the cyclic frame.
Definition at line 1904 of file protocol.h.
|
staticconstexpr |
Size in bytes of this object.
Definition at line 1907 of file protocol.h.
Referenced by Parse(), profinet::CyclicCaptureTests::TEST(), and TEST_F().
| std::uint16_t profinet::IOCRAPIObject::slotNumber = 0 |
| std::uint16_t profinet::IOCRAPIObject::subslotNumber = 0 |