Sierra M6
‐
2 SAS/SATA Protocol Analyzer User Manual
181
Target and Device Emulation
LeCroy Corporation
Target Emulator Settings (SAS)
Click the
Settings
tab to display the Target Emulator Settings dialog.
Figure 2.186: SAS: Target Emulator Settings Dialog
The Settings page opens with a default set of values, which you can modify. To return to
these values, click the
Default
Settings
button.
Define the Target
Enter a
SAS
Address,
Data
Frame
Payload
Size,
Logical
Block
Size,
Linked
Command
Expired
Time
, and
ALIGN
Transmission
Period
in the corresponding text box.
Media Settings
Enter a value for Average Access Time to simulate Seek/Access time delay of a real device.
Enter a Number of Writable Areas.
Define
a
Start
and an
End
Address,
click the down
arrow under the
Area
Type
, and choose
Normal
Writable,
Circular
Writable
, or
Non
‐
Writable
.
Note:
To set and get the settings of Media Settings Area Types, use these two functions:
SetMediaAreaAttribute
(int nAreaIndex, int nStartAddress,
int nEndAddress, TrgEmulMediaAreaTypeEnum eAreaType, int* pnErrorCode)
GetMediaAreaAttribute
(int nAreaIndex, int* pnStartAddress,
int* pnEndAddress, TrgEmulMediaAreaTypeEnum* peAreaType)
nAreaIndex
: Specifies the (zero base) index of the Area.
Note:
The Number of Areas
should be set by the
SetNumberOfMediaArea
function prior to calling these functions.
nStartAddress
: Specifies the start address of the Area.
nEndAddress
: Specifies the End address of the Area.
eAreaType
: Specifies the Area Type. This parameter should be in
TrgEmulMediaAreaTypeEnum
format. Its possible values are:
typedef enum {eNORMAL_WRITABLE = 0, eCIRCULAR_WRITABLE = 1,
eNONE_WRITABLE = 2} TrgEmulMediaAreaTypeEnum;