![DAP Technology 1394 Operation Manual Download Page 257](http://html.mh-extra.com/html/dap-technology/1394/1394_operation-manual_509853257.webp)
Mil1394 Protocol support
257
Copyright © DapTechnology B.V., 2005-2019 - All Rights Reserved., 5/20/2019
// Select Node
selectFireSpyNode (
0
)
// Main loop
while
true
// Wait for the beginning of a frame and send the STOF packet
waitStartOfFrame ()
sendPacketNextFrame ( STOFPacket,
0
)
// Set a data CRC error to the packet if the control panel button is down
if
getControlValue ( CONTROL_ERROR )
setControlValue ( CONTROL_ERROR,
1
)
setSendDataCRCError ( customOffsetPacket,
true
)
else
setControlValue ( CONTROL_ERROR,
0
)
setSendDataCRCError ( customOffsetPacket,
false
)
// Send the packet with custom frame offset
frameTime = getControlValue ( CONTROL_FRAMETIME )
setPacketDataFields
( customOffsetPacket, id )
setPacketDataQuadlet
(
customOffsetPacket,
6
, id
)
sendPacketNextFrame ( customOffsetPacket, frameTime )
// Update control panel
setControlValue ( CONTROL_OFFSET, frameTime )
setControlValue ( CONTROL_ID, id )
grabControlValues ( id )
// Increment packet id
id = id +
1
//=======================================================================
========
// Functions
//=======================================================================
========
int32
createSTOFPacket ()
// Create a packet buffer
int32
p = newPacket (
512
)
// Set the packet data from the Data Editor
fillPacket
( p, HEADER_EMPTY_STREAM, STOF_PACKETDATA )
fillPacketHeader
(
p, HEADER_EMPTY_STREAM
)
fillPacketData
(
p, STOF_PACKETDATA
)
// Set the channel
setPacketHeaderFields
( p,
31
)
setPacketHeaderField
(
p,
0
,
18
,
6
,
0x1F
)
// Set packet speed
setPacketSpeed ( p, SPEED )
// Enable auto VPC calculation
enableAutoVPC ( p,
true
)
Summary of Contents for 1394
Page 1: ...1394 Analyzer Operation Manual Hardware and Software Guide Doc DT PRO134MAN700E ...
Page 11: ...1394AnalyzerOperationManual 11 456 The SCSI2 Connector 457 The SUBD connector ...
Page 187: ...Scriptor 187 Copyright DapTechnology B V 2005 2019 All Rights Reserved 5 20 2019 ...
Page 199: ...Scriptor 199 Copyright DapTechnology B V 2005 2019 All Rights Reserved 5 20 2019 ...
Page 363: ...FormatEditor 363 Copyright DapTechnology B V 2005 2019 All Rights Reserved 5 20 2019 ...