C# 클래스 MonoLibUsb.Transfer.MonoUsbControlSetup

파일 보기 프로젝트 열기: arvydas/BlinkStickDotNet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
SETUP_PACKET_SIZE int

공개 메소드들

메소드 설명
GetData ( int transferLength ) : Byte[]

Gets control data as bytes.

MonoUsbControlSetup ( IntPtr pControlSetup ) : System

Creates a MonoUsbControlSetup structure for a control setup packet pointer.

The pControlSetup pointer must be a pointer in memory to a valid Libusb-1.0 libusb__control__setup that was allocated with MonoUsbControlSetupHandle.

SetData ( IntPtr data, int offset, int length ) : void

Copies data into PtrData.

메소드 상세

GetData() 공개 메소드

Gets control data as bytes.
public GetData ( int transferLength ) : Byte[]
transferLength int The number of bytes to copy out of . This will usually come from MonoUsbTransfer.ActualLength.
리턴 Byte[]

MonoUsbControlSetup() 공개 메소드

Creates a MonoUsbControlSetup structure for a control setup packet pointer.
The pControlSetup pointer must be a pointer in memory to a valid Libusb-1.0 libusb__control__setup that was allocated with MonoUsbControlSetupHandle.
public MonoUsbControlSetup ( IntPtr pControlSetup ) : System
pControlSetup System.IntPtr Pointer to the setup packet. This will usually be MonoUsbTransfer.PtrBuffer
리턴 System

SetData() 공개 메소드

Copies data into PtrData.
public SetData ( IntPtr data, int offset, int length ) : void
data System.IntPtr /// Data buffer to copy into for an output control transfer. /// This value can be: /// /// An of bytes or other blittable types. /// An already allocated, pinned . In this case is used for the buffer address. /// An . /// ///
offset int The offset in to begin copying.
length int Number of to copy.
리턴 void

프로퍼티 상세

SETUP_PACKET_SIZE 공개적으로 정적으로 프로퍼티

Size of a Libusb-1.0 setup packet.
public static int SETUP_PACKET_SIZE
리턴 int