AOR AR2300 Operating Manual page 57

Black-box receiver
Hide thumbs Also See for AR2300:
Table of Contents

Advertisement

5.2.4 ALPHA_STOP_CAPTURE
CONTROL
CODE
PROTO-TYPE
FUNCTION
STRUCTURER
REMARK
APPLICATION NOTE
CALLING PROCEDURE
Typical driver calling procedure is as follows:
Opening DRIVER
Starting isochronous reception
Capturer Start
Acquiring Captured Data
Capturer End
Ending isochronous reception
Closing Device
NOTE:; Set size above 512x3x1024 to read with ReadFile()
BOOL DeviceIoControl(
HANDLE
hDevice,
DWORD
dwIoControlCode,
LPVOID
lpInBuffer,
DWORD
nInBufferSize,
LPVOID
lpOutBuffer,
DWORD
nOutBufferSize,
LPDWORD
lpBytesReturned,
TRANSFER BYTE.
LPOVERLAPPED
lpOverlapped
);
Start data acquisition from the end-point of ISOCHRONOUS-IN of the
AR-ALPHA.
typedef struct _ALPHA_CAPTURE_PRM {
UCHAR
ucIsoInEndPoint;
} ALPHA_CAPTURE_PRM,
INCLUDE HEADER AORAlphaDD.h
Get the device handle through CreatFile API.
DeviceIoControl API(ALPHA_START_CAPTURE)
Send DeviceIoControl API(ALPHA_BULKOUT)
Call ReadFile API to acquire captured data
Send DeviceIoControl API(ALPHA_BULKOUT)
DeviceIoControl API(ALPHA_STOP_CAPTURE)
CloseHandle() API to close device
ALPHA_STOP_CAPTURE
// = DEVICE HANDLE
// = ALPHA_STOP_CAPTURE
// = PALPHA_CAPTURE_PRM
// = sizeof(ALPHA_CAPTURE_PRM)
// = NULL
// =0
// = POINTER FOR VARIABLES TO RECEIVE
// = Overlapped POINTER
// DATA END-POINT
*PALPHA_CAPTURE_PRM;
56

Advertisement

Table of Contents
loading

Table of Contents