def WriteRegister(Name, Value):
    response = UdkCommandHelper.sendPacket(
        "P%x=%s" %
        (_RegisterIndex(Name), UdkCommandHelper.list_to_string(Value)))
    if response == "OK":
        UdkCommandHelper.executeCommand("flushregs")
    return response == "OK"
示例#2
0
def WriteRegister(Name, Value):
    response = UdkCommandHelper.sendPacket(
                 "P%x=%s" % (_RegisterIndex(Name), UdkCommandHelper.list_to_string(Value))
                 )
    if response == "OK":
        UdkCommandHelper.executeCommand("flushregs")
    return response == "OK"
def ReadRegister(Name):
    response = UdkCommandHelper.sendPacket("p%x" % _RegisterIndex(Name))
    return UdkCommandHelper.string_to_list(response)
示例#4
0
def ReadRegister(Name):
    response = UdkCommandHelper.sendPacket("p%x" % _RegisterIndex(Name))
    return UdkCommandHelper.string_to_list(response)