AOR AR2300 Spezifikationen Seite 55

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 67
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 54
54
(a) OPEN DEVICE SET
Obtain device information by SetupDiGetClassDevs() API
(b) LIST AVAILABLE DEVICES
Call SetupDiEnumInterfaceDevice() API with loop.
(c) GET DEVICE PATH
detailData (Device Infromation of Structurer) ->devicePath (Set member)
(d) OPENNING DEVICE THAT HAS ACQUIRED
It can be opened by CreateFile() API
The GUID of the driver is defined under GUID_CLASS_ALPHA of the included file of AORAlphaDD.h
5.2 FUNCTIONS REFERENCE
The following table describes the functions and arguments in DeviceIoControl()API that are
unique to the AR-ALPHA client driver. The structure and control code described here are
defined in the AORAlphaDD.h.
NOTE: Receiving the Isochronous data is handled by ReadFile()API.
5.2.1 ALPHA_BULKOUT
CONTROL
CODE
ALPHA_BULKOUT
PROPTO-TYPE
BOOL DeviceIoControl(
HANDLE hDevice, // = DEVICE HANDLE
DWORD dwIoControlCode, // = ALPHA_BULKOUT
LPVOID pInBuffer, // = PALPHA_BULKOUT_PRM
DWORD nInBufferSize // = sizeof(ALPHA_BULKOUT_PRM)-1+DATA SIZE
LPVOID lpOutBuffer, // = NULL
DWORD nOutBufferSize, // = 0
LPDWORD lpBytesReturned, // = POINTER
LPOVERLAPPED lpOverlapped // = Overlapped POINTER
);
FUNCTION
OUTPUT TO THE END-POINT OF BULK-OUT OF AR-ALPHA
STRUCTURE
typedef struct _ALPHA_BULKOUT_PRM {
UCHAR ucEndPoint; // OUTPUT END^POINT
ULONG ulSize; // OUTPUT DATA SIZE (BYTE)
UCHAR ucaData[1]; // OUTPUT DATA POINTER
} ALPHA_BULKOUT_PRM, *PALPHA_BULKOUT_PRM;
NOTE
Include header : AORAlphaDD.h
Seitenansicht 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 66 67

Kommentare zu diesen Handbüchern

Keine Kommentare