pcommx.h
来自「Linux 内核版本2.6.15下的pmac运动控制卡驱动源程序」· C头文件 代码 · 共 44 行
H
44 行
#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 + =
减小字号Ctrl + -
显示快捷键?