CLASSIC
Modul: comm
Rolle: heuristic
Konfidenz: 85%
SNIP_CLASSIC_COMM_SECTION_8_3_1_ComM_Init
Wortlaut
8.3.1 ComM_Init
[SWS_ComM_00146] Definition of API function ComM_Init ⌈
Service Name
ComM_Init
Syntax
void ComM_Init (
const ComM_ConfigType* ConfigPtr
)
Service ID [hex]
0x01
Sync/Async
Synchronous
Reentrancy
Non Reentrant
Parameters (in)
ConfigPtr
Pointer to post-build configuration data
Parameters (inout)
None
Parameters (out)
None
Return value
None
Description
Initializes the AUTOSAR Communication Manager and restarts the internal state machines.
Available via
ComM.h
⌋(SRS_BSW_00101, SRS_BSW_00358, SRS_BSW_00414)
[SWS_ComM_00793] ⌈Caveats of ComM_Init(): The NVRAM Manager module has to
be initialized to have the possibility to "direct" access the ComM module’s parameters.⌋
()
[SWS_ComM_00864] ⌈In ComM_Init() ComM shall read non-volatile parameters
specified in [SWS_ComM_00103] with the values read from non-volatile memory
(NVRAM). If no parameters are available (e.g. reading of NvM Block fails), ComM
shall use the default values for the initialization.⌋()
[SWS_ComM_01098] ⌈Default value used for initialization of the inhibition counter
shall be 0.⌋()
[SWS_ComM_01099] ⌈Default value used for initialization of the PNC-to-channel Mapping shall be a two-dimensional array with the statically configured mapping of PNC to
channels of the PNC Gateway.⌋()
[SWS_ComM_01100] ⌈Default value used for initialization of the PNC Membership
shall be a PNC bit vector that holds the statically configured PNCs for the node.⌋()
Note for [SWS_ComM_01100]: Default values for ComMEcuGroupClassification
and inhibition status are used according to configuration parameters referenced in
[SWS_ComM_00103].
[SWS_ComM_01101] ⌈If reading the data from non-volatile memory (NVRAM) fails,
ComM shall report the runtime error COMM_E_READ_NV_FAILED to DET.⌋()
Note to [SWS_ComM_01101]: If ComM reports COMM_E_READ_NV_FAILED, an application could react on this error scenario, e.g.
update PNC Membership by calling ComM_UpdatePncMembership or update PNC-to-channel Mapping by calling
ComM_UpdatePncToChannelMapping.
Versionen & Provenienz · Zugeordnete Anforderungen
Diese Angaben zeigt der Versions-Explorer.
Begründung & Zuweisungs-Evidenz
Reports COMM_E_READ_NV_FAILED runtime error
Dokumenten-Herkunft & Rückverfolgbarkeit
| Spezifikations-Dokument | SWS_COMManager.pdf |
|---|---|
| Dokumentseite | Seite 97 |
| Ziel-Modul | comm (classic) |
| Ziel-Anforderung | SWS_ComM_91110 |
| Semantische Rolle | heuristic |
| Automatisierungs-Konfidenz | 0.85 |