Sixnet\Red Lion Controls SN-Series IOCTRL library Version 1.0
|
Implementation of Sixnet\Red Lion Controls SN-Series IOCTRL functions. More...
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include "snhw.h"
Functions | |
int | main () |
The IOCTRL library functions are used within applications to get and set the value of an IO module. | |
void | hwConfig_SetModemModel () |
Set the modem I/O driverPath, controlDevicePath, adcControlDevicePath and defines number of available modules (DI, DO, AI). | |
int | hwControl_Io_setDO (int value, int debug) |
Set the Discrete Output module (DO). | |
int | hwControl_Io_openControl (int debug, int *p_controlFd, char **p_controlPath) |
Open I/O control path. | |
int | hwControl_ioctl (int controlFd, int controlAction, int *controlBits, char *controlPath, int debug) |
Perform an IOCTRL action on an open file descriptor. | |
int | hwControl_Io_getDI (int *p_value, int debug) |
Get the status of Discrete Input. | |
int | hwControl_Io_getDO (int *p_value, int debug) |
Get the status of Discrete Output. | |
int | hwControl_Io_getAI (double *p_value, int debug) |
Get the status of Analog Input. |
Implementation of Sixnet\Red Lion Controls SN-Series IOCTRL functions.
Copyright 2016 Red Lion Controls, Inc.. All rights reserved.
int main | ( | ) |
The IOCTRL library functions are used within applications to get and set the value of an IO module.
I/O modules are referenced by their type (analog input, discrete output, discrete input).
NOTE: Some IOCTRL functions expect or return a value.