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

Function EncodeGeneralStatus

source/src/enet_encap/cpf.c:507–514  ·  view source on GitHub ↗

* @brief Encodes the general status of a Router Response * * @param message_router_response Router Response message to be processed * @param outgoing_message The outgoing message object * * @return New size of the message buffer */

Source from the content-addressed store, hash-verified

505 * @return New size of the message buffer
506 */
507int EncodeGeneralStatus(
508 const CipMessageRouterResponse *const message_router_response,
509 ENIPMessage *const outgoing_message) {
510 outgoing_message->used_message_length += AddSintToMessage(
511 message_router_response->general_status,
512 &outgoing_message->current_message_position);
513 return outgoing_message->used_message_length;
514}
515
516/**
517 * @brief Encodes the length of the extended status data part

Callers 1

AssembleLinearMessageFunction · 0.85

Calls 1

AddSintToMessageFunction · 0.85

Tested by

no test coverage detected