JLab Signal Distribution Switch Slot module
A5
|
Functions | |
int | sdInit (int flag) |
Initialize the Signal Distribution Module. More... | |
int | sdSetTiFastLink (int enable) |
Enable or Disable the Fast link to the TI. More... | |
int | sdSetPLLClockFrequency (int iclk, int ifreq) |
Set the PLL Clock Frequency of A/B/Both. More... | |
int | sdSetClockMode (int iclk, int imode) |
Select whether the Clock fanned out will be jitter attenuated (PLL on) or as received from the TI. More... | |
int | sdReset () |
Reset the SD. More... | |
int | sdSetActivePayloadPorts (unsigned int imask) |
Routine for user to define the Payload Ports that participate in Trigger Out, Busy Out, Token, and Status communication. More... | |
int | sdSetActiveVmeSlots (unsigned int vmemask) |
Routine for user to define the Vme Slots that participate in Trigger Out, Busy Out, Token, and Status communication. More... | |
int sdInit | ( | int | flag | ) |
Initialize the Signal Distribution Module.
flag | Initialization bitmask
|
References SDStruct::csrTest, SD_CSRTEST_TEST_RESET, SD_INIT_IGNORE_VERSION, SD_SUPPORTED_FIRMWARE, SDBASE, SDLOCK, SDUNLOCK, TIp, TSp, and SDStruct::version.
int sdReset | ( | ) |
Reset the SD.
References SD_SYSTEM_TEST_RESET, SDLOCK, SDUNLOCK, and SDStruct::system.
int sdSetActivePayloadPorts | ( | unsigned int | imask | ) |
Routine for user to define the Payload Ports that participate in Trigger Out, Busy Out, Token, and Status communication.
imask | Payload port mask |
References SDStruct::busyoutPorts, SDStruct::payloadPorts, SDLOCK, SDUNLOCK, SDStruct::tokenPorts, and SDStruct::trigoutPorts.
Referenced by sdSetActiveVmeSlots().
int sdSetActiveVmeSlots | ( | unsigned int | vmemask | ) |
Routine for user to define the Vme Slots that participate in Trigger Out, Busy Out, Token, and Status communication.
vmemask | VME Slot mask
|
References sdSetActivePayloadPorts().
int sdSetClockMode | ( | int | iclk, |
int | imode | ||
) |
Select whether the Clock fanned out will be jitter attenuated (PLL on) or as received from the TI.
iclk | Clock Selection
|
imode | Mode selection
|
References SD_SYSTEM_CLKA_BYPASS_MODE, SD_SYSTEM_CLKB_BYPASS_MODE, SDLOCK, SDUNLOCK, and SDStruct::system.
int sdSetPLLClockFrequency | ( | int | iclk, |
int | ifreq | ||
) |
Set the PLL Clock Frequency of A/B/Both.
iclk | Which side of crate to activate PLL
|
ifreq | Frequency to lock on.
|
References SD_SYSTEM_CLKA_FREQUENCY_MASK, SD_SYSTEM_CLKB_FREQUENCY_MASK, SDLOCK, SDUNLOCK, and SDStruct::system.
int sdSetTiFastLink | ( | int | enable | ) |
Enable or Disable the Fast link to the TI.
enable | Enable flag 0 : Disable >0 : Enable |
References SD_SYSTEM_TI_LINK_ENABLE, SDLOCK, SDUNLOCK, and SDStruct::system.