|
TDCBase
|
Technical declarations for the DLL interface and basic type defs. More...
Go to the source code of this file.
Macros | |
Technical declarations for the DLL interface | |
| #define | EXTC extern |
| For use with C. | |
| #define | TDC_CC __stdcall |
| Calling convention. | |
| #define | TDC_API EXTC __declspec(dllimport) |
| External DLL interface. | |
Return values of the functions | |
All functions of this lib - as far as they can fail - return one of these constants for success control. | |
| #define | TDC_Ok 0 |
| Success. | |
| #define | TDC_Error (-1) |
| Unspecified error. | |
| #define | TDC_Timeout 1 |
| Receive timed out. | |
| #define | TDC_NotConnected 2 |
| No connection was established. | |
| #define | TDC_DriverError 3 |
| Error accessing the USB driver. | |
| #define | TDC_DeviceLocked 7 |
| Can't connect device because already in use. | |
| #define | TDC_Unknown 8 |
| Unknown error. | |
| #define | TDC_NoDevice 9 |
| Invalid device number used in call. | |
| #define | TDC_OutOfRange 10 |
| Parameter in function call is out of range. | |
| #define | TDC_CantOpen 11 |
| Failed to open specified file. | |
| #define | TDC_NotInitialized 12 |
| Library has not been initialized. | |
| #define | TDC_NotEnabled 13 |
| Requested feature is not enabled. | |
| #define | TDC_NotAvailable 14 |
| Requested feature is not available. | |
Portable data types | |
Integer data types of well defined byte length. double is portable by itself. bool is defined in C99 but not supported by all relevant compilers - we use our own type for clarification of interfaces. | |
| #define | LLXFORMAT "I64x" |
| 64 bit hex printf format | |
| #define | LLDFORMAT "I64d" |
| 64 bit dec printf format | |
| typedef __int8 | Int8 |
| 8 bit integer for MSVC | |
| typedef __int32 | Int32 |
| 32 bit integer for MSVC | |
| typedef __int64 | Int64 |
| 64 bit integer for MSVC | |
| typedef unsigned __int8 | Uint8 |
| 8-Bit unsigned int for MSVC | |
| typedef __int32 | Bln32 |
| integer used as boolean | |
Technical declarations for the DLL interface and basic type defs.
Definition in file tdcdecl.h.
1.8.10