#ifndef WH_7300A_H_90181475_ #define WH_7300A_H_90181475_ #include /* * ioctls for the Adlink 7300A driver. * * ADLINK7300A_DO_AUX and ADLINK7300A_DI_AUX write and read * (respectively) the four auxiliary I/O pins (DO_AUX ignores all but * the low four bits of its argument; DI_AUX returns its results in * the low four bits, with the other bits all zero). * * ADLINK7300A_FLUSH flushes everything currently buffered. (Thus, for * example, if no samples are coming in, a read() after this will * return zero.) */ #define ADLINK7300A_DO_AUX _IOW('7',0,char) #define ADLINK7300A_DI_AUX _IOR('7',1,char) #define ADLINK7300A_FLUSH _IO('7',2) struct adlink7300_snoop { unsigned int nsamples; // value-result unsigned int more; // from-kernel only uint32_t *samples; // to-kerenl only int overrun; // from-kernel only } ; #define ADLINK7300A_SNOOP _IOWR('7',3,struct adlink7300_snoop) #endif