Skip to content
Start free evaluation

pdcomm::configureFormattedProgramVerificationNegotiation

Function

Enables S7F29/F30 verification negotiation on an endpoint.

inline void configureFormattedProgramVerificationNegotiation(GemEndpoint &endpoint, const PdcommGemFormattedProgramVerificationNegotiationOptions &options)

Declared in: #include <pdcomm_gem_formatted_program_verification_negotiation.hpp>

Call once while the endpoint is stopped, after the role is configured. A host that grants must also call configureFormattedPrograms() to receive the S7F27 report that follows.

const auto negotiation = pdcomm::gemFormattedProgramVerificationNegotiationOptions(
    4, 16, 32, 2, 1, 2, 2, 4);
const auto reports = pdcomm::gemFormattedProgramOptions(4, 16, 32, 2, 2, 4, 4);
pdcomm::configureFormattedProgramVerificationNegotiation(equipment, negotiation);
pdcomm::configureFormattedPrograms(host, reports);
pdcomm::configureFormattedProgramVerificationNegotiation(host, negotiation);

Parameters

NameDescription
endpointHost or equipment endpoint.
optionsLimits built with gemFormattedProgramVerificationNegotiationOptions().

Notes

  • Throws pdcomm::Error: PDCOMM_INVALID_STATE when the endpoint is not stopped, has no role or is already configured; PDCOMM_INVALID_ARGUMENT for invalid options.