VME LED Driver library
- For use with JLab compiled gefvme kernel driver.
- install the jvme library https://github.com/JeffersonLab/jvme.git
- with the environment defined from the jvme install (
LINUXVME_LIB
,LINUXVME_INC
) build and install the librarymake install
- In the test directory, there’s a program to show the status of a VLD at a specified slot
- compile with
cd test make
- execute
./vldStatus <slotnumber>
- The examples
VLDtest5
,VLDtest6
,VLDtest7
, cited in the VLD Manual, were ported for use with this libraryVLDtest5
: VLD calibration pulse shape loadingVLDtest6
: VLD test, channel by channel calibration, and connector by connector Bleaching testVLDtest7
: VLD clock source switching and trigger source switching
- compile with
cd examples make
- execute with
./VLDtest5 <slotnumber> ./VLDtest6 <slotnumber> ./VLDtest7 <slotnumber>
- The
VLDtest2
: VLD firmware update, was ported for use with this library. - compile with
cd firmware make
- execute with
./vldFirmwareUpdate <slotnumber> <firmware svf file>
- a shared memory file is created at
/dev/shm/vld
- The channel enable mask it is written to shared memory with any successful call to
int32_t vldSetChannelMask(int32_t id, uint32_t connector, uint32_t lochanEnableMask, uint32_t hichanEnableMask);
- This data is shared memory mutex protected and is obtained using the call
int32_t vldShmReadBlock(volatile uint32_t *data, uint32_t nwords);
- Type: 0x0
- Size: 1 word
- Description: Indicates the beginning of a block of VLD data.
- Number of VLD that are readout in this block
- Number of times data has been read from VLD shared memory
- Number of times data has been written to VLD shared memory
- Type: 0x1
- Size: 1 word
- Description: Indicates the end of a block of VLD data. The data words in a block are bracketed by the block header and trailer
- Total number of words in block
- Type: 0x2
- Size: 1 word
- Description: Indicates the start of a VLD slot data.
NUM_CONNECTOR_WORDS
provides the number of words to follow (e.g. 8 connector words for 4 connectors)
- Slot ID (set by VME64x backplane)
- Number of connector data words to follow (4 x 2 = current)
- Type: 0x2 continuation
- Size: 8 words (2 words per connector)
- Description: Shows the state of the VLD channel enable mask for indicated
CONNECTOR_ID
, withLO_HI
channel mask flag
- ID of VLD connector
[0, 3]
- The Low (0) or High (1) 18 channels of the connector
- Mask of channels with VLD pulse enabled