nidas v1.2.3
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.
 
#define IR104_IO_REGION_SIZE   15
 
#define IR104_GET_NOUT   _IO(IR104_IOC_MAGIC,0)
 Ioctls.
 
#define IR104_GET_NIN   _IO(IR104_IOC_MAGIC,1)
 get number of inputs
 
#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
 
#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
 
#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
 
#define IR104_GET_DOUT    _IOR(IR104_IOC_MAGIC,5,unsigned char[3])
 get current settings of outputs
 
#define IR104_GET_DIN    _IOR(IR104_IOC_MAGIC,6,unsigned char[3])
 get current settings of inputs
 
#define IR104_IOC_MAXNR   6
 
#define IR104_NOUT   20
 
#define IR104_NIN   20
 

Macro Definition Documentation

◆ IR104_CLEAR

#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().

◆ IR104_GET_DIN

#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().

◆ IR104_GET_DOUT

#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().

◆ IR104_GET_NIN

#define IR104_GET_NIN   _IO(IR104_IOC_MAGIC,1)

get number of inputs

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

◆ IR104_GET_NOUT

#define IR104_GET_NOUT   _IO(IR104_IOC_MAGIC,0)

Ioctls.

get number of outputs

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

◆ IR104_IO_REGION_SIZE

#define IR104_IO_REGION_SIZE   15

Referenced by ir104_cleanup(), and ir104_init().

◆ IR104_IOC_MAGIC

#define IR104_IOC_MAGIC   'i'

Referenced by ir104_ioctl().

◆ IR104_IOC_MAXNR

#define IR104_IOC_MAXNR   6

Referenced by ir104_ioctl().

◆ IR104_MAX_BOARDS

#define IR104_MAX_BOARDS   4

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

Referenced by ir104_init().

◆ IR104_NIN

#define IR104_NIN   20

Referenced by ir104_ioctl().

◆ IR104_NOUT

#define IR104_NOUT   20

Referenced by ir104_ioctl().

◆ IR104_SET

#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().

◆ IR104_SET_TO_VAL

#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().