Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
HaoJin232
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
时昊
HaoJin232
Commits
d880c932
Commit
d880c932
authored
Feb 21, 2024
by
高士达
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎉
init:增加单位转换服务函数
parent
d330e169
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
Unit_Convert_Service.c
...ce/source/Application/Unit_Convert/Unit_Convert_Service.c
+21
-0
Unit_Convert_Service.h
...ce/source/Application/Unit_Convert/Unit_Convert_Service.h
+13
-0
No files found.
HJ232_Source/source/Application/Unit_Convert/Unit_Convert_Service.c
0 → 100644
View file @
d880c932
#include "Unit_Convert_Service.h"
#define GUI_DISP_MODE_NORMAL 0x00 //正常
#define GUI_DISP_MODE_NEGATIVE 0x01 //负数
/**
* @brief 公里转换英里服务函数
* @return 英里 精度 1
*/
uint32_t
Unit_Conv_km_To_mile
(
unsigned
long
km
)
{
return
km
*
621
/
1000
;
//mile = km * 3937 / 6336
}
HJ232_Source/source/Application/Unit_Convert/Unit_Convert_Service.h
0 → 100644
View file @
d880c932
#ifndef UNIT_CONVERT_SERVICE_H
#define UNIT_CONVERT_SERVICE_H
#include "common.h"
extern
uint32_t
Unit_Conv_km_To_mile
(
unsigned
long
km
);
#endif
\ No newline at end of file
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