mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 12:27:14 +02:00
1. Ctb transceiver ro (#773)
* transceiverenable, tsamples, romode for tranceiver and digital_transceiver * 202 spec instr only for transceiver mode * removed check for empty in trans readout and clean memory before reading from fifo * ctb read fifo strobe for all after reading all channels, adding 1us after selecting channel, changing fw date * updated 10gb transceiver enable ---- * added transceiver (tsamples, romode(transceiver, digital_transceiver), transceiverenable (mask) * clean memory before reading from fifo (for analog and digital as well) * read fifo then read strobe (also corresp fw) fixes number of reads (also for analg and digital)-> increases all pipelines by 1 * fixed bug in rearranging digital data in receiver * fixed bug in streaming size of data after rearranging * fixed bug in setbit, clearbit,and getbit * status checks fifo before returning idle (transmitting if data in fifo if transceiver more enabled) * soem matterhorn specifics that will need to be put into pattern in a month or two. this is temporary. * NOTE: breaking api. rxParameters struct has transceiverenabel and tsamples given from det to receiver
This commit is contained in:
@ -3180,12 +3180,22 @@ class Detector(CppDetectorApi):
|
||||
def adcenable10g(self, value):
|
||||
ut.set_using_dict(self.setTenGigaADCEnableMask, value)
|
||||
|
||||
@property
|
||||
@element
|
||||
def transceiverenable(self):
|
||||
"""[Ctb] Transceiver Enable Mask. Enable for each 4 transceiver channel."""
|
||||
return self.getTransceiverEnableMask()
|
||||
|
||||
@transceiverenable.setter
|
||||
def transceiverenable(self, value):
|
||||
ut.set_using_dict(self.setTransceiverEnableMask, value)
|
||||
|
||||
#TODO: remove this command or throw if it doesnt match with digital and transceiver
|
||||
@property
|
||||
@element
|
||||
def samples(self):
|
||||
"""
|
||||
[CTB] Number of samples (both analog and digitial) expected. \n
|
||||
[CTB] Number of samples (only analog) expected. \n
|
||||
"""
|
||||
return self.getNumberOfAnalogSamples()
|
||||
|
||||
@ -3211,7 +3221,7 @@ class Detector(CppDetectorApi):
|
||||
|
||||
Note
|
||||
------
|
||||
Options: ANALOG_ONLY, DIGITAL_ONLY, ANALOG_AND_DIGITAL
|
||||
Options: ANALOG_ONLY, DIGITAL_ONLY, ANALOG_AND_DIGITAL, TRANSCEIVER_ONLY, DIGITAL_AND_TRANSCEIVER
|
||||
Default: ANALOG_ONLY
|
||||
|
||||
Example
|
||||
@ -3246,6 +3256,16 @@ class Detector(CppDetectorApi):
|
||||
def dsamples(self, N):
|
||||
ut.set_using_dict(self.setNumberOfDigitalSamples, N)
|
||||
|
||||
@property
|
||||
@element
|
||||
def tsamples(self):
|
||||
"""[CTB] Number of transceiver samples expected. """
|
||||
return self.getNumberOfTransceiverSamples()
|
||||
|
||||
@tsamples.setter
|
||||
def tsamples(self, N):
|
||||
ut.set_using_dict(self.setNumberOfTransceiverSamples, N)
|
||||
|
||||
@property
|
||||
@element
|
||||
def dbitphase(self):
|
||||
|
Reference in New Issue
Block a user