decode: add another USB function
This commit is contained in:
@@ -30,6 +30,7 @@ URBF_TRANSFER = 4
|
|||||||
URBF_GET_STATUS = 5
|
URBF_GET_STATUS = 5
|
||||||
URBF_CONTROL = 6
|
URBF_CONTROL = 6
|
||||||
URBF_SET_FEATURE = 7
|
URBF_SET_FEATURE = 7
|
||||||
|
URBF_ABORT_PIPE = 8
|
||||||
|
|
||||||
funcs = {
|
funcs = {
|
||||||
"-- URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE:": (URBF_GET_DESC, False, None),
|
"-- URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE:": (URBF_GET_DESC, False, None),
|
||||||
@@ -38,7 +39,8 @@ funcs = {
|
|||||||
"-- URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER:": (URBF_TRANSFER, True, "T"),
|
"-- URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER:": (URBF_TRANSFER, True, "T"),
|
||||||
"-- URB_FUNCTION_GET_STATUS_FROM_DEVICE:": (URBF_GET_STATUS, False, None),
|
"-- URB_FUNCTION_GET_STATUS_FROM_DEVICE:": (URBF_GET_STATUS, False, None),
|
||||||
"-- URB_FUNCTION_CONTROL_TRANSFER:": (URBF_CONTROL, True, "C"),
|
"-- URB_FUNCTION_CONTROL_TRANSFER:": (URBF_CONTROL, True, "C"),
|
||||||
"-- URB_FUNCTION_SET_FEATURE_TO_DEVICE:": (URBF_SET_FEATURE, False, None)
|
"-- URB_FUNCTION_SET_FEATURE_TO_DEVICE:": (URBF_SET_FEATURE, False, None),
|
||||||
|
"-- URB_FUNCTION_ABORT_PIPE:": (URBF_SET_FEATURE, False, None)
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_urb_info(l):
|
def get_urb_info(l):
|
||||||
|
Reference in New Issue
Block a user