from collections import namedtuple

from ...util import *

USB_CLASS_PTP = 6
USB_CLASS_MSC = 8

UsbDevice = namedtuple('UsbDevice', 'handle, idVendor, idProduct')

MSC_SENSE_OK = (0, 0, 0)
MSC_SENSE_ERROR_UNKNOWN = (0x2, 0xff, 0xff)

def parseMscSense(buffer):
 return parse8(buffer[2:3]) & 0xf, parse8(buffer[12:13]), parse8(buffer[13:14])

f8050d917179eff4d6ae79d1f3755a8f7e78abf7
<mask token>

<mask token>


def parseMscSense(buffer):
    return parse8(buffer[2:3]) & 15, parse8(buffer[12:13]), parse8(buffer[
        13:14])

<mask token>
USB_CLASS_PTP = 6
USB_CLASS_MSC = 8
UsbDevice = namedtuple('UsbDevice', 'handle, idVendor, idProduct')
MSC_SENSE_OK = 0, 0, 0
MSC_SENSE_ERROR_UNKNOWN = 2, 255, 255


def parseMscSense(buffer):
    return parse8(buffer[2:3]) & 15, parse8(buffer[12:13]), parse8(buffer[
        13:14])

from collections import namedtuple
from ...util import *
USB_CLASS_PTP = 6
USB_CLASS_MSC = 8
UsbDevice = namedtuple('UsbDevice', 'handle, idVendor, idProduct')
MSC_SENSE_OK = 0, 0, 0
MSC_SENSE_ERROR_UNKNOWN = 2, 255, 255


def parseMscSense(buffer):
    return parse8(buffer[2:3]) & 15, parse8(buffer[12:13]), parse8(buffer[
        13:14])

from collections import namedtuple

from ...util import *

USB_CLASS_PTP = 6
USB_CLASS_MSC = 8

UsbDevice = namedtuple('UsbDevice', 'handle, idVendor, idProduct')

MSC_SENSE_OK = (0, 0, 0)
MSC_SENSE_ERROR_UNKNOWN = (0x2, 0xff, 0xff)

def parseMscSense(buffer):
 return parse8(buffer[2:3]) & 0xf, parse8(buffer[12:13]), parse8(buffer[13:14])
