79 lines
1.4 KiB
C
79 lines
1.4 KiB
C
/* ++
|
|
|
|
Module Name: BSTCOMEX_lib.h
|
|
|
|
Author: Steven Ren
|
|
|
|
Description:
|
|
this file defined all External User Interface (UI) for
|
|
user to programming the custom Application;
|
|
|
|
History:
|
|
2015/09/06 (V1.0 published): this created
|
|
-- */
|
|
|
|
#ifndef _BSTCOMEX_LIB_H_
|
|
#define _BSTCOMEX_LIB_H_
|
|
|
|
#include <windows.h>
|
|
#include "bstcom_lib.h"
|
|
#pragma comment(lib, "BSTCOMEX.lib")
|
|
|
|
#ifndef DLL
|
|
#define DLL __declspec(dllimport)
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
// 打开板卡
|
|
//
|
|
DLL BOOL __stdcall BSTCOMEX_Open(HANDLE *phDev, BYTE CardId);
|
|
|
|
// 关闭板卡
|
|
//
|
|
DLL BOOL __stdcall BSTCOMEX_Close(HANDLE hDev);
|
|
|
|
// 获取板卡序列号
|
|
//
|
|
DLL DWORD __stdcall BSTCOMEX_GetSN(HANDLE hDev);
|
|
|
|
// 获取版本信息
|
|
//
|
|
DLL BOOL __stdcall BSTCOMEX_GetVersion(HANDLE hDev, VERSIONINFO_STRUCT *pstVerInfo);
|
|
|
|
/*
|
|
* 脉冲 配置与输出 -----------------------------------
|
|
*/
|
|
|
|
// 设置脉冲输出参数
|
|
//
|
|
DLL BOOL __stdcall BSTCOMEX_PLS_SetOutputParam(HANDLE hDev, BYTE ChNo, BYTE ModeSel, const BSTCOM_PULSE_PARAM_STRUCT *pstPulseParam);
|
|
|
|
// 使能/禁止输出
|
|
//
|
|
DLL BOOL __stdcall BSTCOMEX_PLS_OutEnable(HANDLE hDev, BYTE ChNo, BOOL Enabled);
|
|
|
|
// 开启单通道脉冲输出
|
|
//
|
|
DLL BOOL __stdcall BSTCOMEX_PLS_OutputStart(HANDLE hDev, BYTE ChNo);
|
|
|
|
// 停止单通道脉冲输出
|
|
//
|
|
DLL BOOL __stdcall BSTCOMEX_PLS_OutputStop(HANDLE hDev, BYTE ChNo);
|
|
|
|
// 多通道脉冲输出开启/停止控制
|
|
//
|
|
DLL BOOL __stdcall BSTCOMEX_PLS_OutputStartAll(HANDLE hDev, DWORD dwStart);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|
|
|