CLASSIC
Modul: det
Rolle: heuristic
Konfidenz: 85%
SNIP_CLASSIC_DET_SECTION_1_SC_D
Wortlaut
5acXjzUk
R25-11
AUTOSAR_CP_EXP_LayeredSoftwareArchitecture
124
Configuration
Pre-compile time (2)
Example 1: Enabling/disabling functionality
File Spi_Cfg.h:
#define SPI_DEV_ERROR_DETECT ON
File Spi_Cfg.c:
const uint8 myconstant = 1U;
File Spi.c (available as source code):
#include "Spi_Cfg.h" /* for importing the configuration parameters */
extern const uint8 myconstant;
#if (SPI_DEV_ERROR_DETECT == ON)
Det_ReportError(Spi_ModuleId, 0U, 3U, SPI_E_PARAM_LENGTH); /* only one instance available */
#endif
Note: The Memory Abstraction (as specified by AUTOSAR) is not used to keep the example simple.
page id: 9000c
Versionen & Provenienz · Zugeordnete Anforderungen
Diese Angaben zeigt der Versions-Explorer.
Begründung & Zuweisungs-Evidenz
SPI_E_PARAM_LENGTH error reporting
Dokumenten-Herkunft & Rückverfolgbarkeit
| Spezifikations-Dokument | EXP_LayeredSoftwareArchitecture.pdf |
|---|---|
| Dokumentseite | Seite 113 |
| Ziel-Modul | det (classic) |
| Ziel-Anforderung | SWS_Spi_00240 |
| Semantische Rolle | heuristic |
| Automatisierungs-Konfidenz | 0.85 |