JLab fADC250-V2 Library  0x42
SDC Initialization/Configuration

Functions

int faSDC_Config (unsigned short cFlag, unsigned short bMask)
 Configure the Signal Distribution Card (SDC) More...
 
void faSDC_Enable (int nsync)
 Enable Triggers and/or SyncReset on the SDC. More...
 
void faSDC_Disable ()
 Disable Triggers and SyncReset on the SDC. More...
 
void faSDC_Sync ()
 Perform a SyncReset from the SDC. More...
 
void faSDC_Trig ()
 Perform a trigger pulse from the SDC. More...
 

Detailed Description

Function Documentation

◆ faSDC_Config()

int faSDC_Config ( unsigned short  cFlag,
unsigned short  bMask 
)

Configure the Signal Distribution Card (SDC)

Parameters
idSlot number
cFlagcontrols the configuation of the SDC
  • 0: Default Mode Internal CLK, Sync External Trigger and Sync Reset
  • >0: Pass through mode
bMaskmask of Busy enables for the SDC - Do not Enable busy if there is no FADC
Returns
OK if successful, otherwise ERROR.

References fadc_sdc_struct::busy_enable, fadc_sdc_struct::csr, fadc_sdc_struct::ctrl, FASDC_CSR_INIT, FASDC_CTRL_ENABLE_SOFT_SRESET, FASDC_CTRL_ENABLE_SOFT_TRIG, FASDC_CTRL_NOSYNC_SRESET, FASDC_CTRL_NOSYNC_TRIG, FASDCLOCK, and FASDCUNLOCK.

Referenced by faInit().

◆ faSDC_Disable()

void faSDC_Disable ( )

Disable Triggers and SyncReset on the SDC.

References fadc_sdc_struct::ctrl, FASDC_CTRL_ENABLE_SOFT_SRESET, FASDC_CTRL_ENABLE_SOFT_TRIG, FASDCLOCK, and FASDCUNLOCK.

Referenced by faGDisable().

◆ faSDC_Enable()

void faSDC_Enable ( int  nsync)

Enable Triggers and/or SyncReset on the SDC.

Parameters
nsync
  • 0: Front panel triggers and syncreset
  • !0: Front panel triggers only

References fadc_sdc_struct::ctrl, FASDC_CTRL_ENABLE_SOFT_SRESET, FASDCLOCK, and FASDCUNLOCK.

Referenced by faGEnable().

◆ faSDC_Sync()

void faSDC_Sync ( )

Perform a SyncReset from the SDC.

References fadc_sdc_struct::csr, FASDC_CSR_SRESET, FASDCLOCK, and FASDCUNLOCK.

◆ faSDC_Trig()

void faSDC_Trig ( )

Perform a trigger pulse from the SDC.

References fadc_sdc_struct::csr, FASDC_CSR_TRIG, FASDCLOCK, and FASDCUNLOCK.