Download Display - Service, Support

Transcript
03/05
3.4.9
MOBY API C-Library
Function - moby_s_getID
mobyErr_t moby_sgetID
(mobyHandle_t handle, mobyMtget_t *getInfo,
int address, uInt length, HANDLE sync,
mobyErr_t *err);
You can use this function to query which MDSs are located in the field. At the same
time you can read data from these MDSs.
Parameter
Type
Description
handle
mobyHandle_t
Handle of the serial interface and the channel
number or the Ethernet interface
getInfo
mobyMtget_t *
Pointer to the structure in which the number of
polled MDSs, the ID numbers of the MDSs and,
if necessary, the read MDS data are to be
stored.
address
int
Start address of the data on the MDS to be
read
length
uInt
≥0
0 to maximum length of the user data
minus 1
The address plus data length must be
less than the end address on the MDS.
- 16
= FFF0 hex
Start address of the OTP memory
Number of bytes to be read
≥0
0 to maximum length x
x = (242 – (4 * bunch size)) / bunch size
16
Length of the OTP memory
sync
HANDLE
Handle for synchronization with the response
telegram. Initialized Windows event due to
which the application is waiting for the response
telegram.
err
mobyErr_t *
Pointer to the structure in which the status byte
of the response telegram with any error codes
and interface errors is to be stored (see
chapter 3.7.2).
Return value:
≥0
<0
No error, command executed.
Interface error. See chapter 3.7.1.
Notice
The moby_s_getID command may only be sent to the SLG U92 when no command
is yet queued on the SLG U92. The antenna must be on. Otherwise an error
message is generated.
MOBY API C-Library
(4)J31069-D0137-U001-A5-7618
77