📄 editfloat.lst
字号:
C51 COMPILER V8.05a EDITFLOAT 04/11/2008 14:19:33 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE EDITFLOAT
OBJECT MODULE PLACED IN EditFloat.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\Widget\EditFloat.c LARGE BROWSE MDU_F120 DEBUG OBJECTEXTE
-ND PRINT(.\EditFloat.lst) OBJECT(EditFloat.obj)
line level source
1 /*
2 *********************************************************************************************************
3 * uC/GUI
4 * Universal graphic software for embedded applications
5 *
6 * (c) Copyright 2002, Micrium Inc., Weston, FL
7 * (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
8 *
9 * 礐/GUI is protected by international copyright laws. Knowledge of the
10 * source code may not be used to write a similar product. This file may
11 * only be used in accordance with a license and should not be redistributed
12 * in any way. We appreciate your understanding and fairness.
13 *
14 ----------------------------------------------------------------------
15 File : EditDec
16 Purpose : Edit decimal values
17 ---------------------------END-OF-HEADER------------------------------
18 */
19
20 #include <math.h>
21
22 #include "EDIT.h"
23 #include "gui\Core\GUIDebug.h"
24 #include "gui\Core\GUI_Protected.h"
25 #include "EDIT_Private.h"
26
27 #if GUI_WINSUPPORT
/*********************************************************************
*
* Exported routines
*
**********************************************************************
*/
void EDIT_SetFloatMode(EDIT_Handle hEdit, float Value, float Min, float Max, int Shift, U8 Flags) {
I32 _Value, _Min, _Max;
float Scale;
if (hEdit) {
WM_LOCK();
Scale =(float)GUI_Pow10[Shift];
_Value = floor(Scale * Value + 0.5);
_Min = floor(Scale * Min + 0.5);
_Max = floor(Scale * Max + 0.5);
EDIT_SetDecMode(hEdit, _Value, _Min, _Max, Shift, Flags);
WM_UNLOCK();
}
}
#else /* avoid empty object files */
51
52 void EditFloat_C(void);
53
54 #endif /* GUI_WINSUPPORT */
C51 COMPILER V8.05a EDITFLOAT 04/11/2008 14:19:33 PAGE 2
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = ---- ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -