TAILIEUCHUNG - USB Complete fourth- P39

USB Complete fourth- P39:This book focuses on Windows programming for PCs, but other computers and operating systems also have USB support, including Linux and Apple Computer’s Macintosh. Some real-time kernels also support USB. | Chapter 14 The application can request and store information about each of the interface s endpoints in turn. For i As int32 0 To - 1 WinUsb_QueryPipe _ _ 0 _ i _ pipeinfo If _ U And _ UsbEndpointDirectionin Then Elseif _ U And _ UsbEndpointDirectionOut Then Elseif _ U And _ UsbEndpointDirectionin Then Elseif _ U And _ UsbEndpointDirectionOut Then End if Next i vc Definitions internal enum USBD PiPE TYPE _ _ UsbdPipeTypeControl UsbdPipeTypeisochronous UsbdPipeTypeBulk UsbdPipeTypeinterrupt 356 Using WinUSB for Vendor-Defined Functions StructLayout internal struct WINUSB_PIPE_INFORMATION internal USBD_PIPE_TYPE PipeType internal Byte PipeId internal ushort MaximumPacketSize internal Byte Interval DllImport SetLastError true internal static extern Boolean WinUsb_QueryPipe IntPtr InterfaceHandle Byte AlternateInterfaceNumber Byte PipeIndex ref WINUSB_PIPE_INFORMATION PipeInformation Use The UsbEndpointDirectionIn and UsbEndpointDirectionOut functions enable querying the direction of an endpoint private Boolean UsbEndpointDirectionIn Int32 addr Boolean directionIn if addr 0X80 0X80 directionIn true else directionIn false return directionIn private Boolean UsbEndpointDirectionOut Int32 addr Boolean directionOut if addr 0X80 0 directionOut true else directionOut false return directionOut 357 Chapter 14 The application can request and store information about each of the interface s endpoints in turn. for int32 i 0 i .

TÀI LIỆU MỚI ĐĂNG
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.