Пример #1
0
class InterfaceInfo(Base):
    type_id = 4

    interface_count: T.U32
    interface: Array(T.U8, 32)
    interface_class: Array(T.U8, 32)
    interface_subclass: Array(T.U8, 32)
    interface_protocol: Array(T.U8, 32)
Пример #2
0
class EpInfo(Base):
    type_id = 5

    class Type:
        CONTROL = 0
        ISO = 1
        BULK = 2
        INTERRUPT = 3
        INVALID = 255

    type_: Array(T.U8, 32)
    interval: Array(T.U8, 32)
    interface: Array(T.U8, 32)
Пример #3
0
class InterruptPacket(Base):
    type_id = 103

    endpoint: T.U8
    status: T.U8
    length: T.U16
    data: Array(T.U8)
Пример #4
0
class IsoPacket(Base):
    type_id = 102

    endpoint: T.U8
    status: T.U8
    length: T.U16
    data: Array(T.U8)
Пример #5
0
class BufferedBulkPacket(Base):
    type_id = 104

    stream_id: T.U32
    length: T.U32
    endpoint: T.U8
    status: T.U8
    data: Array(T.U8)
Пример #6
0
class BulkPacket(Base):
    type_id = 101

    endpoint: T.U8
    status: T.U8
    length: T.U16
    stream_id: T.U32
    data: Array(T.U8)
Пример #7
0
class ControlPacket(Base):
    type_id = 100

    endpoint: T.U8
    request: T.U8
    request_type: T.U8
    status: T.U8
    value: T.U16
    index: T.U16
    length: T.U16
    data: Array(T.U8)
Пример #8
0
 class Packet(Base):
     one: T.U16
     arr: Array(T.U8, 8)
     two: T.U8
Пример #9
0
 class MultipleVariablePacket(Base):
     one: T.U8
     arr1: Array(T.U8)
     arr2: Array(T.U16)
Пример #10
0
 class ArrayNontrivialPacket(Base):
     one: T.U32
     two: T.U8
     arr: Array(TestSimple.Packet)
Пример #11
0
 class OnlyArrayPacket(Base):
     arr: Array(T.U16)
Пример #12
0
 class ArrayPacket(Base):
     one: T.U8
     two: T.U32
     arr: Array(T.U16)
Пример #13
0
class Hello(Base):
    type_id = 0

    version: Array(T.U8, 64)
    capabilities: Array(T.U32)
Пример #14
0
class FilterFilter(Base):
    type_id = 23

    string: Array(T.U8)