Sixnet\Red Lion Controls SN-Series IOCTRL library Version 1.0
Advanced Driver Functions

These functions get information about the I/O controlPath, drivrControlPath. More...

Functions

void hwConfig_SetModemModel ()
 Set the modem I/O driverPath, controlDevicePath, adcControlDevicePath and defines number of available modules (DI, DO, AI).
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.

Detailed Description

These functions get information about the I/O controlPath, drivrControlPath.


Function Documentation

void hwConfig_SetModemModel ( )

Set the modem I/O driverPath, controlDevicePath, adcControlDevicePath and defines number of available modules (DI, DO, AI).

Parameters:
[in]None
[out]None
Returns:
None.
Examples:
snhwEx.c.
int hwControl_Io_openControl ( int  debug,
int *  p_controlFd,
char **  p_controlPath 
)

Open I/O control path.

Parameters:
[in]Integerdebug value
[in]Integerfile descriptor
[in]charcontrolPath
Returns:
>= 0 on success, -1 on error
Examples:
snhwEx.c.
int hwControl_ioctl ( int  controlFd,
int  controlAction,
int *  controlBits,
char *  controlPath,
int  debug 
)

Perform an IOCTRL action on an open file descriptor.

Parameters:
[in]IntegerdriverPath
[in]Integerfor setting Discrete Output to ON or OFF
[in]IntegercontrolBits
[in]charcontrolPath
[in]Integerdebug value
Returns:
>= 0 on success, -1 on error
Examples:
snhwEx.c.
 All Files Functions