Toshiba V Series User Manual page 66

Integrated controller
Hide thumbs Also See for V Series:
Table of Contents

Advertisement

Chapter 8 Function Reference
8
54
TcnSccSetControl
Name
TcnSccSetControl - Start/stop scan transmission
Type
#include <tcnlib.h>
BOOL TcnSccSetControl (IN HANDLE hDevice, IN DWORD dwMode);
Description
Starts/stops scan.
hDevice
: File handle obtained with TcnCreateFile
dwMode
: 1 to start scan, 0 to stop scan
Return Code
TRUE is returned in case of normal end.
FALSE is returned in case of abnormal end.
The error detail can be obtained with GetLastError().
Example
#include <windows.h>
#include "tcnlib.h"
HANDLEhDev;
// Start scan (perform after setting scan transmission cycle and scan talker
block)
result = TcnSccSetControl( hDev, 1 ); // Start:1, Stop:0
if( !result ) printf("TcnSccSetControl fail. Code = %ld\n",GetLastError());
See Also
TcnSccGetControl
:
:
TC-net 100 PCI Bus Card Support Software User Manual

Advertisement

Table of Contents
loading

Table of Contents