insnadts.h

来自「研华812pg卡在linux环境下的应用」· C头文件 代码 · 共 44 行

H
44
字号
#ifndef INSNADTS_H#define INSNADTS_H#include <stdio.h>		//standard input output library#include <stdlib.h>#include <comedilib.h>		//comedilib library#include <unistd.h>		//standard symbolic constants and types library#include <errno.h>		//error codes report library #include <getopt.h>		//argument analyse function library#include <sys/time.h>		//time and date library #include <string.h>		//string function library#define N_SAMPLE 1 class Insnadts{ public:    Insnadts();    ~Insnadts(); public:    char *filename;	//comedi device file name    comedi_t *device;		//comedi device    int subdevice;		//subdevice number, 0 is ai    int channel;		//channel index		    int range;			//range index public:    lsampl_t data[16];	//buffer used to save sample data    lsampl_t maxdata;		//the max data    comedi_range * srange;    int n_channels;			//channel index    int n_range;			//range index    comedi_insn insn[9];		//comedi insn task    comedi_insnlist il;		//insn list public:    float readdata[7];    float outdate[6]; public:    void adts(int n);    void init();              //initialization    //void readdate();};#endif

⌨️ 快捷键说明

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