function RegisterWakeUpHandler [SWS_SM_71003] Upstream: RS_SM_00402
void RegisterWakeUpHandler (apext::sm::WakeUpHandler handler) noexcept; DIRECTION NOT handler -- DEFINED
Register wake-up handler function in the OS-Wrapper to inform SM about wake-up.
The function RegisterWakeUpHandler of class apext::sm::PowerStateInterface serves to register a callback function of type apext::sm::WakeUpHandler in the OS wrapper to notify State Management (SM) about wake-up events [SWS_SM_71003]. The interface is defined in header #include "apext/sm/power_state_interface.h" and addresses the high-level requirement [RS_SM_00402] AUTOSAR_AP_SWS_StateManagement §C.1.2.1.1.1 “RegisterWakeUpHandler”.
Usage and Call Context
The declaration is void RegisterWakeUpHandler (apext::sm::WakeUpHandler handler) noexcept [SWS_SM_71003]. The call is performed synchronously for passing the function pointer or callback via the parameter handler. Since the function has no return value (void), it does not provide status feedback on the completion of the registration [SWS_SM_71003].
Error Handling and Exception Safety
The interface is specified as exception safe (exception safe) and annotated with noexcept [SWS_SM_71003]. Callers therefore do not need to catch C++ exceptions. Specific error codes, return values for error indication, or notifications to diagnostic or error managers are not defined for this API [SWS_SM_71003].
Concurrency and Limitations
- Thread safety: The function is explicitly classified as not thread-safe (
not-threadsafe) [SWS_SM_71003]. Calling instances must ensure that calls do not occur unprotected from competing threads. Interpretation: The registration should expediently take place once during the sequential initialization phase of the OS wrapper before wake-up events occur. Question Q-268ab61374f98e7a (open) - Development status: The function definition has the status DRAFT AUTOSAR_AP_SWS_StateManagement §C.1.2.1.1.1 “RegisterWakeUpHandler” in Release R25-11, which is why modifications in future specification versions are possible.
This usage note was generated automatically based on the AUTOSAR specification for R25-11.
Implementer's Guide to follow (complexity I1)
| Header-Datei | #include "apext/sm/power_state_interface.h" |
|---|---|
| Scope | class apext::sm::PowerStateInterface |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | not-threadsafe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| None |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_SM_71003- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_SM_71003@rel:R25-11#bc05c3e2- Content hash
bc05c3e2- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_StateManagement.pdf#nameddest=SWS_SM_71003
Status: valid/unmigrated
Version: rel:R25-11#bc05c3e2
Versionshistorie & Revisions (1 transition)
- 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_SM_71003@rel:R25-11#bc05c3e2
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