def encodeNormalisedRPM(normalRPM): return encodeRestrictedValueToUint(normalRPM, 8, 0.0, MAX_NORMALISED_RPM)
def encodeNormalisedRPM(normalRPM): return encodeRestrictedValueToUint(normalRPM, 8, 0.0, MAX_NORMALISED_RPM)
def encodeTrackScrolling(leftScroll, rightScroll): return encodeRestrictedValueToUint( leftScroll, 8, *TRACK_SCROLL_LIMITS) | encodeRestrictedValueToUint( rightScroll, 8, *TRACK_SCROLL_LIMITS) << 8
def encodeTrackScrolling(leftScroll, rightScroll): return encodeRestrictedValueToUint( leftScroll, 8, *TRACK_SCROLL_LIMITS) | encodeRestrictedValueToUint( rightScroll, 8, *TRACK_SCROLL_LIMITS) << 8