Application Programming Interface

LayGO protocol services are accessed through the LayGO Application Programming Interface (API). The API abstracts features common to most communication protocols and provides a uniform interface to them. The API also allows access to protocol-specific features via IOCTL functions. However, if protocol-specific features are not required, applications using LayGO can run unchanged with different combinations of protocols, as the situation warrants.

The LayGO API is a set of functions and data types similar to those provided by the C Standard Library to access file system services or by UNIX to access sockets. The API does not implement a transport layer protocol, but it is similar in concept. It is intended to provide a uniform interface to multiple underlying protocols while still allowing access to protocol-specific features.

To achieve this abstraction, core API functions have been defined which represent a generic communication model applicable to all underlying protocols. These core functions are listed below by category. For a detaileddescription of each function, see the LayGO API Manual.

Supervisory functions to control the stack:

Functions to support intelligent cards:

Functions to support the RPC stack server:

Functions to manage protocol services:

Functions to connect and disconnect devices:

Functions to read and write data and detect events:

Functions to request information:

Auxiliary functions to interpret return codes: