C# 클래스 MonoLibUsb.Transfer.MonoUsbControlSetupHandle

Allocates memory and fills an asynchronous control setup packet.
This type is used for asynchronous control transfers only.
상속: LibUsbDotNet.Main.SafeContextHandle
파일 보기 프로젝트 열기: arvydas/BlinkStickDotNet 1 사용 예제들

공개 메소드들

메소드 설명
MonoUsbControlSetupHandle ( byte requestType, byte request, short value, short index, IntPtr data, int length ) : System

Allocates memory and sets up a control setup packet. Copies control data into the control data buffer

This constructor is used when requestType has the UsbCtrlFlags.Direction_In flag and this request will contain control data (more than just the setup packet).

Allocates MonoUsbControlSetup.SETUP_PACKET_SIZE + data.Length for the setup packet. The setup packet is stored first then the control data.

The data array is copied into the setup packet starting at MonoUsbControlSetup.SETUP_PACKET_SIZE.

This contructor is similar to libusb_fill_control_setup().
MonoUsbControlSetupHandle ( byte requestType, byte request, short value, short index, short length ) : System

Allocates memory and sets up a control setup packet.

This constructor is used when: requestType has the UsbCtrlFlags.Direction_In flag and this request will not contain extra data (just the setup packet). requestType does not have the UsbCtrlFlags.Direction_In flag.

This contructor is similar to libusb_fill_control_setup().

Allocates MonoUsbControlSetup.SETUP_PACKET_SIZE + length for the setup packet. The setup packet is stored first then the control data.

보호된 메소드들

메소드 설명
ReleaseHandle ( ) : bool

메소드 상세

MonoUsbControlSetupHandle() 공개 메소드

Allocates memory and sets up a control setup packet. Copies control data into the control data buffer

This constructor is used when requestType has the UsbCtrlFlags.Direction_In flag and this request will contain control data (more than just the setup packet).

Allocates MonoUsbControlSetup.SETUP_PACKET_SIZE + data.Length for the setup packet. The setup packet is stored first then the control data.

The data array is copied into the setup packet starting at MonoUsbControlSetup.SETUP_PACKET_SIZE.

This contructor is similar to libusb_fill_control_setup().
public MonoUsbControlSetupHandle ( byte requestType, byte request, short value, short index, IntPtr data, int length ) : System
requestType byte The request type field for the setup packet.
request byte The request field for the setup packet.
value short The value field for the setup packet
index short The index field for the setup packet.
data System.IntPtr The control data buffer to copy into the setup packet.
length int Size of in bytes. This value is also used for the wLength field of the setup packet.
리턴 System

MonoUsbControlSetupHandle() 공개 메소드

Allocates memory and sets up a control setup packet.

This constructor is used when: requestType has the UsbCtrlFlags.Direction_In flag and this request will not contain extra data (just the setup packet). requestType does not have the UsbCtrlFlags.Direction_In flag.

This contructor is similar to libusb_fill_control_setup().

Allocates MonoUsbControlSetup.SETUP_PACKET_SIZE + length for the setup packet. The setup packet is stored first then the control data.

public MonoUsbControlSetupHandle ( byte requestType, byte request, short value, short index, short length ) : System
requestType byte The request type field for the setup packet.
request byte The request field for the setup packet.
value short The value field for the setup packet
index short The index field for the setup packet.
length short The length to allocate for the data portion of the setup packet.
리턴 System

ReleaseHandle() 보호된 메소드

protected ReleaseHandle ( ) : bool
리턴 bool