beautypg.com

Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 4

background image


Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual

API Description 4

Add a Capture Pattern ............................................................................................................. 63

Remove a Capture Pattern ...................................................................................................... 66

Exclude/Include Specific Pattern Items ................................................................................... 66

Set Memory Usage Parameters ............................................................................................... 68

Set Output Sample File Path .................................................................................................... 70

Set Port Configuration ............................................................................................................. 71

Summary ................................................................................................... 72

Using Initiator/Host Emulator API Functions .................................................. 73

Initialize an Initiator Capture Project Object ............................................ 74

Create a New Initiator Capture Project .................................................... 74

Run, Stop and Create-Sample for an Initiator Capture Project ................ 75

Open a Saved Initiator Capture Project .................................................... 77

Modify an Initiator Capture Project .......................................................... 78

Add/ Insert a packet in Initiator ............................................................................................... 79

Add/ Insert Events in Initiator.................................................................................................. 81

Add/ Insert an Instruction in Initiator ...................................................................................... 83

Remove/Delete an Inserted Packet ......................................................................................... 84

Remove/Delete an Inserted Event/Instruction ........................................................................ 84

Error Injection on Packets in Initiator ...................................................................................... 85

Summary ................................................................................................... 97

Using Target/Device Emulator API Functions ............................................... 100

Initialize and Create a New Target Emulator Object .............................. 100

Open a Saved Target Emulator ............................................................... 101

Modify an Existing Target Emulator Project ........................................... 101

Modify Pages ......................................................................................................................... 101

Error Injection on Packets of Target Emulator....................................................................... 103

Summary ................................................................................................. 133

Using Trainer ................................................................................................. 139

Create and Setup your API Application................................................... 139

Initialize your API Application ................................................................. 140

Set a valid path for the output file of your application .......................................................... 140

Declare required objects in main class of your application ................................................... 141

Create Instances of the two objects just declared in the main class of your application ...... 141

Finalize the Initialization by calling “InitializeSystem ()”........................................................ 142

Connecting to the Board ......................................................................... 143

Start Trainer ............................................................................................ 144

Stop/ Resume Trainer ............................................................................. 146

Summary ................................................................................................. 147