-
Notifications
You must be signed in to change notification settings - Fork 2
/
stub.c
191 lines (142 loc) · 5.25 KB
/
stub.c
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/*******************************************************************************
** **
** Copyright (C) AUTOSarZs olc (2019) **
** **
** All rights reserved. **
** **
** This document contains proprietary information belonging to AUTOSarZs **
** olc . Passing on and copying of this document, and communication **
** of its contents is not permitted without prior written authorization. **
** **
********************************************************************************
** **
** FILENAME : Stub.c **
** **
** VERSION : 1.0.0 **
** **
** DATE : 2019-09-22 **
** **
** VARIANT : Variant PB **
** **
** PLATFORM : TIVA C **
** **
** AUTHOR : AUTOSarZs-DevTeam **
** **
** VENDOR : AUTOSarZs OLC **
** **
** **
** DESCRIPTION : CAN Driver source file **
** **
** SPECIFICATION(S) : Specification of CAN Driver, AUTOSAR Release 4.3.1 **
** **
** MAY BE CHANGED BY USER : no **
** **
*******************************************************************************/
#include "Std_Types.h"
#include "ComStack_Types.h"
#include "Det.h"
#include "PduR_CanIf.h"
#include "CanTp_Cbk.h"
#include "CanSm_Cbk.h"
#include "J1939Nm_Cbk.h"
#include "Xcp_Cbk.h"
#include "CanIf_Cbk.h"
#include "CanIf.h"
uint8 ReadData=0;
Std_ReturnType Det_ReportError(uint16 ModuleId, uint8 InstanceId, uint8 ApiId,
uint8 ErrorId)
{
return 0;
}
void CanIf_TxConfirmation(PduIdType CanTxPduId)
{
}
void CanIf_ControllerModeIndication( uint8 ControllerId, Can_ControllerStateType ControllerMode )
{
}
/**
* \brief This callout function is called whenever a CAN message is
* received in CAN driver.
*/
void CanIf_RxIndication
(
const Can_HwType * Mailbox,
const PduInfoType * PduInfoPtr
)
{
ReadData= *(PduInfoPtr->SduDataPtr);
}
void PduR_CanIfRxIndication(PduIdType RxPduId, const PduInfoType* PduInfoPtr)
{
}
void PduR_CanIfTxConfirmation(PduIdType TxPduId, Std_ReturnType result)
{
}
Std_ReturnType PduR_CanIfTriggerTransmit(PduIdType TxPduId, PduInfoType* PduInfoPtr)
{
return 0;
}
void CanTp_RxIndication(PduIdType RxPduId, const PduInfoType* PduInfoPtr)
{
}
void CanTp_TxConfirmation(PduIdType TxPduId, Std_ReturnType result)
{
}
void CanSM_CheckTransceiverWakeFlagIndication(uint8 Transceiver)
{
}
void CanSM_ClearTrcvWufFlagIndication(uint8 Transceiver)
{
}
void CanSM_ConfirmPnAvailability(uint8 TransceiverId)
{
}
void CanSM_ControllerBusOff(uint8 ControllerId)
{
}
Std_ReturnType CanSM_TriggerTransmit(PduIdType TxPduId, PduInfoType* PduInfoPtr)
{
return 0;
}
void CanNm_RxIndication(PduIdType RxPduId, const PduInfoType* PduInfoPtr)
{
}
void CanNm_TxConfirmation(PduIdType TxPduId, Std_ReturnType result)
{
}
Std_ReturnType CanNm_TriggerTransmit(PduIdType TxPduId, PduInfoType* PduInfoPtr)
{
return 0;
}
void J1939Nm_RxIndication(PduIdType RxPduId, const PduInfoType* PduInfoPtr)
{
}
void J1939Nm_TxConfirmation(PduIdType TxPduId, Std_ReturnType result)
{
}
void J1939Tp_RxIndication(PduIdType RxPduId, const PduInfoType* PduInfoPtr)
{
}
void J1939Tp_TxConfirmation(PduIdType TxPduId, Std_ReturnType result)
{
}
void Xcp_CanIfRxIndication(PduIdType RxPduId, const PduInfoType* PduInfoPtr)
{
}
void Xcp_CanIfTxConfirmation(PduIdType TxPduId, Std_ReturnType result)
{
}
Std_ReturnType Xcp_CanIfTriggerTransmit(PduIdType TxPduId, PduInfoType* PduInfoPtr)
{
return 0;
}
void CanTSyn_RxIndication(PduIdType RxPduId, const PduInfoType* PduInfoPtr)
{
}
void CanTSyn_TxConfirmation(PduIdType TxPduId, Std_ReturnType result)
{
}
Std_ReturnType CanIf_SetPduMode(uint8 ControllerId, CanIf_PduModeType PduModeRequest)
{
return 0;
}