function Clear [SWS_DM_00671] Upstream: RS_AP_00119, RS_AP_00139, RS_Diag_04194
ara::core::Future< void > Clear (std::uint32_t dtcGroup) noexcept;
Method for Clearing a DTC or a group of DTCs.
The method Clear of class ara::diag::DTCInformation ([SWS_DM_00671]) serves to clear an individual DTC or a DTC group in the fault memory (AUTOSAR_AP_SWS_Diagnostics §7.3.2.8.6 “Service 0x14 – ClearDiagnosticInformation”). As a parameter, it accepts the identifier of the group or DTC to be cleared via dtcGroup and returns the result asynchronously as ara::core::Future<void> ([SWS_DM_00671]). The permission to clear individual DTCs or groups is subject to configuration parameters such as clearDtcLimitation ([SWS_DM_00160]).
Error Handling and Semantics
The function is declared as noexcept and reports errors asynchronously via the Future with rollback semantics ([SWS_DM_00671]). Possible error codes from DiagErrc are:
DiagErrc::kBusy: The interface is already busy with processing.DiagErrc::kFailed: A general processing error occurred during execution.DiagErrc::kMemoryError: A memory error occurred during processing.DiagErrc::kWrongDtc: An invalid DTC number was passed.DiagErrc::kServiceNotAvailable: Essential functions of the Diagnostic Manager are currently not available.
Concurrency and Distinction
The method is exception safe (exception safe), but explicitly classified as not thread-safe ([SWS_DM_00671]). Parallel calls on the same instance must therefore be synchronized by the caller; otherwise, DiagErrc::kBusy threatens. Interpretation: The returned ara::core::Future is likely to be fulfilled only when the physical fault memory has been completely cleared, analogously to the acknowledgment of UDS service 0x14 ([SWS_DM_00162]). Question Q-b97545b6864b24aa (open)
Functionally, the operation is to be distinguished from SOVD methods of the same name: While ara::diag::DiagnosticSovdContentElementDataView::Clear ([SWS_DM_02233]) clears data containers synchronously and thread-safe, this method controls diagnostic sequences in Diagnostic Management.
This usage note was curated by an AI and is based exclusively on the specification excerpts of AUTOSAR AP Release R25-11.
Implementer's Guide to follow (complexity I1)
| Header-Datei | #include "ara/diag/dtc_information.h" |
|---|---|
| Scope | class ara::diag::DTCInformation |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | not thread-safe DiagErrc::kBusy rollback_semantics |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| dtcGroup | DTC group to be cleared. |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Future< void > | void or errors |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| Interface is busy with processing. | |
| DiagErrc::kFailed | rollback_semantics Failed to process. |
| DiagErrc::kMemoryError | rollback_semantics A memory error occurred during processing. |
| DiagErrc::kWrongDtc | rollback_semantics A wrong DTC number was requested. |
| DiagErrc::kServiceNotAvailable | rollback_semantics The call cannot be executed, because essential DM functionality is currently not available. |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_00671- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_00671@rel:R25-11#eeae02f9- Content hash
eeae02f9- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00671
Status: valid/unmigrated
Version: rel:R25-11#5f2d812c
Versionshistorie & Revisions (1 transition, 8 revision)
- Current State
valid/unmigrated- Reason
- mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
- Campaign
2026-08-13-status-backfill- Active Version
AUTOSAR/AP/record/SWS_DM_00671@rel:R25-11#5f2d812c
Recorded Revisions (8):
- R25-11
rel:R25-11#eeae02f92026-09-30 - R19-11
rel:R19-11#51e8d4512026-10-14 - R20-11
rel:R20-11#a949cf792026-10-14 - R21-11
rel:R21-11#a949cf792026-10-14 - R22-11
rel:R22-11#a1f423932026-10-14 - R23-11
rel:R23-11#cc3a92472026-10-14 - R24-11
rel:R24-11#ee42b6492026-10-14 - R25-11
rel:R25-11#5f2d812c2026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · German original