negut 发表于 2022-4-26 16:26:55

[Question]Callback for help

Hi, How can i find the memory address of a control with ID 0x5A02   for example in C language.?

zzs999k 发表于 2022-4-27 08:54:01

    use   sys_read_vp(u16 addr,u8* buf,u16 len) and   sys_write_vp(u16 addr,u8* buf,u16 len)function

negut 发表于 2022-4-27 14:36:05

zzs999k 发表于 2022-4-27 08:54
use   sys_read_vp(u16 addr,u8* buf,u16 len) and   sys_write_vp(u16 addr,u8* buf,u16 len)functi ...

no , i did not want that   but
for display variable "Slider display" from dgus user guide
VP is at offset 0x6
.Which is basic address of display variable "Slider Display".

zzs999k 发表于 2022-4-27 14:48:09

You got it wrong "Slider Display". , this control is set to a variable address, to the variable address assignment can change the display, you can also set the description pointer, the description pointer offset 0X06 is the scale indicating the y coordinate position shown by the icon (x coordinates longitudinally) . For example, set description pointer 0X5000, modify 0X5006 is to modify the scale indicator icon display y coordinate position.   

0x5A02 is meaningless.

negut 发表于 2022-4-27 15:32:55

本帖最后由 negut 于 2022-4-27 15:37 编辑

zzs999k Posted on 2022-4-27 14:48
You got it wrong "Slider Display". , this control is set to a variable address, to the variable addr ...
You mean SP description pointer right ?
I upload two images from DWIN development guide.
There at Slider display
Address SPAddress Definition Length (bytes)Description
0x00 0x5A02 2
0x02 *SP 2 Parameter Pointer.
                                                      0xFFFF: Disables SP (no run-time modification).
0x04 0x000C 2
0x06 0x00 *VP 2 Variable Pointer.
0x08 0x01 V_Begin 2 Minimum value accepted by the control.
0x0A 0x02 V_End 2 Maximum value accepted by the control.
0x0C 0x03 x_Begin 2 Minimum position of the slider, when its value equals “V_Begin” .
                                                               X coordinate for horizontal sliders, Y coordinate for vertical
0x0E 0x04 x_End 2
...................................................... ................................................................ .........................

Pls refer to first three lines.
adress 0x00, 0x02 , 0x04 from this table.
Also this table with parameter must have a location in memory .Which is that ? *VP ?
&VP = *table_address ? it is self pointer of this table?( to point to it self is like object characteristic   " this    in OOP."

zzs999k 发表于 2022-4-27 15:40:36

Please refer to the SPAddress   Address No use         for example offset 0x1 Minimum value accepted by the control.      offset 0x2 Maximum value accepted by the control.

negut 发表于 2022-4-27 16:39:18

zzs999k 发表于 2022-4-27 15:40
Please refer to the SPAddress   Address No use         for example offset 0x1 Minimum value acce ...

You mean that the first lines can not be accesed by application code , and only accessed by OS code ?

zzs999k 发表于 2022-4-27 17:28:09

negut 发表于 2022-4-27 16:39
You mean that the first lines can not be accesed by application code , and only accessed by OS cod ...

Yes.:lol:lol
页: [1]
查看完整版本: [Question]Callback for help