pdcomm::configureFormattedProgramVerificationNegotiation
Function
Enables S7F29/F30 verification negotiation on an endpoint.
inline void configureFormattedProgramVerificationNegotiation(GemEndpoint &endpoint, const PdcommGemFormattedProgramVerificationNegotiationOptions &options)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
| Name | Description |
|---|---|
endpoint | Host or equipment endpoint. |
options | Limits built with gemFormattedProgramVerificationNegotiationOptions(). |
Notes
- Throws
pdcomm::Error:PDCOMM_INVALID_STATEwhen the endpoint is not stopped, has no role or is already configured;PDCOMM_INVALID_ARGUMENTfor invalid options.