예제 #1
0
def decodeTrackScrolling(code):
    return (decodeRestrictedValueFromUint((code & 255), 8,
                                          *TRACK_SCROLL_LIMITS),
            decodeRestrictedValueFromUint((code >> 8), 8,
                                          *TRACK_SCROLL_LIMITS))
예제 #2
0
def decodeNormalisedRPM(code):
    return decodeRestrictedValueFromUint(code, 8, 0.0, MAX_NORMALISED_RPM)
예제 #3
0
def decodeNormalisedRPM(code):
    return decodeRestrictedValueFromUint(code, 8, 0.0, MAX_NORMALISED_RPM)
예제 #4
0
def decodeTrackScrolling(code):
    return (decodeRestrictedValueFromUint((code & 255), 8,
                                          *TRACK_SCROLL_LIMITS),
            decodeRestrictedValueFromUint((code >> 8), 8,
                                          *TRACK_SCROLL_LIMITS))