JLab f1TDC-V2,V3 Library  V2:0x0e,V3:0x15
 All Data Structures Files Functions Variables Typedefs Macros Groups
Routines to test lines to Switch Slot Modules

Functions

void f1TestSetSystemTestMode (int id, int mode)
 Enable/Disable System test mode. More...
 
void f1TestSetTrigOut (int id, int mode)
 Set the level of Trig Out to the SD. More...
 
void f1TestSetBusyOut (int id, int mode)
 Set the level of Busy Out to the SD. More...
 
void f1TestSetSdLink (int id, int mode)
 Set the level of the SD Link. More...
 
void f1TestSetTokenOut (int id, int mode)
 Set the level of Token Out to the SD. More...
 
int f1TestGetStatBitB (int id)
 Get the level of the StatBitB to the SD. More...
 
int f1TestGetTokenIn (int id)
 Get the level of the Token In from the SD. More...
 
int f1TestGetClockCounterStatus (int id)
 Return the status of the 250Mhz Clock Counter. More...
 
unsigned int f1TestGetClockCounter (int id)
 Return the value of the 250Mhz Clock scaler. More...
 
unsigned int f1TestGetSyncCounter (int id)
 Return the value of the SyncReset scaler. More...
 
unsigned int f1TestGetTrig1Counter (int id)
 Return the value of the trig1 scaler. More...
 
unsigned int f1TestGetTrig2Counter (int id)
 Return the value of the trig2 scaler. More...
 
void f1TestResetClockCounter (int id)
 Reset the counter of the 250MHz Clock scaler. More...
 
void f1TestResetSyncCounter (int id)
 Reset the counter of the SyncReset scaler. More...
 
void f1TestResetTrig1Counter (int id)
 Reset the counter of the trig1 scaler. More...
 
void f1TestResetTrig2Counter (int id)
 Reset the counter of the trig2 scaler. More...
 

Detailed Description

Function Documentation

unsigned int f1TestGetClockCounter ( int  id)

Return the value of the 250Mhz Clock scaler.

Available only in System Test Mode

See Also
f1TestSetSystemTestMode
Parameters
id
  • Slot Number
Returns
250Mhz Clock scaler counter if successful, otherwise ERROR.

References f1ID, F1LOCK, f1p, and F1UNLOCK.

int f1TestGetClockCounterStatus ( int  id)

Return the status of the 250Mhz Clock Counter.

Available only in System Test Mode

See Also
f1TestSetSystemTestMode
Parameters
id
  • Slot Number
Returns
1 if counting, 0 if not counting, otherwise ERROR.

References F1_TEST_CLOCK_COUNTER_STATUS, f1ID, F1LOCK, f1p, and F1UNLOCK.

int f1TestGetStatBitB ( int  id)

Get the level of the StatBitB to the SD.

Available only in System Test Mode

See Also
f1TestSetSystemTestMode
Parameters
id
  • Slot Number
Returns
1 if asserted, 0 if not, otherwise ERROR.

References F1_TEST_STATBITB_IN, f1ID, F1LOCK, f1p, and F1UNLOCK.

unsigned int f1TestGetSyncCounter ( int  id)

Return the value of the SyncReset scaler.

Available only in System Test Mode

See Also
f1TestSetSystemTestMode
Parameters
id
  • Slot Number
Returns
SyncReset scaler counter if successful, otherwise ERROR.

References f1ID, F1LOCK, f1p, and F1UNLOCK.

int f1TestGetTokenIn ( int  id)

Get the level of the Token In from the SD.

Available only in System Test Mode

See Also
f1TestSetSystemTestMode
Parameters
id
  • Slot Number
Returns
1 if asserted, 0 if not, otherwise ERROR.

References F1_TEST_TOKEN_IN, f1ID, F1LOCK, f1p, and F1UNLOCK.

unsigned int f1TestGetTrig1Counter ( int  id)

Return the value of the trig1 scaler.

Available only in System Test Mode

See Also
f1TestSetSystemTestMode
Parameters
id
  • Slot Number
Returns
trig1 scaler counter if successful, otherwise ERROR.

References f1ID, F1LOCK, f1p, and F1UNLOCK.

unsigned int f1TestGetTrig2Counter ( int  id)

Return the value of the trig2 scaler.

Available only in System Test Mode

See Also
f1TestSetSystemTestMode
Parameters
id
  • Slot Number
Returns
trig2 scaler counter if successful, otherwise ERROR.

References f1ID, F1LOCK, f1p, and F1UNLOCK.

void f1TestResetClockCounter ( int  id)

Reset the counter of the 250MHz Clock scaler.

Available only in System Test Mode

See Also
f1TestSetSystemTestMode
Parameters
id
  • Slot Number

References F1_CLOCK_SCALER_RESET, F1_CLOCK_SCALER_START, f1ID, F1LOCK, f1p, and F1UNLOCK.

void f1TestResetSyncCounter ( int  id)

Reset the counter of the SyncReset scaler.

Available only in System Test Mode

See Also
f1TestSetSystemTestMode
Parameters
id
  • Slot Number

References F1_SYNC_SCALER_RESET, f1ID, F1LOCK, f1p, and F1UNLOCK.

void f1TestResetTrig1Counter ( int  id)

Reset the counter of the trig1 scaler.

Available only in System Test Mode

See Also
f1TestSetSystemTestMode
Parameters
id
  • Slot Number

References F1_TRIG1_SCALER_RESET, f1ID, F1LOCK, f1p, and F1UNLOCK.

void f1TestResetTrig2Counter ( int  id)

Reset the counter of the trig2 scaler.

Available only in System Test Mode

Parameters
id
  • Slot Number

References F1_TRIG2_SCALER_RESET, f1ID, F1LOCK, f1p, and F1UNLOCK.

void f1TestSetBusyOut ( int  id,
int  mode 
)

Set the level of Busy Out to the SD.

Available only in System Test Mode

See Also
f1TestSetSystemTestMode
Parameters
id
  • Slot Number
mode
  • 0: Not asserted
  • >0: Asserted

References F1_TEST_BUSY_OUT, f1ID, F1LOCK, f1p, and F1UNLOCK.

void f1TestSetSdLink ( int  id,
int  mode 
)

Set the level of the SD Link.

Available only in System Test Mode

See Also
f1TestSetSystemTestMode
Parameters
id
  • Slot Number
mode
  • 0: Not asserted
  • >0: Asserted

References F1_TEST_SDLINK_OUT, f1ID, F1LOCK, f1p, and F1UNLOCK.

void f1TestSetSystemTestMode ( int  id,
int  mode 
)

Enable/Disable System test mode.

Parameters
id
  • Slot Number
mode
  • 0: Disable Test Mode
  • >0: Enable Test Mode

References F1_SINGLE_BOARD_TEST_MODE, f1ID, F1LOCK, f1p, and F1UNLOCK.

void f1TestSetTokenOut ( int  id,
int  mode 
)

Set the level of Token Out to the SD.

Available only in System Test Mode

See Also
f1TestSetSystemTestMode
Parameters
id
  • Slot Number
mode
  • 0: Not asserted
  • >0: Asserted

References F1_TEST_TOKEN_OUT, f1ID, F1LOCK, f1p, and F1UNLOCK.

void f1TestSetTrigOut ( int  id,
int  mode 
)

Set the level of Trig Out to the SD.

Available only in System Test Mode

See Also
f1TestSetSystemTestMode
Parameters
id
  • Slot Number
mode
  • 0: Not asserted
  • >0: Asserted

References F1_TEST_TRIG_OUT, f1ID, F1LOCK, f1p, and F1UNLOCK.