⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 channels.h

📁 lwip tcp/ip 协议栈 adsp BF533 DSP 移植 用 visual dsp++ 编译
💻 H
字号:
#ifndef _BTC_CHANNELS_H
#define _BTC_CHANNELS_H


typedef enum CHANNEL_ERRORS {
	CHNL_NOTREADY		= -1,
	CHNL_OK				= 0,
	CHNL_INV_PARAM		= 1,
	CHNL_NOT_OPEN		= 2,
	CHNL_ALREADY_OPEN	= 3,
	CHNL_ABORTED		= 4,
	CHNL_INV_DIRN		= 5,
	CHNL_CLOSING		= 6,
	CHNL_NOLINK			= 7,
	CHNL_NOVDSP			= 8,
	CHNL_INVSEQ			= 9,
	CHNL_COMM			= 10,
	CHNL_NOMEM			= 11
} CHANNEL_ERRORS;


#ifndef _BTC_CHANNELS_H_EXPORT

#ifdef __cplusplus
extern "C" {            /* Assume C declarations for C++ */
#endif    /* __cplusplus */

__declspec( dllimport ) int BtcOpen(int channelno, int transmit, HANDLE hTag);
__declspec( dllimport ) int BtcWrite(int channelno, int nobytes, const char *data, int *nosent);
__declspec( dllimport ) int BtcRead(int channelno, int nobytes, char *data, int *noread);
__declspec( dllimport ) int BtcClose(int channelno, int abort);
__declspec( dllimport ) int BtcPollTime(int channelno,  unsigned int polltime);
__declspec( dllimport ) int BtcDataReady(void);
__declspec( dllimport ) int BtcActivate(int Start);


#ifdef __cplusplus
}
#endif    /* __cplusplus */


#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -