Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TY
TianYing_ty100
Commits
57cdab08
Commit
57cdab08
authored
May 27, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://tyw-server.synology.me:12345/ty/tianying_ty100
into lijianshuang
parents
8eb4f559
90633f28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
37 deletions
+8
-37
UDS_ISO14229_Services.c
Firmware/Source/UDS/UDS_ISO14229_Services.c
+8
-37
No files found.
Firmware/Source/UDS/UDS_ISO14229_Services.c
View file @
57cdab08
...
...
@@ -7,7 +7,8 @@
******************************************************************************/
#include "UDS_ISO14229_Services.h"
#include "flash.h"
#include "CAN_Signal\CAN_Lib.h"
#include "CAN_APP\CAN_CH0_CAN_Communication_Matrix.h"
typedef
struct
{
uint8_t
ProjecName
[
16
];
// 项目名
...
...
@@ -1104,9 +1105,9 @@ void UDS_Service_27_Indication(uint16_t A_TA_type, uint16_t A_Length, uint8_t *A
28# - CommunicationControl
******************************************************************************/
static
const
uint8_t
Ser28BanResponse
=
AbleResponseType
;
static
const
uint8_t
Ser28Sub
[]
=
{
enableRxAndTx
,
enableRxAndDisableTx
,
disableRxAndEnableTx
,
disableRxAndTx
};
static
const
uint8_t
Ser28Sub
[]
=
{
enableRxAndTx
,
/*enableRxAndDisableTx, disableRxAndEnableTx, */
disableRxAndTx
};
static
const
uint8_t
Ser28MinLen
[]
=
{
2
};
static
const
uint8_t
Ser28SubLen
[]
=
{
2
,
2
,
2
,
2
};
static
const
uint8_t
Ser28SubLen
[]
=
{
2
,
/*2, 2,*/
2
};
static
const
uint8_t
Ser28UnlockLevel
[]
=
{
NoNeed
,
NoNeed
,
NoNeed
,
NoNeed
};
static
const
uint8_t
Ser28SupportSession
=
ProgrammingMode
|
ExtendedDiagnosticMode
;
static
const
uint8_t
Ser28SubSupportSession
[]
=
{
ProgrammingMode
|
ExtendedDiagnosticMode
,
ProgrammingMode
|
ExtendedDiagnosticMode
,
ProgrammingMode
|
ExtendedDiagnosticMode
,
ProgrammingMode
|
ExtendedDiagnosticMode
};
...
...
@@ -1182,36 +1183,8 @@ void UDS_Service_28_Indication(uint16_t A_TA_type, uint16_t A_Length, uint8_t *A
{
if
(
UDS_ISO14229_Transfer
[
1
]
&
normalCommunicationMessages
)
{
// L CoCAN_Ch5_Rx_Enable (ENABLE);
// L CoCAN_Ch5_Tx_Enable(ENABLE);
// CAN_RX_SetEnable(CAN_RX_Enable);
// CAN_TX_SetEnable(CAN_TX_Enable);
}
if
(
UDS_ISO14229_Transfer
[
1
]
&
networkManagementCommunicationMessages
)
{
}
}
else
if
(
enableRxAndDisableTx
==
SubFunction
)
{
if
(
UDS_ISO14229_Transfer
[
1
]
&
normalCommunicationMessages
)
{
// L CoCAN_Ch5_Rx_Enable (ENABLE);
// L CoCAN_Ch5_Tx_Enable (DISABLE);
// CAN_RX_SetEnable(CAN_RX_Enable);
// CAN_TX_SetEnable(CAN_TX_Disable);
}
if
(
UDS_ISO14229_Transfer
[
1
]
&
networkManagementCommunicationMessages
)
{
}
}
else
if
(
disableRxAndEnableTx
==
SubFunction
)
{
if
(
UDS_ISO14229_Transfer
[
1
]
&
normalCommunicationMessages
)
{
// L CoCAN_Ch5_Rx_Enable (DISABLE);
// L CoCAN_Ch5_Tx_Enable (ENABLE);
// CAN_RX_SetEnable(CAN_RX_Disable);
// CAN_TX_SetEnable(CAN_TX_Enable);
CAN_RX_SetEnable
(
&
CAN_CH0_CanMsgOp
,
CAN_N_RX_Enable
);
CAN_TX_SetEnable
(
&
CAN_CH0_CanMsgTxOp
,
CAN_N_TX_Enable
);
}
if
(
UDS_ISO14229_Transfer
[
1
]
&
networkManagementCommunicationMessages
)
{
...
...
@@ -1221,10 +1194,8 @@ void UDS_Service_28_Indication(uint16_t A_TA_type, uint16_t A_Length, uint8_t *A
{
if
(
UDS_ISO14229_Transfer
[
1
]
&
normalCommunicationMessages
)
{
// L CoCAN_Ch5_Rx_Enable (DISABLE);
// L CoCAN_Ch5_Tx_Enable(DISABLE);
// CAN_RX_SetEnable(CAN_RX_Disable);
// CAN_TX_SetEnable(CAN_TX_Disable);
CAN_RX_SetEnable
(
&
CAN_CH0_CanMsgOp
,
CAN_N_RX_Disable
);
CAN_TX_SetEnable
(
&
CAN_CH0_CanMsgTxOp
,
CAN_N_TX_Disable
);
}
if
(
UDS_ISO14229_Transfer
[
1
]
&
networkManagementCommunicationMessages
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment