mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-22 05:54:29 +01:00
WIP, doc
This commit is contained in:
@@ -1291,7 +1291,14 @@ class Detector(CppDetectorApi):
|
|||||||
# patioctrl
|
# patioctrl
|
||||||
@property
|
@property
|
||||||
def patioctrl(self):
|
def patioctrl(self):
|
||||||
"""[Ctb][Moench] 64 bit mask defining input (0) and output (1) signals."""
|
"""[Ctb][Moench] 64 bit mask defining input (0) and output (1) signals.
|
||||||
|
|
||||||
|
Examples
|
||||||
|
--------
|
||||||
|
>>> d.patioctrl = 0x8f0effff6dbffdbf
|
||||||
|
>>> hex(d.patioctrl)
|
||||||
|
'0x8f0effff6dbffdbf'
|
||||||
|
"""
|
||||||
return element_if_equal(self.getPatternIOControl())
|
return element_if_equal(self.getPatternIOControl())
|
||||||
|
|
||||||
@patioctrl.setter
|
@patioctrl.setter
|
||||||
@@ -1304,7 +1311,11 @@ class Detector(CppDetectorApi):
|
|||||||
|
|
||||||
Examples
|
Examples
|
||||||
---------
|
---------
|
||||||
>>> d.patlimits = [0x23, 0x40]
|
>>> d.patlimits = [0x0, 0x18c]
|
||||||
|
>>> d.patlimits
|
||||||
|
[0, 396]
|
||||||
|
>>> [hex(l) for l in d.patlimits]
|
||||||
|
['0x0', '0x18c']
|
||||||
"""
|
"""
|
||||||
return element_if_equal(self.getPatternLoopAddresses(-1))
|
return element_if_equal(self.getPatternLoopAddresses(-1))
|
||||||
|
|
||||||
@@ -1314,7 +1325,14 @@ class Detector(CppDetectorApi):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def patmask(self):
|
def patmask(self):
|
||||||
"""[Ctb][Moench][Mythen3] Sets the bits that will have a pattern mask applied to the selected patmask for every pattern."""
|
"""[Ctb][Moench][Mythen3] Sets the bits that will have a pattern mask applied to the selected patmask for every pattern.
|
||||||
|
|
||||||
|
Examples
|
||||||
|
--------
|
||||||
|
>>> d.patmask = 0x8f0effff6dbffdbf
|
||||||
|
>>> hex(d.patmask)
|
||||||
|
'0x8f0effff6dbffdbf'
|
||||||
|
"""
|
||||||
return element_if_equal(self.getPatternMask())
|
return element_if_equal(self.getPatternMask())
|
||||||
|
|
||||||
@patmask.setter
|
@patmask.setter
|
||||||
@@ -1328,7 +1346,16 @@ class Detector(CppDetectorApi):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def patwait0(self):
|
def patwait0(self):
|
||||||
"""[Ctb][Moench][Mythen3] Wait 0 address."""
|
"""[Ctb][Moench][Mythen3] Wait 0 address.
|
||||||
|
|
||||||
|
Examples
|
||||||
|
--------
|
||||||
|
>>> d.patwait0 = 0xaa
|
||||||
|
>>> d.patwait0
|
||||||
|
170
|
||||||
|
>>> hex(d.patwait0)
|
||||||
|
'0xaa'
|
||||||
|
"""
|
||||||
return element_if_equal(self.getPatternWaitAddr(0))
|
return element_if_equal(self.getPatternWaitAddr(0))
|
||||||
|
|
||||||
@patwait0.setter
|
@patwait0.setter
|
||||||
@@ -1337,7 +1364,16 @@ class Detector(CppDetectorApi):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def patwait1(self):
|
def patwait1(self):
|
||||||
"""[Ctb][Moench][Mythen3] Wait 1 address."""
|
"""[Ctb][Moench][Mythen3] Wait 1 address.
|
||||||
|
|
||||||
|
Examples
|
||||||
|
--------
|
||||||
|
>>> d.patwait1 = 0xaa
|
||||||
|
>>> d.patwait1
|
||||||
|
170
|
||||||
|
>>> hex(d.patwait1)
|
||||||
|
'0xaa'
|
||||||
|
"""
|
||||||
return element_if_equal(self.getPatternWaitAddr(1))
|
return element_if_equal(self.getPatternWaitAddr(1))
|
||||||
|
|
||||||
@patwait1.setter
|
@patwait1.setter
|
||||||
@@ -1346,7 +1382,16 @@ class Detector(CppDetectorApi):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def patwait2(self):
|
def patwait2(self):
|
||||||
"""[Ctb][Moench][Mythen3] Wait 2 address."""
|
"""[Ctb][Moench][Mythen3] Wait 2 address.
|
||||||
|
|
||||||
|
Examples
|
||||||
|
--------
|
||||||
|
>>> d.patwait2 = 0xaa
|
||||||
|
>>> d.patwait2
|
||||||
|
170
|
||||||
|
>>> hex(d.patwait2)
|
||||||
|
'0xaa'
|
||||||
|
"""
|
||||||
return element_if_equal(self.getPatternWaitAddr(2))
|
return element_if_equal(self.getPatternWaitAddr(2))
|
||||||
|
|
||||||
@patwait2.setter
|
@patwait2.setter
|
||||||
@@ -1386,7 +1431,11 @@ class Detector(CppDetectorApi):
|
|||||||
|
|
||||||
Examples
|
Examples
|
||||||
---------
|
---------
|
||||||
>>> d.patloop0 = [0x23, 0x40]
|
>>> d.patloop0 = [0x0, 0x18c]
|
||||||
|
>>> d.patloop0
|
||||||
|
[0, 396]
|
||||||
|
>>> [hex(l) for l in d.patloop0]
|
||||||
|
['0x0', '0x18c']
|
||||||
"""
|
"""
|
||||||
return element_if_equal(self.getPatternLoopAddresses(0))
|
return element_if_equal(self.getPatternLoopAddresses(0))
|
||||||
|
|
||||||
@@ -1400,7 +1449,12 @@ class Detector(CppDetectorApi):
|
|||||||
|
|
||||||
Examples
|
Examples
|
||||||
---------
|
---------
|
||||||
>>> d.patloop1 = [0x23, 0x40]
|
>>> d.patloop1 = [0x0, 0x18c]
|
||||||
|
>>> d.patloop1
|
||||||
|
[0, 396]
|
||||||
|
>>> [hex(l) for l in d.patloop1]
|
||||||
|
['0x0', '0x18c']
|
||||||
|
|
||||||
"""
|
"""
|
||||||
return element_if_equal(self.getPatternLoopAddresses(1))
|
return element_if_equal(self.getPatternLoopAddresses(1))
|
||||||
|
|
||||||
@@ -1414,7 +1468,12 @@ class Detector(CppDetectorApi):
|
|||||||
|
|
||||||
Examples
|
Examples
|
||||||
---------
|
---------
|
||||||
>>> d.patloop2 = [0x23, 0x40]
|
>>> d.patloop2 = [0x0, 0x18c]
|
||||||
|
>>> d.patloop2
|
||||||
|
[0, 396]
|
||||||
|
>>> [hex(l) for l in d.patloop2]
|
||||||
|
['0x0', '0x18c']
|
||||||
|
|
||||||
"""
|
"""
|
||||||
return element_if_equal(self.getPatternLoopAddresses(2))
|
return element_if_equal(self.getPatternLoopAddresses(2))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user