Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiancetai
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
陈家乐
jiancetai
Commits
be5389da
Commit
be5389da
authored
Sep 03, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:UID写完后增加
parent
f48c2ec5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
CAN_APP.c
YueJin_test_bench/source/Appliciation/CAN_APP.c
+16
-0
CAN_APP.h
YueJin_test_bench/source/Appliciation/CAN_APP.h
+1
-0
RSCAN.c
YueJin_test_bench/source/Driver/CAN/RSCAN.c
+1
-0
No files found.
YueJin_test_bench/source/Appliciation/CAN_APP.c
View file @
be5389da
...
...
@@ -486,6 +486,22 @@ uint8_t UIDGetstep = 0;
uint8_t
u8getUIDmsg
[
8
];
uint8_t
UIDNumber
[
15
]
=
{
2
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
2
,
0
,
0xFF
};
void
get_seed_msg
(
void
);
void
UID_ADD
(
void
)
{
for
(
uint8_t
i
=
17
;
i
>
1
;
i
--
)
{
if
(
UIDNumber2
[
i
]
<
9
)
{
UIDNumber2
[
i
]
+=
1
;
return
;
}
else
{
UIDNumber2
[
i
]
=
0
;
}
}
}
void
Can_Set_Buff_786
(
uint8_t
CopyData
[])
{
uint8_t
i
=
0u
;
...
...
YueJin_test_bench/source/Appliciation/CAN_APP.h
View file @
be5389da
...
...
@@ -281,6 +281,7 @@ void Can_Set_Buff_786(uint8_t CopyData []);
void
Can_Set_Buff_207
(
uint8_t
CopyData
[]);
void
CAN_Msg_Steps_100ms
();
extern
void
UID_ADD
(
void
);
extern
uint8_t
uidWrite
;
extern
uint8_t
UIDGetstep
;
extern
uint8_t
VSpeed
;
...
...
YueJin_test_bench/source/Driver/CAN/RSCAN.c
View file @
be5389da
...
...
@@ -971,6 +971,7 @@ void RSCAN0_CH4_Receive(CAN_Frame_st_t *pstCANFrame)
uidWrite
=
0
;
UIDGetstep
=
5
;
General_Number_Disp
(
writesuccess
,
3
,
200
);
//写入成功
UID_ADD
();
}
}
}
...
...
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