-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStd_Types.h
67 lines (55 loc) · 1.94 KB
/
Std_Types.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
58
59
60
61
62
63
64
65
66
67
/******************************************************************************
*
* Module: Common - Platform
*
* File Name: Std_Types.h
*
* Description: General type definitions
*
* Author: Mohamed Tarek
*
*******************************************************************************/
#ifndef STD_TYPES_H
#define STD_TYPES_H
#include "Platform_Types.h"
#include "Compiler.h"
/* Id for the company in the AUTOSAR
* for example Mohamed Tarek's ID = 1000 :) */
#define STD_TYPES_VENDOR_ID (1000U)
/*
* Module Version 1.0.0
*/
#define STD_TYPES_SW_MAJOR_VERSION (1U)
#define STD_TYPES_SW_MINOR_VERSION (0U)
#define STD_TYPES_SW_PATCH_VERSION (0U)
/*
* AUTOSAR Version 4.0.3
*/
#define STD_TYPES_AR_RELEASE_MAJOR_VERSION (4U)
#define STD_TYPES_AR_RELEASE_MINOR_VERSION (0U)
#define STD_TYPES_AR_RELEASE_PATCH_VERSION (3U)
/*
* Describes the standard Return Type Definitions used in the project
*/
typedef uint8 Std_ReturnType;
/*
* Structure for the Version of the module.
* This is requested by calling <Module name>_GetVersionInfo()
*/
typedef struct
{
uint16 vendorID;
uint16 moduleID;
uint8 sw_major_version;
uint8 sw_minor_version;
uint8 sw_patch_version;
} Std_VersionInfoType;
#define STD_HIGH 0x01U /* Standard HIGH */
#define STD_LOW 0x00U /* Standard LOW */
#define STD_ACTIVE 0x01U /* Logical state active */
#define STD_IDLE 0x00U /* Logical state idle */
#define STD_ON 0x01U /* Standard ON */
#define STD_OFF 0x00U /* Standard OFF */
#define E_OK ((Std_ReturnType)0x00U) /* Function Return OK */
#define E_NOT_OK ((Std_ReturnType)0x01U) /* Function Return NOT OK */
#endif /* STD_TYPES_H */