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:
-
- Returns:
- None.
- Examples:
- snhwEx.c.
int hwControl_Io_openControl |
( |
int |
debug, |
|
|
int * |
p_controlFd, |
|
|
char ** |
p_controlPath |
|
) |
| |
Open I/O control path.
- Parameters:
-
[in] | Integer | debug value |
[in] | Integer | file descriptor |
[in] | char | controlPath |
- 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] | Integer | driverPath |
[in] | Integer | for setting Discrete Output to ON or OFF |
[in] | Integer | controlBits |
[in] | char | controlPath |
[in] | Integer | debug value |
- Returns:
- >= 0 on success, -1 on error
- Examples:
- snhwEx.c.