nidas  v1.2-1520
Macros
ir104.h File Reference
#include <sys/ioctl.h>
#include <sys/types.h>

Go to the source code of this file.

Macros

#define IR104_IOC_MAGIC   'i'
 
#define IR104_MAX_BOARDS   4
 Number of boards on a system that are supported by this driver. More...
 
#define IR104_IO_REGION_SIZE   15
 
#define IR104_GET_NOUT   _IO(IR104_IOC_MAGIC,0)
 Ioctls. More...
 
#define IR104_GET_NIN   _IO(IR104_IOC_MAGIC,1)
 get number of inputs More...
 
#define IR104_CLEAR   _IOW(IR104_IOC_MAGIC,2,unsigned char[3])
 clear (to low) digital output ports, as selected by bits of a 32 bit int More...
 
#define IR104_SET   _IOW(IR104_IOC_MAGIC,3,unsigned char[3])
 set (to high) digital output ports, as selected by bits of a 32 bit int More...
 
#define IR104_SET_TO_VAL   _IOW(IR104_IOC_MAGIC,4,unsigned char[6])
 set ports, selected by bits of the first 3 chars, to 0(low) or high(1) based on bits of the second 3 chars More...
 
#define IR104_GET_DOUT   _IOR(IR104_IOC_MAGIC,5,unsigned char[3])
 get current settings of outputs More...
 
#define IR104_GET_DIN   _IOR(IR104_IOC_MAGIC,6,unsigned char[3])
 get current settings of inputs More...
 
#define IR104_IOC_MAXNR   6
 
#define IR104_NOUT   20
 
#define IR104_NIN   20
 

Macro Definition Documentation

#define IR104_CLEAR   _IOW(IR104_IOC_MAGIC,2,unsigned char[3])

clear (to low) digital output ports, as selected by bits of a 32 bit int

Referenced by nidas::dynld::IR104_Relays::clearOutputs(), and ir104_ioctl().

#define IR104_GET_DIN   _IOR(IR104_IOC_MAGIC,6,unsigned char[3])

get current settings of inputs

Referenced by nidas::dynld::IR104_Relays::getInputs(), and ir104_ioctl().

#define IR104_GET_DOUT   _IOR(IR104_IOC_MAGIC,5,unsigned char[3])

get current settings of outputs

Referenced by nidas::dynld::IR104_Relays::getOutputs(), and ir104_ioctl().

#define IR104_GET_NIN   _IO(IR104_IOC_MAGIC,1)

get number of inputs

Referenced by ir104_ioctl(), and nidas::dynld::IR104_Relays::open().

#define IR104_GET_NOUT   _IO(IR104_IOC_MAGIC,0)

Ioctls.

get number of outputs

Referenced by ir104_ioctl(), and nidas::dynld::IR104_Relays::open().

#define IR104_IO_REGION_SIZE   15

Referenced by ir104_cleanup(), and ir104_init().

#define IR104_IOC_MAGIC   'i'

Referenced by ir104_ioctl().

#define IR104_IOC_MAXNR   6

Referenced by ir104_ioctl().

#define IR104_MAX_BOARDS   4

Number of boards on a system that are supported by this driver.

Referenced by ir104_init().

#define IR104_NIN   20

Referenced by ir104_ioctl().

#define IR104_NOUT   20

Referenced by ir104_ioctl().

#define IR104_SET   _IOW(IR104_IOC_MAGIC,3,unsigned char[3])

set (to high) digital output ports, as selected by bits of a 32 bit int

Referenced by ir104_ioctl(), and nidas::dynld::IR104_Relays::setOutputs().

#define IR104_SET_TO_VAL   _IOW(IR104_IOC_MAGIC,4,unsigned char[6])

set ports, selected by bits of the first 3 chars, to 0(low) or high(1) based on bits of the second 3 chars

Referenced by ir104_ioctl(), and nidas::dynld::IR104_Relays::setOutputs().