![Yoctopuce Yocto-GPS Скачать руководство пользователя страница 142](http://html1.mh-extra.com/html/yoctopuce/yocto-gps/yocto-gps_user-manual_3415557142.webp)
halt
;
end
;
// forces a device inventory
if(
yapiUpdateDeviceList
(
1
,errmsg
)
<
0
)
then
begin
writeln
(
errmsg
)
;
halt
;
end
;
// loads all device handles into dataBuffer
if
yapiGetAllDevices
(
@dataBuffer,
sizeof
(
dataBuffer
)
,neededsize,errmsg
)
<
0
then
begin
writeln
(
errmsg
)
;
halt
;
end
;
// gets device info from each handle
for
i:=
0
to
neededsize
div
sizeof
(
integer
)
-
1
do
begin
if
(
apiGetDeviceInfo
(
dataBuffer
[
i
]
, devinfos, errmsg
)
<
0
)
then
begin
writeln
(
errmsg
)
;
halt
;
end
;
writeln
(
pansichar
(
@devinfos.
serial
)
+
' ('
+
pansichar
(
@devinfos.
productname
)
+
')'
)
;
end
;
end
.
VB6 and yapi.dll
Each entry point from the yapi.dll is duplicated. You will find one regular C-decl version and one
Visual Basic 6 compatible version, prefixed with
vb6_
.
19.4. Porting the high level library
As all the sources of the Yoctopuce API are fully provided, you can very well port the whole API in
the language of your choice. Note, however, that a large portion of the API source code is
automatically generated.
Therefore, it is not necessary for you to port the complete API. You only need to port the
yocto_api
file and one file corresponding to a function, for example
yocto_relay
. After a little additional work,
Yoctopuce is then able to generate all other files. Therefore, we highly recommend that you contact
Yoctopuce support before undertaking to port the Yoctopuce library in another language.
Collaborative work is advantageous to both parties.
19. Using with unsupported languages
136
www.yoctopuce.com
Содержание Yocto-GPS
Страница 1: ...Yocto GPS User s guide...
Страница 2: ......
Страница 6: ...22 Characteristics 557 Blueprint 559 Index 561...
Страница 10: ...4 www yoctopuce com...
Страница 14: ...8 www yoctopuce com...
Страница 18: ...12 www yoctopuce com...
Страница 22: ...16 www yoctopuce com...
Страница 38: ...32 www yoctopuce com...
Страница 42: ...36 www yoctopuce com...
Страница 54: ...48 www yoctopuce com...
Страница 72: ...66 www yoctopuce com...
Страница 92: ...86 www yoctopuce com...
Страница 122: ...116 www yoctopuce com...
Страница 132: ...126 www yoctopuce com...
Страница 159: ...20 High level API Reference On failure throws an exception or returns a negative error code www yoctopuce com 153...
Страница 564: ...22 Characteristics 558 www yoctopuce com...
Страница 565: ......
Страница 566: ......