#include <BocCard.h>
Collaboration diagram for SctPixelRod::BocCard:
Public Member Functions | |
BocCard (RodModule &rod) | |
UINT32 | getSerialNumber () |
UINT32 | getManufacturer () |
UINT32 | getModuleType () |
UINT32 | getHardwareRevision () |
UINT32 | getFirmwareRevision () |
RodModule * | getRod () |
void | initialize () |
void | reset () |
void | status () |
void | status (std::ostream &) |
void | getLaserCurrent (const UINT32 channel, UINT32 buffer[], const UINT32 numChannels) throw (BocException&) |
UINT32 | getLaserCurrent (const UINT32 channel) throw (BocException&) |
void | setLaserCurrent (const UINT32 channel, const UINT32 buffer[], const UINT32 numChannels) throw (BocException&) |
void | setLaserCurrent (const UINT32 channel, const UINT32 value) throw (BocException&) |
void | getRxThreshold (const UINT32 channel, UINT32 buffer[], const UINT32 numChannels) throw (BocException&) |
UINT32 | getRxThreshold (const UINT32 channel) throw (BocException&) |
void | setRxThreshold (const UINT32 channel, const UINT32 buffer[], const UINT32 numChannels) throw (BocException&) |
void | setRxThreshold (const UINT32 channel, const UINT32 value) throw (BocException&) |
void | getRxDataDelay (const UINT32 channel, UINT32 buffer[], const UINT32 numChannels) throw (BocException&) |
UINT32 | getRxDataDelay (const UINT32 channel) throw (BocException&) |
void | setRxDataDelay (const UINT32 channel, const UINT32 buffer[], const UINT32 numChannels) throw (BocException&) |
void | setRxDataDelay (const UINT32 channel, const UINT32 value) throw (BocException&) |
void | getStrobeDelay (const UINT32 channel, UINT32 buffer[], const UINT32 numChannels) throw (BocException&) |
UINT32 | getStrobeDelay (const UINT32 channel) throw (BocException&) |
void | setStrobeDelay (const UINT32 channel, const UINT32 buffer[], const UINT32 numChannels) throw (BocException&) |
void | setStrobeDelay (const UINT32 channel, const UINT32 value) throw (BocException&) |
void | getBpmStreamInhibit (const UINT32 channel, UINT32 buffer[], const UINT32 numChannels) throw (BocException&) |
UINT32 | getBpmStreamInhibit (const UINT32 channel) throw (BocException&) |
void | setBpmStreamInhibit (const UINT32 channel, const UINT32 buffer[], const UINT32 numChannels) throw (BocException&) |
void | setBpmStreamInhibit (const UINT32 channel, const UINT32 value) throw (BocException&) |
void | getBpmMarkSpace (const UINT32 channel, UINT32 buffer[], const UINT32 numChannels) throw (BocException&) |
UINT32 | getBpmMarkSpace (const UINT32 channel) throw (BocException&) |
void | setBpmMarkSpace (const UINT32 channel, const UINT32 buffer[], const UINT32 numChannels) throw (BocException&) |
void | setBpmMarkSpace (const UINT32 channel, const UINT32 value) throw (BocException&) |
void | getBpmCoarseDelay (const UINT32 channel, UINT32 buffer[], const UINT32 numChannels) throw (BocException&) |
UINT32 | getBpmCoarseDelay (const UINT32 channel) throw (BocException&) |
void | setBpmCoarseDelay (const UINT32 channel, const UINT32 buffer[], const UINT32 numChannels) throw (BocException&) |
void | setBpmCoarseDelay (const UINT32 channel, const UINT32 value) throw (BocException&) |
void | getBpmFineDelay (const UINT32 channel, UINT32 buffer[], const UINT32 numChannels) throw (BocException&) |
UINT32 | getBpmFineDelay (const UINT32 channel) throw (BocException&) |
void | setBpmFineDelay (const UINT32 channel, const UINT32 buffer[], const UINT32 numChannels) throw (BocException&) |
void | setBpmFineDelay (const UINT32 channel, const UINT32 value) throw (BocException&) |
UINT32 | getClockControl () |
void | setClockControl (const UINT32 value) throw (BocException&) |
UINT32 | getRxDataMode () |
void | setRxDataMode (const UINT32 value) throw (BocException&) |
UINT32 | getRxDacClear () |
void | clearRxDac () |
UINT32 | getTxDacClear () |
void | clearTxDac () |
UINT32 | getVernierFinePhase () |
void | setVernierFinePhase (const UINT32 value) throw (BocException&) |
UINT32 | getVernierClockPhase0 () |
void | setVernierClockPhase0 (const UINT32 value) throw (BocException&) |
UINT32 | getVernierClockPhase1 () |
void | setVernierClockPhase1 (const UINT32 value) throw (BocException&) |
UINT32 | getVernierClockPhases (UINT32 *value0, UINT32 *value1) |
void | setVernierClockPhases (const UINT32 value) throw (BocException&) |
UINT32 | getBpmClockPhase () |
void | setBpmClockPhase (const UINT32 value) throw (BocException&) |
UINT32 | getBregClockPhase () |
void | setBregClockPhase (const UINT32 value) throw (BocException&) |
UINT32 | getBocReset () |
void | resetBoc () |
UINT32 | getBpmReset () |
void | resetBpm () |
UINT32 | getVpinReset () |
void | resetVpin () |
UINT32 | getBocOkReset () |
void | resetBocOk () |
UINT32 | getBocStatusRegister () |
double | getMonitorAdc (const UINT32 channel, std::string &units, std::string &type) throw (BocException&) |
double | getMonitorAdc (const UINT32 channel) throw (BocException&) |
std::string | getMonitorAdcUnits (const UINT32 channel) throw (BocException&) |
std::string | getMonitorAdcType (const UINT32 channel) throw (BocException&) |
UINT32 | getMonitorAdcCurrents (double currents[], UINT32 count, std::string &units) throw (BocException&) |
UINT32 | getMonitorAdcVoltages (double voltages[], UINT32 count, std::string &units) throw (BocException&) |
UINT32 | getMonitorAdcTemps (double temps[], UINT32 count, std::string &units) throw (BocException&) |
UINT32 | getMonitorAdcCurrentsCount () |
UINT32 | getMonitorAdcVoltagesCount () |
UINT32 | getMonitorAdcTempsCount () |
void | resetMonitorAdc () |
UINT32 | getInterlockStatus (UINT32 *localEnable, UINT32 *remoteEnable) |
UINT32 | getInterlockStatus () |
Private Member Functions | |
UINT32 | singleRead (const UINT32 bocAddress) throw (BocException&) |
Read and write to single BOC registers. | |
void | singleWrite (const UINT32 bocAddress, const UINT32 value) throw (BocException&) |
void | blockRead (const UINT32 bocAddress, UINT32 buffer[], const INT32 length) |
Read and write to a block of BOC registers. | |
void | blockWrite (const UINT32 bocAddress, const UINT32 buffer[], const INT32 length) |
UINT32 | bpmRead (const UINT32 bpm, const UINT32 stream, const UINT32 offset) |
Read and write to BPM streams. | |
void | bpmWrite (const UINT32 bpm, const UINT32 stream, const UINT32 offset, const UINT32 value) |
Private Attributes | |
RodModule * | m_myrod |
Handle for the ROD through which this BOC is accessed. | |
UINT32 | m_serialNumber |
BOC serial number (read in initialize method). Set on a pair of hex switches. | |
UINT32 | m_manufacturer |
BOC manufacturer (read in initialize method). Should be 0xCB. | |
UINT32 | m_moduleType |
BOC module type (read in initialize method). | |
UINT32 | m_hardwareRevision |
BOC hardware revision (read in initialize method). | |
UINT32 | m_firmwareRevision |
BOC firmware revision (read in initialize method). | |
UINT32 | m_bocType |
BOC type. | |
UINT32 | m_bocMask |
BOC setup bus mask. |
Definition at line 151 of file BocCard.h.
|
Read and write to a block of BOC registers. This method reads a block of 32-bit words from a BOC. Because the setup bus is slow, we have to wait after each read until the BOC_BUSY_0 bit is cleared. Hence we use the singleRead method in a loop. Definition at line 2692 of file BocCard.cxx. References singleRead(). |
Here is the call graph for this function:
|
This method writes a block of 32-bit words to a BOC. Because the setup bus is slow, we have to wait after each read until the BOC_BUSY_0 bit is cleared. Hence we use the singleWrite method in a loop. Definition at line 2712 of file BocCard.cxx. References singleWrite(). |
Here is the call graph for this function:
|
Read and write to BPM streams. This method reads from a BPM location, identified by BPM #, stream # and offset. Definition at line 2738 of file BocCard.cxx. References singleRead(). |
Here is the call graph for this function:
|
This method writes to a BPM location, identified by BPM #, stream # and offset. Definition at line 2762 of file BocCard.cxx. References singleWrite(). Referenced by initialize(). |
Here is the call graph for this function:
|
clearRxDac() clears the Rx Dac register by writing 1 followed by 0 to the register. A method to write a specific value to the register is not provided, as this is not a meaningful operation for the user. Definition at line 1624 of file BocCard.cxx. References m_bocType, SctPixelRod::PRE_PRODUCTION_BOC, and singleWrite(). Referenced by SctApi::CrateImpl::configureBOC(), initialize(), reset(), and SctApi::CrateImpl::restoreBOCRegisters(). |
Here is the call graph for this function:
|
clearTxDac() clears the Tx Dac register by writing 1 followed by 0 to the register. A method to write a specific value to the register is not provided, as this is not a meaningful operation for the user. Definition at line 1679 of file BocCard.cxx. References m_bocType, SctPixelRod::PRE_PRODUCTION_BOC, and singleWrite(). Referenced by SctApi::CrateImpl::configureBOC(), initialize(), reset(), and SctApi::CrateImpl::restoreBOCRegisters(). |
Here is the call graph for this function:
|
getBocOkReset() reads the contents of the BOC_OK Reset register. Definition at line 2092 of file BocCard.cxx. References m_bocType, and singleRead(). |
Here is the call graph for this function:
|
getBocReset() reads the contents of the BOC Reset register. Definition at line 1942 of file BocCard.cxx. References m_bocType, SctPixelRod::PRE_PRODUCTION_BOC, and singleRead(). Referenced by SctApi::CrateImpl::printBOCRegisters(). |
Here is the call graph for this function:
|
getBocStatusRegister() reads the contents of the BOC Status register. This is a readonly register, hence there is no "set" method provided. Definition at line 2135 of file BocCard.cxx. References m_bocMask, m_bocType, and singleRead(). Referenced by getInterlockStatus(), SctApi::CrateImpl::printBOCRegisters(), and status(). |
Here is the call graph for this function:
|
getBpmClockPhase() reads the contents of the BPM Clock Phase register. Definition at line 1872 of file BocCard.cxx. References m_bocMask, and singleRead(). Referenced by SctApi::CrateImpl::currentBOCRegisters(), and SctApi::CrateImpl::printBOCRegisters(). |
Here is the call graph for this function:
|
getBpmCoarseDelay() reads the contents of one or more BPM coarse delay registers. The method is overloaded to return either a number of consecutive channels from a starting channel number in a buffer, or a single channel via the method return value. "Channel" refers to the BOC channel number - the BPM stream number mapping is dealt with internally. Definition at line 1202 of file BocCard.cxx. Referenced by SctApi::CrateImpl::currentBOCSetup(), and SctApi::CrateImpl::printBOCSetup(). |
|
getBpmFineDelay() reads the contents of one or more BPM fine delay registers. The method is overloaded to return either a number of consecutive channels from a starting channel number in a buffer, or a single channel via the method return value. "Channel" refers to the BOC channel number - the BPM stream number mapping is dealt with internally. Definition at line 1337 of file BocCard.cxx. Referenced by SctApi::CrateImpl::currentBOCSetup(), and SctApi::CrateImpl::printBOCSetup(). |
|
getBpmMarkSpace() reads the contents of one or more BPM mark/space registers. The method is overloaded to return either a number of consecutive channels from a starting channel number in a buffer, or a single channel via the method return value. "Channel" refers to the BOC channel number - the BPM stream number mapping is dealt with internally. Definition at line 1066 of file BocCard.cxx. Referenced by SctApi::CrateImpl::currentBOCSetup(), and SctApi::CrateImpl::printBOCSetup(). |
|
getBpmReset() reads the contents of the BPM Reset register. Definition at line 1988 of file BocCard.cxx. References m_bocType, SctPixelRod::PRE_PRODUCTION_BOC, and singleRead(). Referenced by SctApi::CrateImpl::printBOCRegisters(). |
Here is the call graph for this function:
|
getBpmStreamInhibit() reads the contents of one or more BPM stream inhibit registers. The method is overloaded to return either a number of consecutive channels from a starting channel number in a buffer, or a single channel via the method return value. "Channel" refers to the BOC channel number - the BPM stream number mapping is dealt with internally. Definition at line 930 of file BocCard.cxx. |
|
getBregClockPhase() reads the contents of the BREG Clock Phase register. Definition at line 1906 of file BocCard.cxx. References m_bocMask, and singleRead(). Referenced by SctApi::CrateImpl::currentBOCRegisters(), and SctApi::CrateImpl::printBOCRegisters(). |
Here is the call graph for this function:
|
getClockControl() reads the contents of the Clock Control register. Definition at line 1476 of file BocCard.cxx. References m_bocType, SctPixelRod::PRE_PRODUCTION_BOC, and singleRead(). Referenced by SctApi::CrateImpl::currentBOCRegisters(), and SctApi::CrateImpl::printBOCRegisters(). |
Here is the call graph for this function:
|
getInterlockStatus() returns the status of the laser interlocks. The returned value is 0 if there is an interlock, 1 if not. The relevant bits on the status register are used. The state of the local enable and remote enable can be returned in the arguments, to give extra information if required - the method is overloaded so that the user can avoid this complication if necessary. Definition at line 2547 of file BocCard.cxx. References getBocStatusRegister(), m_bocType, and SctPixelRod::PRE_PRODUCTION_BOC. Referenced by SctApi::CrateImpl::checkBOCLasersOn(). |
Here is the call graph for this function:
|
getLaserCurrent() reads the contents of one or more Tx laser current DACs. The method is overloaded to return either a number of consecutive channels from a starting channel number in a buffer, or a single channel via the method return value. Definition at line 280 of file BocCard.cxx. Referenced by SctApi::CrateImpl::currentBOCSetup(), and SctApi::CrateImpl::printBOCSetup(). |
|
getMonitorAdc() gets the reading for a single channel of the monitoring ADC on the BOC. The returned value is in "natural" units: mA for current, V for voltage and degrees C for temperature. The method is now (11 March 2004) overloaded to provide the units and type of quantity monitored if desired. Definition at line 2161 of file BocCard.cxx. Referenced by SctApi::CrateImpl::getBOCMonitorArray(). |
|
getMonitorAdcCurrents() returns the PIN currents in an array, together with a count of the number of currents returned and the units used. Definition at line 2349 of file BocCard.cxx. References SctPixelRod::MONITOR_CURRENT. |
|
getMonitorAdcCurrentsCount() returns the number of PIN currents monitored. This is to allow the user to provide an array of adequate length to the method getMonitorAdcCurrents. Definition at line 2383 of file BocCard.cxx. References SctPixelRod::MONITOR_CURRENT. |
|
getMonitorAdcTemps() returns the temperatures in an array, together with a count of the number of temperatures returned and the units used. Definition at line 2465 of file BocCard.cxx. |
|
getMonitorAdcTempsCount() returns the number of temperatures monitored. This is to allow the user to provide an array of adequate length to the method getMonitorAdcTemps. Definition at line 2499 of file BocCard.cxx. |
|
getMonitorAdcType() returns the type of information monitored (PIN current, PIN voltage or temperature). Definition at line 2284 of file BocCard.cxx. References SctPixelRod::MONITOR_CURRENT. |
|
getMonitorAdcUnits() returns the units in which the channel monitoring is reported by getMonitorAdc(). Definition at line 2316 of file BocCard.cxx. References SctPixelRod::MONITOR_CURRENT. |
|
getMonitorAdcVoltages() returns the PIN voltages in an array, together with a count of the number of voltages returned and the units used. Definition at line 2407 of file BocCard.cxx. |
|
getMonitorAdcVoltagesCount() returns the number of PIN voltages monitored. This is to allow the user to provide an array of adequate length to the method getMonitorAdcVoltages. Definition at line 2441 of file BocCard.cxx. |
|
getRxDacClear() reads the contents of the Rx Dac Clear register. Definition at line 1594 of file BocCard.cxx. References m_bocType, SctPixelRod::PRE_PRODUCTION_BOC, and singleRead(). Referenced by SctApi::CrateImpl::currentBOCRegisters(), and SctApi::CrateImpl::printBOCRegisters(). |
Here is the call graph for this function:
|
getRxDataDelay() reads the contents of one or more Rx data delay registers. The method is overloaded to return either a number of consecutive channels from a starting channel number in a buffer, or a single channel via the method return value. Definition at line 597 of file BocCard.cxx. Referenced by SctApi::CrateImpl::currentBOCSetup(), and SctApi::CrateImpl::printBOCSetup(). |
|
getRxDataMode() reads the contents of the Data Mode register. Definition at line 1553 of file BocCard.cxx. References singleRead(). Referenced by SctApi::CrateImpl::currentBOCRegisters(), and SctApi::CrateImpl::printBOCRegisters(). |
Here is the call graph for this function:
|
getRxThreshold() reads the contents of one or more Rx threshold DACs. The method is overloaded to return either a number of consecutive channels from a starting channel number in a buffer, or a single channel via the method return value. Definition at line 438 of file BocCard.cxx. Referenced by SctApi::CrateImpl::currentBOCSetup(), and SctApi::CrateImpl::printBOCSetup(). |
|
getStrobeDelay() reads the contents of one or more strobe delay registers. The method is overloaded to return either a number of consecutive channels from a starting channel number in a buffer, or a single channel via the method return value. Note that these registers no longer do anything that is of practical use - the methods are retained for completeness and might be made private at a later date. Definition at line 760 of file BocCard.cxx. |
|
getTxDacClear() reads the contents of the Tx Dac Clear register. Definition at line 1649 of file BocCard.cxx. References m_bocType, SctPixelRod::PRE_PRODUCTION_BOC, and singleRead(). Referenced by SctApi::CrateImpl::currentBOCRegisters(), and SctApi::CrateImpl::printBOCRegisters(). |
Here is the call graph for this function:
|
getVernierClockPhase0() reads the contents of the Vernier Clock Phase register 0. This is one of two clock phase registers allowing the user to set a delay of up to 48 nsec. Definition at line 1739 of file BocCard.cxx. References singleRead(). Referenced by SctApi::CrateImpl::currentBOCRegisters(), getVernierClockPhases(), and SctApi::CrateImpl::printBOCRegisters(). |
Here is the call graph for this function:
|
getVernierClockPhase1() reads the contents of the Vernier Clock Phase register 1. This is one of two clock phase registers allowing the user to set a delay of up to 48 nsec. Definition at line 1780 of file BocCard.cxx. References singleRead(). Referenced by SctApi::CrateImpl::currentBOCRegisters(), getVernierClockPhases(), and SctApi::CrateImpl::printBOCRegisters(). |
Here is the call graph for this function:
|
getVernierClockPhases() reads the contents of the two Vernier Clock Phase registers. These two clock phase registers allow the user to set a delay of up to 48 nsec. The return contains the sum of the 2 delays. Definition at line 1821 of file BocCard.cxx. References getVernierClockPhase0(), and getVernierClockPhase1(). |
Here is the call graph for this function:
|
getVernierFinePhase() reads the contents of the Vernier Fine Phase register. Definition at line 1703 of file BocCard.cxx. References m_bocMask, and singleRead(). Referenced by SctApi::CrateImpl::currentBOCRegisters(), and SctApi::CrateImpl::printBOCRegisters(). |
Here is the call graph for this function:
|
getVpinReset() reads the contents of the Vpin Reset register. Definition at line 2043 of file BocCard.cxx. References m_bocType, and singleRead(). |
Here is the call graph for this function:
|
initialize() sets the BOC into a well-defined state. Power-on should set the BOC into much the same state, but we may wish to do this to recover that state without power cycling. Activities: Reset the BOC Read the read-only registers Set clock registers Initialize the I2C busses by writing to each in turn Set 0xFF into the Rx thresholds Set 0x00 into the data delays, strobe delays and laser current DACs Reset the BPM12 chips Set the defaults values for the BPM12 chips (including the test structures). Definition at line 98 of file BocCard.cxx. References bpmWrite(), clearRxDac(), clearTxDac(), m_bocMask, m_bocType, m_firmwareRevision, m_hardwareRevision, m_manufacturer, m_moduleType, m_serialNumber, resetBoc(), resetBocOk(), resetBpm(), resetMonitorAdc(), resetVpin(), setBpmClockPhase(), setBpmCoarseDelay(), setBpmFineDelay(), setBpmMarkSpace(), setBpmStreamInhibit(), setBregClockPhase(), setClockControl(), setLaserCurrent(), setRxDataDelay(), setRxDataMode(), setRxThreshold(), setStrobeDelay(), setVernierClockPhase0(), setVernierClockPhase1(), setVernierFinePhase(), and singleRead(). Referenced by SctApi::CrateImpl::initialiseBOC(). |
Here is the call graph for this function:
|
reset() issues a reset to all parts of the BOC. Definition at line 218 of file BocCard.cxx. References clearRxDac(), clearTxDac(), resetBoc(), resetBocOk(), resetBpm(), and resetVpin(). |
Here is the call graph for this function:
|
resetBoc() resets the BOC by writing 1 followed by 0 to the Reset register. A method to write a specific value to the register is not provided as this would not be a useful operation. Definition at line 1972 of file BocCard.cxx. References singleWrite(). Referenced by initialize(), and reset(). |
Here is the call graph for this function:
|
resetBocOk() resets the BOC_OK register on the BOC by writing 1 followed by 0 to the BOC_OK Reset register. A method to write a specific value to the register is not provided as this would not be a useful operation. Definition at line 2115 of file BocCard.cxx. References m_bocType, and singleWrite(). Referenced by initialize(), and reset(). |
Here is the call graph for this function:
|
resetBpm() resets the BPM registers on the BOC by writing 1 followed by 0 to the BPM Reset register. A method to write a specific value to the register is not provided as this would not be a useful operation. Definition at line 2017 of file BocCard.cxx. References m_bocType, SctPixelRod::PRE_PRODUCTION_BOC, and singleWrite(). Referenced by initialize(), and reset(). |
Here is the call graph for this function:
|
resetMonitorAdc() initialises the monitoring ADC chip. This is done in the initialisation method, but can be redone any time. Definition at line 2522 of file BocCard.cxx. References m_bocType, and singleWrite(). Referenced by initialize(). |
Here is the call graph for this function:
|
resetVpin() resets the Vpin register on the BOC by writing 1 followed by 0 to the Vpin Reset register. A method to write a specific value to the register is not provided as this would not be a useful operation. Definition at line 2067 of file BocCard.cxx. References m_bocType, m_myrod, singleWrite(), and SctPixelRod::RodModule::sleep(). Referenced by initialize(), and reset(). |
Here is the call graph for this function:
|
setBpmClockPhase() writes the contents of the BPM Clock Phase register. Definition at line 1886 of file BocCard.cxx. Referenced by SctApi::CrateImpl::configureBOC(), initialize(), SctApi::CrateImpl::modifyBOCParam(), and SctApi::CrateImpl::restoreBOCRegisters(). |
|
setBpmCoarseDelay() writes the contents of one or more BPM coarse delay registers. The method is overloaded to write either a number of consecutive channels from a starting channel number, or a single channel. "Channel" refers to the BOC channel number - the BPM stream number mapping is dealt with internally. Definition at line 1267 of file BocCard.cxx. Referenced by SctApi::CrateImpl::configureBOC(), initialize(), SctApi::CrateImpl::modifyBOCParam(), and SctApi::CrateImpl::restoreBOCSetup(). |
|
setBpmFineDelay() writes the contents of one or more BPM fine delay registers. The method is overloaded to write either a number of consecutive channels from a starting channel number, or a single channel. "Channel" refers to the BOC channel number - the BPM stream number mapping is dealt with internally. Definition at line 1402 of file BocCard.cxx. Referenced by SctApi::CrateImpl::configureBOC(), initialize(), SctApi::CrateImpl::modifyBOCParam(), and SctApi::CrateImpl::restoreBOCSetup(). |
|
setBpmMarkSpace() writes the contents of one or more BPM mark/space registers. The method is overloaded to write either a number of consecutive channels from a starting channel number, or a single channel. "Channel" refers to the BOC channel number - the BPM stream number mapping is dealt with internally. Definition at line 1131 of file BocCard.cxx. Referenced by SctApi::CrateImpl::configureBOC(), initialize(), SctApi::CrateImpl::modifyBOCParam(), and SctApi::CrateImpl::restoreBOCSetup(). |
|
setBpmStreamInhibit() writes the contents of one or more BPM stream inhibit registers. The method is overloaded to write either a number of consecutive channels from a starting channel number, or a single channel. "Channel" refers to the BOC channel number - the BPM stream number mapping is dealt with internally. Definition at line 996 of file BocCard.cxx. Referenced by initialize(). |
|
setBregClockPhase() writes the contents of the BREG Clock Phase register. Definition at line 1920 of file BocCard.cxx. Referenced by SctApi::CrateImpl::configureBOC(), initialize(), SctApi::CrateImpl::modifyBOCParam(), and SctApi::CrateImpl::restoreBOCRegisters(). |
|
setClockControl() writes the contents of the Clock Control register. Definition at line 1511 of file BocCard.cxx. References SctPixelRod::PRE_PRODUCTION_BOC. Referenced by SctApi::CrateImpl::configureBOC(), SctApi::CrateImpl::enterBOCClockBy2Mode(), initialize(), SctApi::CrateImpl::leaveBOCClockBy2Mode(), and SctApi::CrateImpl::restoreBOCRegisters(). |
|
setLaserCurrent() writes the contents of one or more Tx laser current DACs. The method is overloaded to write either a number of consecutive channels from a starting channel number, or a single channel. Definition at line 355 of file BocCard.cxx. Referenced by SctApi::CrateImpl::configureBOC(), initialize(), SctApi::CrateImpl::lasersOff(), SctApi::CrateImpl::modifyBOCParam(), SctApi::CrateImpl::restoreBOCSetup(), SctApi::CrateImpl::setupScanRawTx(), and SctApi::CrateImpl::setupScanTx(). |
|
setRxDataDelay() writes the contents of one or more Rx data delay registers. The method is overloaded to write either a number of consecutive channels from a starting channel number, or a single channel. Definition at line 676 of file BocCard.cxx. Referenced by SctApi::CrateImpl::configureBOC(), initialize(), SctApi::CrateImpl::modifyBOCParam(), and SctApi::CrateImpl::restoreBOCSetup(). |
|
setRxDataMode() writes the contents of the Data Mode register. Definition at line 1570 of file BocCard.cxx. Referenced by SctApi::CrateImpl::configureBOC(), SctApi::CrateImpl::enterBOCClockBy2Mode(), initialize(), SctApi::CrateImpl::leaveBOCClockBy2Mode(), and SctApi::CrateImpl::restoreBOCRegisters(). |
|
setRxThreshold() writes the contents of one or more Rx threshold DACs. The method is overloaded to write either a number of consecutive channels from a starting channel number, or a single channel. Definition at line 515 of file BocCard.cxx. Referenced by SctApi::CrateImpl::configureBOC(), initialize(), SctApi::CrateImpl::modifyBOCParam(), and SctApi::CrateImpl::restoreBOCSetup(). |
|
setStrobeDelay() writes the contents of one or more strobe delay registers. The method is overloaded to write either a number of consecutive channels from a starting channel number, or a single channel. Note that these registers no longer do anything that is of practical use - the methods are retained for completeness and might be made private at a later date. Definition at line 842 of file BocCard.cxx. Referenced by initialize(). |
|
setVernierClockPhase0() writes the contents of the Vernier Clock Phase register 0. This is one of two clock phase registers allowing the user to set a delay of up to 48 nsec. Definition at line 1758 of file BocCard.cxx. Referenced by SctApi::CrateImpl::configureBOC(), initialize(), SctApi::CrateImpl::modifyBOCParam(), and SctApi::CrateImpl::restoreBOCRegisters(). |
|
setVernierClockPhase1() writes the contents of the Vernier Clock Phase register 1. This is one of two clock phase registers allowing the user to set a delay of up to 48 nsec. Definition at line 1799 of file BocCard.cxx. Referenced by SctApi::CrateImpl::configureBOC(), initialize(), SctApi::CrateImpl::modifyBOCParam(), and SctApi::CrateImpl::restoreBOCRegisters(). |
|
setVernierClockPhases() writes the contents of the Vernier Clock Phase registers. These two clock phase registers allow the user to set a delay of up to 48 nsec. An exception is thrown if the total delay is >48nsec Definition at line 1845 of file BocCard.cxx. |
|
setVernierFinePhase() writes the contents of the Vernier Fine Phase register. Definition at line 1717 of file BocCard.cxx. Referenced by SctApi::CrateImpl::configureBOC(), initialize(), SctApi::CrateImpl::modifyBOCParam(), and SctApi::CrateImpl::restoreBOCRegisters(). |
|
Read and write to single BOC registers. This method reads a single 32-bit word from a BOC address. An exception will be thrown if the BOC_BUSY_0 bit does not clear within a second. Definition at line 2628 of file BocCard.cxx. Referenced by blockRead(), bpmRead(), getBocOkReset(), getBocReset(), getBocStatusRegister(), getBpmClockPhase(), getBpmReset(), getBregClockPhase(), getClockControl(), getRxDacClear(), getRxDataMode(), getTxDacClear(), getVernierClockPhase0(), getVernierClockPhase1(), getVernierFinePhase(), getVpinReset(), and initialize(). |
|
This method writes a single 32-bit word to a BOC address. An exception will be thrown if the BOC_BUSY_0 bit does not clear within 1 second. Definition at line 2660 of file BocCard.cxx. Referenced by blockWrite(), bpmWrite(), clearRxDac(), clearTxDac(), resetBoc(), resetBocOk(), resetBpm(), resetMonitorAdc(), and resetVpin(). |
|
This method reports the status of the BOC. For now, it simply prints to standard output. Definition at line 237 of file BocCard.cxx. References getBocStatusRegister(), m_bocType, m_firmwareRevision, m_hardwareRevision, m_manufacturer, m_moduleType, m_serialNumber, and SctPixelRod::PRE_PRODUCTION_BOC. |
Here is the call graph for this function:
|
BOC setup bus mask. This is the maximum width of any data to be read or written via the setup bus. Definition at line 696 of file BocCard.h. Referenced by getBocStatusRegister(), getBpmClockPhase(), getBregClockPhase(), getVernierFinePhase(), and initialize(). |
|
BOC type. This identifies the different BOC revisions, deduced from the upper 3 bits of the Hardware Revision register (modified 3 March 2004). Definition at line 692 of file BocCard.h. Referenced by clearRxDac(), clearTxDac(), getBocOkReset(), getBocReset(), getBocStatusRegister(), getBpmReset(), getClockControl(), getInterlockStatus(), getRxDacClear(), getTxDacClear(), getVpinReset(), initialize(), resetBocOk(), resetBpm(), resetMonitorAdc(), resetVpin(), and status(). |
|
BOC firmware revision (read in initialize method).
Definition at line 687 of file BocCard.h. Referenced by initialize(), and status(). |
|
BOC hardware revision (read in initialize method). This variable holds the lower 5 bits of the register only now. Definition at line 683 of file BocCard.h. Referenced by initialize(), and status(). |
|
BOC manufacturer (read in initialize method). Should be 0xCB.
Definition at line 674 of file BocCard.h. Referenced by initialize(), and status(). |
|
BOC module type (read in initialize method).
Definition at line 678 of file BocCard.h. Referenced by initialize(), and status(). |
|
Handle for the ROD through which this BOC is accessed.
Definition at line 666 of file BocCard.h. Referenced by resetVpin(). |
|
BOC serial number (read in initialize method). Set on a pair of hex switches.
Definition at line 670 of file BocCard.h. Referenced by initialize(), and status(). |