![Analog Devices ADIS1700 Series Скачать руководство пользователя страница 115](http://html1.mh-extra.com/html/analog-devices/adis1700-series/adis1700-series_user-manual_2939752115.webp)
Table 7-167:
Get Log Data Summary Response - Payload
Field Name
Type
Notes
Start Index
U4
Total Logged Items
U4
Space Left
U4
Expressed in bytes
Logged Type Count
U4
N
× N
Type ID
U1
Count
U3
Number of logged items of type TypeID
Get Log Data
The Get Log Data command requests the content of a certain number of items of the desired types starting at a
specific index. The desired types are the ones included in the required types list. The device replies by trying to fit
the content of the indicated number of items or as many as possible in the output buffer in the same order in which
they were logged. The logged item content is always preceded by a header containing type, total size, sequence ID,
offset and chunk size. Each new header is 32-bit aligned. The offset and chunk size are needed whenever the logged
item cannot fit into the communication buffer. Otherwise, they are set respectively to 0 and total size.
Use the following procedure to download all the logged items of the desired types consists:
1. Send a first command with start index 0, offset 0,
Num Items
equal to a big number (for example 2
31
). Flag
the desired types in the Types Filter Mask.
2. If the response indicates a number or remaining items greater than zero, send a new command. But, set the
Start Index
and
Offset
to the values indicated in the response by next index and next offset.
3. Repeat until the number of remaining items indicated in the response
Remaining Items
field is zero.
Whenever the response
Next Offset
field is not zero, the last logged item content could not fit inside the
output buffer. For example, suppose that the log index is set to the type and size shown in the
Example Device
Log Buffer Content
table and the buffer size is 50kb..
Table 7-168:
Example Device Log Buffer
Content
Seq ID
Type
Size
101
1
1kB
102
2
45kB
103
10
80kB
104
1
1kB
If the user requests to download all the logged data, the sequence of commands and responses is shown in the
Exam-
ple Command
and
Example Response
tables. The size of the headers when computing the offsets is ignored in this
example.
Storage Module Messages
7–66
ADIS1700x Vision-Sensing Camera Module User Guide