XXX dcpav: port to 13.5

This needs to be dynamic.

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2023-08-21 23:17:03 +09:00
parent 6d0979e71e
commit 3e22464c86

View file

@ -55,10 +55,10 @@ class DCPDPTXRemotePortService(EPICStandardService):
SHORT = "port" SHORT = "port"
def displayRequest(self): def displayRequest(self):
self.call(8, 8, bytes(16)) self.call(0, 6, bytes(16))
def displayRelease(self): def displayRelease(self):
self.call(8, 9, bytes(16)) self.call(0, 7, bytes(16))
def connectTo(self, connected, unit, port, unk=0): def connectTo(self, connected, unit, port, unk=0):
target = 0 target = 0
@ -66,7 +66,7 @@ class DCPDPTXRemotePortService(EPICStandardService):
target |= (1 << 8) target |= (1 << 8)
target |= unit target |= unit
target |= port << 4 target |= port << 4
self.call(8, 13, struct.pack("<16xII8x", unk, target)) self.call(0, 11, struct.pack("<II8x16x", unk, target))
class DCPDPTXPortEndpoint(EPICEndpoint): class DCPDPTXPortEndpoint(EPICEndpoint):
SHORT = "dpport" SHORT = "dpport"