DEENESPTFRRUARHIKOZHNL

struct <RoutineInterface-Namespace>::<RoutineInterface>::<RoutineInterface>RequestResultOutput

[SWS_DM_00583] Upstream: RS_Diag_04169, RS_Diag_04224, RS_AP_00127, RS_AP_00128, RS_ AP_00138

struct <RoutineInterface>RequestResultOutput {...};

Structure wrapping the out arguments for a RequestResult

Header-Datei#include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>.h"
Forwarding-Header#include "<RoutineInterfaceDirectoryPath>/<RoutineInterfaceShortname>/<RoutineInterfaceShortname>_fwd.h"
Scopeclass <RoutineInterface-Namespace>::<RoutineInterface>

User GuideAI-GENERATED

Bundles the output arguments for requesting the results of a diagnostic routine in AUTOSAR Adaptive.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 372418a0759e Provenance Open questions (3)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Bundles the output arguments for requesting the results of a diagnostic routine in AUTOSAR Adaptive.

In module diag of the AUTOSAR Adaptive Platform (R25-11), the structure <RoutineInterface-Namespace>::<RoutineInterface>::<RoutineInterface>RequestResultOutput encapsulates all output arguments for calling a routine result request (RequestResult). It serves as a typed data container that is populated by the application-specific routine implementation with the determined result values and passed to the diagnostic framework. Interpretation: As a pure value type without its own synchronization, the structure is likely intended for short-lived use in the execution context and requires external protection in the event of shared access. Question Q-3b8c63f0a0dd1c4a (open)

Context

The structure <RoutineInterface-Namespace>::<RoutineInterface>::<RoutineInterface>RequestResultOutput is part of module diag of the AUTOSAR Adaptive Platform in release R25-11. According to the specification description, this data type serves as a wrapper for encapsulating the output arguments (out arguments) for a RequestResult operation. In vehicle-related diagnostics according to ISO 14229 (UDS RoutineControl, service 0x31), routine management enables starting, stopping, and requesting results of diagnosable routines on the ECU. When an external diagnostic tester or an internal application component requests the result of a previously initiated routine, the generated output parameters must be transported in a structured and typed manner. The structure acts as a dedicated data container at the interface between the application-side routine implementation and the diagnostic runtime environment. Interpretation: The specific member variables of the structure are likely to correspond to the output arguments of the RequestResult operation defined in the respective AUTOSAR model for this routine. Question Q-bb5b79242dac75ff (open)

Lifecycle

The syntax struct <RoutineInterface>RequestResultOutput {...}; defines the type as an elementary C++ aggregate without its own control or state logic. Interpretation: With regard to the lifecycle, the data structure is likely designed as a pure value type without dynamic resource management and thus follows the standard C++ conventions for value semantics. Question Q-0919ad2177958d6b (open) An instance is typically created within the execution context of the routine as soon as a result query request is present. Creation usually takes place locally on the stack or within a corresponding return container of the routine implementation. After the determined output values have been assigned, the instance is passed to the higher-level diagnostic framework via standard copy or move mechanisms. The lifetime of the instance ends upon completion of the transmission and serialization of the response data. Since the structure does not implement any internal synchronization mechanisms, concurrent access from multiple threads is not thread-safe without external protection.

Usage Path

The typical sequence when using this structure is divided into query processing, provision of the data, and subsequent feedback to the caller. The usage path begins when the diagnostic framework forwards a request for a RequestResult operation to the interface <RoutineInterface>. The application-specific implementation of the routine processes this call and determines the current internal output data. Interpretation: The routine implementation is then likely to create an instance of <RoutineInterface>RequestResultOutput and populate its member variables with the determined result values. Question (open) The completely populated structure is then returned to the diagnostic framework as the result of the operation. Finally, the framework extracts and serializes the output arguments contained in the structure in order to construct the positive diagnostic response message and send it to the tester. After the data has been successfully adopted, the temporary instance is released as normal.

This guide is based on the specifications of the AUTOSAR Adaptive Platform for the diag module in release R25-11.