SNIP_CLASSIC_OS_SECTION_8_4_30_WritePeripheral8_WritePeripheral16_WritePeripheral32
Wortlaut
8.4.30 WritePeripheral8, WritePeripheral16, WritePeripheral32
[SWS_Os_91010] Definition of API function WritePeripheral8
Upstream requirements: SRS_Os_11005
⌈
Service Name
WritePeripheral8
Syntax
StatusType WritePeripheral8 (
AreaIdType Area,
uint8* Address,
uint8 WriteValue
)
Service ID [hex]
0x2b
Sync/Async
Synchronous
Reentrancy
Reentrant
Area
hardware peripheral area reference
Parameters (in)
Address
memory address
Parameters (inout)
None
Parameters (out)
WriteValue
value to be written at the memory address
Return value
StatusType
E_OK No error
E_OS_ID Area id is out of range (EXTENDED status)
E_OS_VALUE Address does not belong to given Area
(EXTENDED status)
E_OS_CALLEVEL Wrong call context of the API function
(EXTENDED status)
E_OS_ACCESS The calling task or ISR is not allowed to access
the given
Description
This service writes the <value> to a given memory location (<memory address>).
Available via
Os.h
⌋
[SWS_Os_91012] Definition of API function WritePeripheral16
Upstream requirements: SRS_Os_11005
⌈
Service Name
WritePeripheral16
Syntax
StatusType WritePeripheral16 (
AreaIdType Area,
uint16* Address,
uint16 WriteValue
)
Service ID [hex]
0x2c
Sync/Async
Synchronous
Reentrancy
Reentrant
Area
hardware peripheral area reference
Parameters (in)
Address
memory address
Parameters (inout)
None
Parameters (out)
WriteValue
value to be written at the memory address
▽
△
Return value
StatusType
E_OK No error
E_OS_ID Area id is out of range (EXTENDED status)
E_OS_VALUE Address does not belong to given Area
(EXTENDED status)
E_OS_CALLEVEL Wrong call context of the API function
(EXTENDED status)
E_OS_ACCESS The calling task or ISR is not allowed to access
the given
Description
This service writes the <value> to a given memory location (<memory address>).
Available via
Os.h
⌋
[SWS_Os_91011] Definition of API function WritePeripheral32
Upstream requirements: SRS_Os_11005
⌈
Service Name
WritePeripheral32
Syntax
StatusType WritePeripheral32 (
AreaIdType Area,
uint32* Address,
uint32 WriteValue
)
Service ID [hex]
0x2d
Sync/Async
Synchronous
Reentrancy
Reentrant
Area
hardware peripheral area reference
Parameters (in)
Address
memory address
Parameters (inout)
None
Parameters (out)
WriteValue
content of the given memory location (<Address>)
Return value
StatusType
E_OK No error
E_OS_ID Area id is out of range (EXTENDED status)
E_OS_VALUE Address does not belong to given Area
(EXTENDED status)
E_OS_CALLEVEL Wrong call context of the API function
(EXTENDED status)
E_OS_ACCESS The calling task or ISR is not allowed to access
the given
Description
This service writes the <value> to a given memory location (<memory address>).
Available via
Os.h
⌋
Versionen & Provenienz · Zugeordnete Anforderungen
Diese Angaben zeigt der Versions-Explorer.
Begründung & Zuweisungs-Evidenz
Explicit mention of SWS_Os_91012 in the text of document AUTOSAR_CP_SWS_OS.pdf.
Dokumenten-Herkunft & Rückverfolgbarkeit
| Spezifikations-Dokument | SWS_OS.pdf |
|---|---|
| Dokumentseite | Seite 207 |
| Ziel-Modul | os (classic) |
| Ziel-Anforderung | SWS_Os_91012 |
| Semantische Rolle | constitutive |
| Automatisierungs-Konfidenz | 0.98 |