TBApiRawDataModeBlockSize API Call

 

Description

Determines the block size for raw data mode (see TBApiRawDataMode call).

Parameters

The device handle and block size.

Returns

0 = fail, 1 = OK.

Notes

Data packets are only delivered to the caller when aBlockSize bytes have been received from the device. The block size must be a value between 1 and 16, - the default is 1. At driver startup time, the setting is 1.

 

Visual C++ Declaration/example

 

BOOL TBAPI TBApiRawDataModeBlockSize(HTBDEVICE aDeviceHandle, DWORD aBlockSize);

 

// Define a block size of 8 bytes to the driver…

if (TBApiRawDataModeBlockSize (DeviceHandle, 8))

{

}

 

Visual Basic Declaration/example

 

Public Declare Function TBApiRawDataModeBlockSize Lib "TBapi" Alias “_DLL_TBApiRawDataModeBlockSize@8" (ByVal aDeviceHandle As Long, ByVal aBlockSize As Long) As Long

 

‘Define a block size of 8 bytes to the driver…

if TBApiRawDataModeBlockSize (DeviceHandle, 8) = TRUE then

end if