nidas v1.2.3
|
#include <sys/ioctl.h>
#include <sys/types.h>
Go to the source code of this file.
Macros | |
#define | VIPER_DIO_IOC_MAGIC 'v' |
#define | VIPER_DIO_GET_NOUT _IO(VIPER_DIO_IOC_MAGIC,0) |
Ioctls. | |
#define | VIPER_DIO_GET_NIN _IO(VIPER_DIO_IOC_MAGIC,1) |
get number of input pins (8, IN0-7) | |
#define | VIPER_DIO_CLEAR _IOW(VIPER_DIO_IOC_MAGIC,2,unsigned char) |
clear (to low) viper digital output ports OUT0-7, as selected by bits 0-7 of a char | |
#define | VIPER_DIO_SET _IOW(VIPER_DIO_IOC_MAGIC,3,unsigned char) |
set (to high) viper digital output ports OUT0-7, as selected by bits 0-7 of a char | |
#define | VIPER_DIO_SET_TO_VAL _IOW(VIPER_DIO_IOC_MAGIC,4,unsigned char[2]) |
set ports OUT0-7, selected by bits 0-7 of the first char, to 0(low) or high(1) based on bits 0-7 of the second char | |
#define | VIPER_DIO_GET_DOUT _IOR(VIPER_DIO_IOC_MAGIC,5,unsigned char) |
get current settings of OUT0-7 | |
#define | VIPER_DIO_GET_DIN _IOR(VIPER_DIO_IOC_MAGIC,6,unsigned char) |
get current settings of IN0-7 | |
#define | VIPER_DIO_IOC_MAXNR 6 |
#define | VIPER_DIO_NOUT 8 |
#define | VIPER_DIO_NIN 8 |
#define VIPER_DIO_CLEAR _IOW(VIPER_DIO_IOC_MAGIC,2,unsigned char) |
clear (to low) viper digital output ports OUT0-7, as selected by bits 0-7 of a char
Referenced by nidas::dynld::ViperDIO::clearOutputs(), and viper_dio_ioctl().
#define VIPER_DIO_GET_DIN _IOR(VIPER_DIO_IOC_MAGIC,6,unsigned char) |
get current settings of IN0-7
Referenced by nidas::dynld::ViperDIO::getInputs(), and viper_dio_ioctl().
#define VIPER_DIO_GET_DOUT _IOR(VIPER_DIO_IOC_MAGIC,5,unsigned char) |
get current settings of OUT0-7
Referenced by nidas::dynld::ViperDIO::getOutputs(), and viper_dio_ioctl().
#define VIPER_DIO_GET_NIN _IO(VIPER_DIO_IOC_MAGIC,1) |
get number of input pins (8, IN0-7)
Referenced by nidas::dynld::ViperDIO::open(), and viper_dio_ioctl().
#define VIPER_DIO_GET_NOUT _IO(VIPER_DIO_IOC_MAGIC,0) |
Ioctls.
get number of output pins (8, OUT0-7)
Referenced by nidas::dynld::ViperDIO::open(), and viper_dio_ioctl().
#define VIPER_DIO_IOC_MAGIC 'v' |
Referenced by viper_dio_ioctl().
#define VIPER_DIO_IOC_MAXNR 6 |
Referenced by viper_dio_ioctl().
#define VIPER_DIO_NIN 8 |
#define VIPER_DIO_NOUT 8 |
Referenced by viper_dio_ioctl().
#define VIPER_DIO_SET _IOW(VIPER_DIO_IOC_MAGIC,3,unsigned char) |
set (to high) viper digital output ports OUT0-7, as selected by bits 0-7 of a char
Referenced by nidas::dynld::ViperDIO::setOutputs(), and viper_dio_ioctl().
#define VIPER_DIO_SET_TO_VAL _IOW(VIPER_DIO_IOC_MAGIC,4,unsigned char[2]) |
set ports OUT0-7, selected by bits 0-7 of the first char, to 0(low) or high(1) based on bits 0-7 of the second char
Referenced by nidas::dynld::ViperDIO::setOutputs(), and viper_dio_ioctl().