|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
Classes | |
| class | Reader |
| Lightweight cursor for parsing a big-endian byte buffer without copies. More... | |
Functions | |
| void | PutU8 (std::vector< std::uint8_t > &out, std::uint8_t v) |
| Append a single byte to a buffer. | |
| void | PutU16 (std::vector< std::uint8_t > &out, std::uint16_t v) |
| Append a 16-bit value to a buffer in big-endian order. | |
| void | PutU32 (std::vector< std::uint8_t > &out, std::uint32_t v) |
| Append a 32-bit value to a buffer in big-endian order. | |
| void | PutBytes (std::vector< std::uint8_t > &out, const std::uint8_t *data, std::size_t len) |
| Append a raw byte range to a buffer. | |
| template<std::size_t N> | |
| void | PutFixed (std::vector< std::uint8_t > &out, const std::array< std::uint8_t, N > &data) |
| Append a fixed-size byte array to a buffer. | |
|
inline |
|
inline |
Append a fixed-size byte array to a buffer.
| N | Size of the array in bytes. |
| out | Buffer to append to. |
| data | Fixed-size array to copy. |
Definition at line 58 of file wire.h.
Referenced by profinet::blocks::IODWriteMultipleBuilder::BuildHeader(), profinet::blocks::IODWriteMultipleBuilder::BuildWriteBlock(), profinet::EthernetHeader::ToBytes(), profinet::EthernetVLANHeader::ToBytes(), profinet::PNRPCHeader::ToBytes(), profinet::PNIODHeader::ToBytes(), profinet::PNARBlockRequest::ToBytes(), profinet::PNIODReleaseBlock::ToBytes(), profinet::PNIOCRBlockReqHeader::ToBytes(), profinet::PNAlarmCRBlockReq::ToBytes(), profinet::PNAlarmAckPDU::ToBytes(), and profinet::PNIODWriteReq::ToBytes().
Here is the caller graph for this function:
|
inline |
Append a 16-bit value to a buffer in big-endian order.
| out | Buffer to append to. |
| v | Value to append. |
Definition at line 27 of file wire.h.
References profinet::LowByteMask, and profinet::OneOctetShift.
Referenced by profinet::rpc::RPCCon::ApplicationReady(), profinet::blocks::IODWriteMultipleBuilder::BuildHeader(), profinet::rpc::RPCCon::BuildIocrBlock(), profinet::blocks::IODWriteMultipleBuilder::BuildWriteBlock(), profinet::blocks::ExpectedSubmoduleDataDescription::ToBytes(), profinet::blocks::ExpectedSubmodule::ToBytes(), profinet::blocks::ExpectedSubmoduleSlot::ToBytes(), profinet::blocks::ExpectedSubmoduleBlockReq::ToBytes(), profinet::EthernetHeader::ToBytes(), profinet::EthernetVLANHeader::ToBytes(), profinet::PNDCPHeader::ToBytes(), profinet::PNDCPBlockRequest::ToBytes(), profinet::PNDCPBlock::ToBytes(), profinet::PNRPCHeader::ToBytes(), profinet::PNIODHeader::ToBytes(), profinet::PNBlockHeader::ToBytes(), profinet::PNARBlockRequest::ToBytes(), profinet::PNIODReleaseBlock::ToBytes(), profinet::IOCRAPIObject::ToBytes(), profinet::PNIOCRBlockReqHeader::ToBytes(), profinet::PNAlarmCRBlockReq::ToBytes(), profinet::PNAlarmAckPDU::ToBytes(), profinet::PNRTAHeader::ToBytes(), profinet::PNExpectedSubmoduleDataDescription::ToBytes(), and profinet::PNIODWriteReq::ToBytes().
Here is the caller graph for this function:
|
inline |
Append a 32-bit value to a buffer in big-endian order.
| out | Buffer to append to. |
| v | Value to append. |
Definition at line 36 of file wire.h.
References profinet::LowByteMask, profinet::OneOctetShift, profinet::ThreeOctetsShift, and profinet::TwoOctetsShift.
Referenced by profinet::rpc::RPCCon::ApplicationReady(), profinet::blocks::IODWriteMultipleBuilder::BuildHeader(), profinet::rpc::RPCCon::BuildIocrBlock(), profinet::blocks::IODWriteMultipleBuilder::BuildWriteBlock(), profinet::blocks::ExpectedSubmodule::ToBytes(), profinet::blocks::ExpectedSubmoduleSlot::ToBytes(), profinet::PNDCPHeader::ToBytes(), profinet::PNRPCHeader::ToBytes(), profinet::PNNRDData::ToBytes(), profinet::PNIODHeader::ToBytes(), profinet::PNARBlockRequest::ToBytes(), profinet::PNIOCRBlockReqHeader::ToBytes(), profinet::PNAlarmCRBlockReq::ToBytes(), profinet::PNAlarmAckPDU::ToBytes(), and profinet::PNIODWriteReq::ToBytes().
Here is the caller graph for this function:
|
inline |
Append a single byte to a buffer.
| out | Buffer to append to. |
| v | Byte value to append. |
Definition at line 19 of file wire.h.
Referenced by profinet::blocks::IODWriteMultipleBuilder::BuildHeader(), profinet::blocks::IODWriteMultipleBuilder::BuildWriteBlock(), profinet::blocks::ExpectedSubmoduleDataDescription::ToBytes(), profinet::blocks::ExpectedSubmoduleBlockReq::ToBytes(), profinet::PNDCPHeader::ToBytes(), profinet::PNDCPBlockRequest::ToBytes(), profinet::PNDCPBlock::ToBytes(), profinet::PNRPCHeader::ToBytes(), profinet::PNBlockHeader::ToBytes(), profinet::PNRTAHeader::ToBytes(), and profinet::PNExpectedSubmoduleDataDescription::ToBytes().
Here is the caller graph for this function: