📄 lvclser11.h
字号:
#ifndef _CLSER11____H_
#define _CLSER11____H_
#include <lvclser.h> // CamLink specs 1.0
#ifdef __cplusplus
extern "C" {
#endif
CLSER___EXPORT int CLSER___CC clFlushPort(void* serialRefPtr);
CLSER___EXPORT int CLSER___CC clGetErrorText(const char* manuName, int errorCode, char *errorText, unsigned int *errorTextSize);
CLSER___EXPORT int CLSER___CC clGetNumSerialPorts(unsigned int* numPorts);
CLSER___EXPORT int CLSER___CC clGetNumBytesAvail(void *serialRef, unsigned int *numBytes);
CLSER___EXPORT int CLSER___CC clGetSerialPortIdentifier (unsigned int serialIndex, char *portID, unsigned int *bufferSize);
CLSER___EXPORT int CLSER___CC clGetSupportedBaudRates (void *serialRef, unsigned int *baudRates);
CLSER___EXPORT int CLSER___CC clSetBaudRate(void *serialRef, unsigned int baudRate);
CLSER___EXPORT int CLSER___CC clGetManufacturerInfo(char *ManufacturerName, unsigned int *bufferSize, unsigned int *version);
#ifdef __cplusplus
}
#endif
#ifdef __WIN3264__
#ifdef __WIN64__
#ifdef UNICODE
#define LVclser11DLLName L"clserLTV64.DLL"
#else
#define LVclser11DLLName "clserLTV64.DLL"
#endif
#else
#ifdef UNICODE
#define LVclser11DLLName L"clserLTV.DLL"
#else
#define LVclser11DLLName "clserLTV.DLL"
#endif
#endif
#endif // __WIN32__
#ifndef CL_ERR_NO_ERR
#define CL_ERR_NO_ERR 0
#define CL_ERR_BUFFER_TOO_SMALL -10001
#define CL_ERR_MANU_DOES_NOT_EXIST -10002
#define CL_ERR_PORT_IN_USE -10003
#define CL_ERR_TIMEOUT -10004
#define CL_ERR_INVALID_INDEX -10005
#define CL_ERR_INVALID_REFERENCE -10006
#define CL_ERR_ERROR_NOT_FOUND -10007
#define CL_ERR_BAUD_RATE_NOT_SUPPORTED -10008
#define CL_ERR_OUT_OF_MEMORY -10009
#define CL_ERR_UNABLE_TO_LOAD_DLL -10098
#define CL_ERR_FUNCTION_NOT_FOUND -10099
#endif
#define CL_DLL_VERSION_NO_VERSION 1
#define CL_DLL_VERSION_1_0 2
#define CL_DLL_VERSION_1_1 3
#define CL_BAUDRATE_9600 1
#define CL_BAUDRATE_19200 2
#define CL_BAUDRATE_38400 4
#define CL_BAUDRATE_57600 8
#define CL_BAUDRATE_115200 16
#define CL_BAUDRATE_230400 32
#define CL_BAUDRATE_460800 64
#define CL_BAUDRATE_921600 128
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -