![Tews Technologies TIP815-SW-12 Скачать руководство пользователя страница 6](http://html1.mh-extra.com/html/tews-technologies/tip815-sw-12/tip815-sw-12_manual_1093614006.webp)
5
3.I/O interface functions
This chapter describes the interface to the I/O system used for communication over the ARCNET
Interface.
3.1. t815_open()
NAME
t815_open() - - open a path to a TIP815 device
SYNOPSIS
int t815_open ( DeviceName, PathNr )
char
*DeviceName; /* name of the device to open */
int
*PathNr;
/* path number returned by this call */
DESCRIPTION
Before I/O can be performed to the TIP815 device it must be opened by invoking the I/O function
t815_open().
The path number is used to identify the device in subsequent service requests.
EXAMPLE
...
/*- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
open the device named ”/t815A”for I/O
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -*/
result = t815_open
( ”/t815A”, &path);
....
RETURNS
returns E_NOERR (0) if the device was successful opened, or an appropriate error code if the device
does not exist.
SEE ALSO
I/O system call I$Open