![DAP Technology 1394 Скачать руководство пользователя страница 258](http://html.mh-extra.com/html/dap-technology/1394/1394_operation-manual_509853258.webp)
Mil1394 Protocol support
258
Copyright © DapTechnology B.V., 2005-2019 - All Rights Reserved., 5/20/2019
return
p
//-------------------------------------------------------------------------------
int32
createMil1394Packet (
int32
channel )
// Create a packet buffer
int32
p = newPacket (
512
)
// Set the packet data from the Data Editor
fillPacket
( p, HEADER_EMPTY_STREAM, Mil1394_PACKETDATA )
fillPacketHeader
(
p, HEADER_EMPTY_STREAM
)
fillPacketData
(
p, Mil1394_PACKETDATA
)
// Set the channel
setPacketHeaderFields
( p, channel )
setPacketHeaderField
(
p,
0
,
18
,
6
, channel
)
// Set packet speed
setPacketSpeed ( p, SPEED )
// Enable auto VPC calculation
enableAutoVPC ( p,
true
)
return
p
Data definitions
Data Objects are used for setting the packet contents to the correct formats. The pictures below show the
data definitions used by the script. The first picture shows the header of a stream packet. The second
picture shows the packet contents of a Mil1394 STOF packet and the third picture shows the packet
contents of a standard Mil1394 Stream packet. Note that all fields are just set to zero and that the data
objects' only purpose is to set the correct format, not the contents. If you like to send packets that do
contain some data values, you can changed the fields in these data definitions.
Stream Header
The channel field will be set by the script code itself. Therefore this header can be used by both the STOF
packet and the Mil1394 data packet.
Содержание 1394
Страница 1: ...1394 Analyzer Operation Manual Hardware and Software Guide Doc DT PRO134MAN700E ...
Страница 11: ...1394AnalyzerOperationManual 11 456 The SCSI2 Connector 457 The SUBD connector ...
Страница 187: ...Scriptor 187 Copyright DapTechnology B V 2005 2019 All Rights Reserved 5 20 2019 ...
Страница 199: ...Scriptor 199 Copyright DapTechnology B V 2005 2019 All Rights Reserved 5 20 2019 ...
Страница 363: ...FormatEditor 363 Copyright DapTechnology B V 2005 2019 All Rights Reserved 5 20 2019 ...