MCPcopy Create free account
hub / github.com/EIPStackGroup/OpENer / EncodeSequenceNumber

Function EncodeSequenceNumber

source/src/enet_encap/cpf.c:455–463  ·  view source on GitHub ↗

* @brief Encodes a sequence number into the message * * @param common_packet_format_data_item * @param outgoing_message The outgoing message object * * @return The new size of the message buffer * */

Source from the content-addressed store, hash-verified

453 *
454 */
455int EncodeSequenceNumber(
456 const CipCommonPacketFormatData *const common_packet_format_data_item,
457 ENIPMessage *const outgoing_message) {
458 outgoing_message->used_message_length += AddIntToMessage(
459 (EipUint16) common_packet_format_data_item->address_item.data
460 .sequence_number,
461 &outgoing_message->current_message_position);
462 return outgoing_message->used_message_length;
463}
464
465/**
466 * @brief Encodes the reply service code for the requested service

Callers 1

AssembleLinearMessageFunction · 0.85

Calls 1

AddIntToMessageFunction · 0.85

Tested by

no test coverage detected