|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
IODWriteReqHeader: request header for writing a data record. More...
#include <protocol.h>
Collaboration diagram for profinet::PNIODWriteReq:Public Member Functions | |
| Bytes | ToBytes () const |
| Serialize this block back to raw bytes. | |
Public Attributes | |
| std::array< std::uint8_t, blockHeaderLenght > | blockHeader {} |
| Nested 6-byte block header. | |
| std::uint16_t | seqNum = 0 |
| Sequence number for tracking retries. | |
| std::array< std::uint8_t, uuidLenght > | arUuid {} |
| AR UUID this record belongs to. | |
| std::uint32_t | api = 0 |
| API number. | |
| std::uint16_t | slot = 0 |
| Slot number. | |
| std::uint16_t | subslot = 0 |
| Subslot number. | |
| std::uint16_t | padding = 0 |
| Reserved/padding. | |
| std::uint16_t | index = 0 |
| Record data index being written. | |
| std::uint32_t | recordDataLength = 0 |
| Length in bytes of Payload. | |
| std::array< std::uint8_t, 24 > | rwPadding {} |
| Reserved/padding. | |
| Bytes | payload |
| Record data to write. | |
Static Public Attributes | |
| static constexpr std::uint16_t | BLOCK_TYPE = 0x0008 |
| Block type identifier for IODWriteReqHeader. | |
| static constexpr std::size_t | kFixedSize = 64 |
| Size in bytes of the fixed portion of this block. | |
IODWriteReqHeader: request header for writing a data record.
Definition at line 2038 of file protocol.h.
|
inline |
Serialize this block back to raw bytes.
Definition at line 2083 of file protocol.h.
References api, arUuid, blockHeader, index, padding, payload, profinet::wire::PutFixed(), profinet::wire::PutU16(), profinet::wire::PutU32(), recordDataLength, rwPadding, seqNum, slot, and subslot.
Here is the call graph for this function:| std::uint32_t profinet::PNIODWriteReq::api = 0 |
| std::array<std::uint8_t, uuidLenght> profinet::PNIODWriteReq::arUuid {} |
AR UUID this record belongs to.
Definition at line 2052 of file protocol.h.
Referenced by ToBytes().
|
staticconstexpr |
Block type identifier for IODWriteReqHeader.
Definition at line 2042 of file protocol.h.
| std::array<std::uint8_t, blockHeaderLenght> profinet::PNIODWriteReq::blockHeader {} |
| std::uint16_t profinet::PNIODWriteReq::index = 0 |
Record data index being written.
Definition at line 2067 of file protocol.h.
Referenced by ToBytes().
|
staticconstexpr |
Size in bytes of the fixed portion of this block.
Definition at line 2079 of file protocol.h.
| std::uint16_t profinet::PNIODWriteReq::padding = 0 |
| Bytes profinet::PNIODWriteReq::payload |
| std::uint32_t profinet::PNIODWriteReq::recordDataLength = 0 |
| std::array<std::uint8_t, 24> profinet::PNIODWriteReq::rwPadding {} |
| std::uint16_t profinet::PNIODWriteReq::seqNum = 0 |
Sequence number for tracking retries.
Definition at line 2049 of file protocol.h.
Referenced by ToBytes().
| std::uint16_t profinet::PNIODWriteReq::slot = 0 |
| std::uint16_t profinet::PNIODWriteReq::subslot = 0 |