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

📄 pcommx.h~

📁 linux 内核版本2.6.18下的pmac运动控制卡驱动源程序
💻 H~
字号:
#ifndef PCOMMX_H#define PCOMMX_H#include <linux/pmacisa.h>enum Location_Type{	LT_UNKNOWN=0, LT_ISA, LT_SER, LT_ETH, LT_PCI, LT_USB, LT_LAST};typedef enum {	BUS=0, DPR}ASCII_MODE;struct Pmac_Comm_Device{	int node;	char dev_node[14];	int count;	int progress;	int read_error;	ASCII_MODE ascii_mode;	struct _Device_Ext ext;};char devnos[PMAC_NO]={'0', '1', '2', '3','4', '5', '6', '7'};#ifdef __cplusplusextern "C"{#endifint pmac_download_progress(int device);int open_pmac_device(int device);int close_pmac_device(int device);int pmac_read_ready(int device);int pmac_send_line(int device, char *buf);int pmac_get_line(int device, char *buf);int pmac_get_response(int device, char *buf);int pmac_get_control_response(int device, char *buf);int pmac_set_ascii_comm(int device, ASCII_MODE mode);int pmac_download_file(int device, const char *fname);#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

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