-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDet.h
57 lines (47 loc) · 1.79 KB
/
Det.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/******************************************************************************
*
* Module: Det
*
* File Name: Det.h
*
* Description: Det stores the development errors reported by other modules.
*
* Author: Mohamed Tarek
******************************************************************************/
#ifndef DET_H
#define DET_H
/* Id for the company in the AUTOSAR
* for example Mohamed Tarek's ID = 1000 :) */
#define DET_VENDOR_ID (1000U)
/* Det Module Id */
#define DET_MODULE_ID (15U)
/* Instance Id */
#define DET_INSTANCE_ID (0U)
/*
* Det Software Module Version 1.0.0
*/
#define DET_SW_MAJOR_VERSION (1U)
#define DET_SW_MINOR_VERSION (0U)
#define DET_SW_PATCH_VERSION (0U)
/*
* AUTOSAR Version 4.0.3
*/
#define DET_AR_MAJOR_VERSION (4U)
#define DET_AR_MINOR_VERSION (0U)
#define DET_AR_PATCH_VERSION (3U)
/* Standard AUTOSAR types */
#include "Std_Types.h"
/* AUTOSAR checking between Std Types and Det Modules */
#if ((DET_AR_MAJOR_VERSION != STD_TYPES_AR_RELEASE_MAJOR_VERSION)\
|| (DET_AR_MINOR_VERSION != STD_TYPES_AR_RELEASE_MINOR_VERSION)\
|| (DET_AR_PATCH_VERSION != STD_TYPES_AR_RELEASE_PATCH_VERSION))
#error "The AR version of Std_Types.h does not match the expected version"
#endif
/*******************************************************************************
* Function Prototypes *
*******************************************************************************/
Std_ReturnType Det_ReportError( uint16 ModuleId,
uint8 InstanceId,
uint8 ApiId,
uint8 ErrorId );
#endif /* DET_H */