All Classes Namespaces Files Functions Pages
Rx.Capture.Frame Class Reference

A representation of a Captured Frame captured using a Rx.Capture.RawPacket. More...

Methods

 Bytes.Get
 Gets the bytes in HEX format of this CapturedFrame. More...
 
 Description.Get
 Returns a textual description of the object.
 
 Destructor
 
 Length.Get
 Gets the packet length of this CapturedFrame. This is the length without CRC. More...
 
 Parent.Get
 Returns the parent object.
 
 Timestamp.Get
 Gets timestamp [NS] of this CapturedFrame. More...
 

Class overview

A representation of a Captured Frame captured using a Rx.Capture.RawPacket.

Example
1 set port [ $server Port.Create "trunk-1-2" ]
2  set capture [ $port Rx.Capture.Add ]
3  $capture Start
4  ... $capture Stop
5  set result [ $capture Result.Get ]
6  $capture Frames.Get

Definition at line 18165 of file api.tcl.

Method documentation

Rx.Capture.Frame::Bytes.Get

Gets the bytes in HEX format of this CapturedFrame.

Returns
hex representation of the content of the captured frame
Example

This example gets the bytes in HEX

1 $CapturedFrame Bytes.Get

Returns:

00ff1c00000200ff1c00000108004500002e00000000141192a70a0a00020a0a000307d107d2001a0f32dddddddddddddddddddddddddddddddddddd 

Definition at line 18177 of file api.tcl.

Rx.Capture.Frame::Length.Get

Gets the packet length of this CapturedFrame. This is the length without CRC.

Returns
Lenght of the packet without CRC
Example

This example gets the received packet counter

1 $CapturedFrame Length.Get

Returns:

60 

Definition at line 18199 of file api.tcl.

Rx.Capture.Frame::Timestamp.Get

Gets timestamp [NS] of this CapturedFrame.

Returns
Timestamp in nanoseconds
Example

This example gets the timestamp of the captured frame

1 $CapturedFrame Timestamp.Get

Returns:

1425566815680469010 

Definition at line 18216 of file api.tcl.