📄 insnadts.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -