-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move common autosar headers in common folder.
- Loading branch information
Showing
7 changed files
with
108 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
148 changes: 74 additions & 74 deletions
148
test/stub/ComStack_Types.h → test/stub/common/ComStack_Types.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,74 @@ | ||
/** | ||
* @file ComStack_Types.h | ||
* @author Guillaume Sottas | ||
* @date 06/12/2017 | ||
*/ | ||
|
||
#ifndef COMSTACK_TYPES_H | ||
#define COMSTACK_TYPES_H | ||
|
||
#ifdef __cplusplus | ||
|
||
extern "C" { | ||
|
||
#endif /* ifdef __cplusplus */ | ||
|
||
#ifndef STD_TYPES_H | ||
#include "Std_Types.h" | ||
#endif /* #ifndef STD_TYPES_H */ | ||
|
||
typedef uint16 PduIdType; | ||
|
||
typedef uint32 PduLengthType; | ||
|
||
typedef uint8 NetworkHandleType; | ||
|
||
typedef uint8 IcomConfigIdType; | ||
|
||
typedef enum | ||
{ | ||
ICOM_SWITCH_E_OK = 0x00u, | ||
ICOM_SWITCH_E_FAILED = 0x01u | ||
} IcomSwitch_ErrorType; | ||
|
||
typedef enum | ||
{ | ||
TP_STMIN = 0x00u, | ||
TP_BS = 0x01u, | ||
TP_BC = 0x02u | ||
} TPParameterType; | ||
|
||
typedef enum | ||
{ | ||
BUFREQ_OK = 0x00u, | ||
BUFREQ_E_NOT_OK = 0x01u, | ||
BUFREQ_E_BUSY = 0x02u, | ||
BUFREQ_E_OVFL = 0x03u | ||
} BufReq_ReturnType; | ||
|
||
typedef enum | ||
{ | ||
TP_DATACONF = 0x00u, | ||
TP_DATARETRY = 0x01u, | ||
TP_CONFPENDING = 0x02u | ||
} TpDataStateType; | ||
|
||
typedef struct | ||
{ | ||
uint8 *SduDataPtr; | ||
uint8 *MetaDataPtr; | ||
PduLengthType SduLength; | ||
} PduInfoType; | ||
|
||
typedef struct | ||
{ | ||
TpDataStateType TpDataState; | ||
PduLengthType TxTpDataCnt; | ||
} RetryInfoType; | ||
|
||
#ifdef __cplusplus | ||
} | ||
|
||
#endif /* ifdef __cplusplus */ | ||
|
||
#endif /* #ifndef COMSTACK_TYPES_H */ | ||
/** | ||
* @file ComStack_Types.h | ||
* @author Guillaume Sottas | ||
* @date 06/12/2017 | ||
*/ | ||
|
||
#ifndef COMSTACK_TYPES_H | ||
#define COMSTACK_TYPES_H | ||
|
||
#ifdef __cplusplus | ||
|
||
extern "C" { | ||
|
||
#endif /* ifdef __cplusplus */ | ||
|
||
#ifndef STD_TYPES_H | ||
#include "Std_Types.h" | ||
#endif /* #ifndef STD_TYPES_H */ | ||
|
||
typedef uint16 PduIdType; | ||
|
||
typedef uint32 PduLengthType; | ||
|
||
typedef uint8 NetworkHandleType; | ||
|
||
typedef uint8 IcomConfigIdType; | ||
|
||
typedef enum | ||
{ | ||
ICOM_SWITCH_E_OK = 0x00u, | ||
ICOM_SWITCH_E_FAILED = 0x01u | ||
} IcomSwitch_ErrorType; | ||
|
||
typedef enum | ||
{ | ||
TP_STMIN = 0x00u, | ||
TP_BS = 0x01u, | ||
TP_BC = 0x02u | ||
} TPParameterType; | ||
|
||
typedef enum | ||
{ | ||
BUFREQ_OK = 0x00u, | ||
BUFREQ_E_NOT_OK = 0x01u, | ||
BUFREQ_E_BUSY = 0x02u, | ||
BUFREQ_E_OVFL = 0x03u | ||
} BufReq_ReturnType; | ||
|
||
typedef enum | ||
{ | ||
TP_DATACONF = 0x00u, | ||
TP_DATARETRY = 0x01u, | ||
TP_CONFPENDING = 0x02u | ||
} TpDataStateType; | ||
|
||
typedef struct | ||
{ | ||
uint8 *SduDataPtr; | ||
uint8 *MetaDataPtr; | ||
PduLengthType SduLength; | ||
} PduInfoType; | ||
|
||
typedef struct | ||
{ | ||
TpDataStateType TpDataState; | ||
PduLengthType TxTpDataCnt; | ||
} RetryInfoType; | ||
|
||
#ifdef __cplusplus | ||
} | ||
|
||
#endif /* ifdef __cplusplus */ | ||
|
||
#endif /* #ifndef COMSTACK_TYPES_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
/** | ||
* @file Compiler.h | ||
* @author Guillaume Sottas | ||
* @date 30/07/2019 | ||
*/ | ||
|
||
#ifndef COMPILER_H | ||
#define COMPILER_H | ||
|
||
#ifdef __cplusplus | ||
|
||
extern "C" { | ||
|
||
#endif /* ifdef __cplusplus */ | ||
|
||
/* SWS_COMPILER_00057 | ||
#define INLINE inline */ | ||
|
||
/* SWS_COMPILER_00060 */ | ||
#define LOCAL_INLINE static inline | ||
|
||
#ifdef __cplusplus | ||
} | ||
|
||
#endif /* ifdef __cplusplus */ | ||
|
||
#endif /* #ifndef COMPILER_H */ | ||
/** | ||
* @file Compiler.h | ||
* @author Guillaume Sottas | ||
* @date 30/07/2019 | ||
*/ | ||
|
||
#ifndef COMPILER_H | ||
#define COMPILER_H | ||
|
||
#ifdef __cplusplus | ||
|
||
extern "C" { | ||
|
||
#endif /* ifdef __cplusplus */ | ||
|
||
/* SWS_COMPILER_00057 | ||
#define INLINE inline */ | ||
|
||
/* SWS_COMPILER_00060 */ | ||
#define LOCAL_INLINE static inline | ||
|
||
#ifdef __cplusplus | ||
} | ||
|
||
#endif /* ifdef __cplusplus */ | ||
|
||
#endif /* #ifndef COMPILER_H */ |
File renamed without changes.
File renamed without changes.