Skip to content

Commit

Permalink
Merge pull request #204 from slaclab/pre-release
Browse files Browse the repository at this point in the history
v1.7.4 release candidate
  • Loading branch information
ruck314 authored Apr 4, 2018
2 parents 5f80d9f + 933c720 commit 058604c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
22 changes: 11 additions & 11 deletions python/surf/devices/linear/_ltc2270.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self,
self.add(pr.RemoteVariable(
name = 'ClkPhase',
description = 'ClkPhase',
offset = 0x004,
offset = 0x008,
bitSize = 2,
bitOffset = 1,
base = pr.UInt,
Expand All @@ -70,7 +70,7 @@ def __init__(self,
self.add(pr.RemoteVariable(
name = 'Dcs',
description = 'Dcs',
offset = 0x004,
offset = 0x008,
bitSize = 1,
bitOffset = 0,
base = pr.Bool,
Expand All @@ -80,17 +80,17 @@ def __init__(self,
self.add(pr.RemoteVariable(
name = 'ILvds',
description = 'ILvds',
offset = 0x008,
offset = 0x00C,
bitSize = 3,
bitOffset = 3,
bitOffset = 4,
base = pr.UInt,
mode = 'RW',
))

self.add(pr.RemoteVariable(
name = 'TermOn',
description = 'TermOn',
offset = 0x008,
offset = 0x00C,
bitSize = 1,
bitOffset = 3,
base = pr.Bool,
Expand All @@ -100,7 +100,7 @@ def __init__(self,
self.add(pr.RemoteVariable(
name = 'OutOff',
description = 'OutOff',
offset = 0x008,
offset = 0x00C,
bitSize = 1,
bitOffset = 2,
base = pr.Bool,
Expand All @@ -110,7 +110,7 @@ def __init__(self,
self.add(pr.RemoteVariable(
name = 'OutMode',
description = 'OutMode',
offset = 0x008,
offset = 0x00C,
bitSize = 2,
bitOffset = 0,
base = pr.UInt,
Expand All @@ -120,7 +120,7 @@ def __init__(self,
self.add(pr.RemoteVariable(
name = 'OutTest',
description = 'OutTest',
offset = 0x00C,
offset = 0x010,
bitSize = 3,
bitOffset = 3,
base = pr.UInt,
Expand All @@ -130,7 +130,7 @@ def __init__(self,
self.add(pr.RemoteVariable(
name = 'Abp',
description = 'Abp',
offset = 0x00C,
offset = 0x010,
bitSize = 1,
bitOffset = 2,
base = pr.Bool,
Expand All @@ -140,7 +140,7 @@ def __init__(self,
self.add(pr.RemoteVariable(
name = 'Rand',
description = 'Rand',
offset = 0x00C,
offset = 0x010,
bitSize = 1,
bitOffset = 1,
base = pr.Bool,
Expand All @@ -150,7 +150,7 @@ def __init__(self,
self.add(pr.RemoteVariable(
name = 'TwoComp',
description = 'TwoComp',
offset = 0x00C,
offset = 0x010,
bitSize = 1,
bitOffset = 0,
base = pr.Bool,
Expand Down
2 changes: 1 addition & 1 deletion python/surf/devices/micron/_AxiMicronP30.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self,
super().__init__(
name = name,
description = description,
size = (0x1 << 11),
size = (0x1 << 12),
**kwargs)

self._mcs = McsReader()
Expand Down
28 changes: 14 additions & 14 deletions python/surf/protocols/clink/_ClinkChannel.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,18 +164,18 @@ def __init__( self,
self._tx = surf.protocols.clink.ClinkSerialTx()
pr.streamConnect(self._tx,serial)

@pr.command(order=1, value='', name='SendString', description='Send a command string')
def sendString(self, arg):
if self._tx is not None:
self._tx.sendString(arg)

@pr.command(order=2, name='SendEscape', description='Send an escape charactor')
def sendEscape(self):
if self._tx is not None:
self._tx.sendEscape()

@pr.command(order=3, name='SendGcp', description='Send gcp command')
def sendGcp(self):
if self._tx is not None:
self._tx.sendString("gcp")
@self.command(value='', name='SendString', description='Send a command string')
def sendString(arg):
if self._tx is not None:
self._tx.sendString(arg)

@self.command(name='SendEscape', description='Send an escape charactor')
def sendEscape():
if self._tx is not None:
self._tx.sendEscape()

@self.command(name='SendGcp', description='Send gcp command')
def sendGcp():
if self._tx is not None:
self._tx.sendString("gcp")

4 changes: 2 additions & 2 deletions python/surf/protocols/clink/_ClinkSerialTx.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def sendEscape(self):
ba = bytearray(4)
ba[0] = 27

frame = self._reqFrame(len(ba),True,0)
frame = self._reqFrame(len(ba),True)
frame.write(ba,0)
self._sendFrame(frame)

Expand All @@ -41,7 +41,7 @@ def sendString(self,st):
i += 4
ba[i] = 0x0D

frame = self._reqFrame(len(ba),True,0)
frame = self._reqFrame(len(ba),True)
frame.write(ba,0)
self._sendFrame(frame)

0 comments on commit 058604c

Please sign in to comment.