|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PtGlobalI
Main class with basic static Ptapi library methods.
Method Summary | |
---|---|
PtDeviceListItem[] |
enumerateDevices(java.lang.String enumDsn)
Enumerate TFM/ESS devices |
PtGlobalInfo |
globalInfo()
Get information about the API version and other global information, independent on any connection. |
void |
initialize()
Initialize the API library. |
void |
initializeEx(int flags)
Initialize the PTAPI library with possibility to set some additional flags. |
PtConnectionI |
open(java.lang.String dsn)
Open new "local" connection to TFM. |
PtConnectionI |
openDevice(java.lang.String dsn)
Opens and prepares connection interface with TFM/ESS. |
PtConnectionI |
openRemote(PtCommCallback commCallback)
Open a new connection to a remote instance of PTAPI library, set the address of a communication callback for this connection and return a connection handle. |
void |
terminate()
Uninitialize the API library. |
Method Detail |
---|
PtDeviceListItem[] enumerateDevices(java.lang.String enumDsn) throws PtException
enumDsn
- ASCII string describing the TFM/ESS
connection interface, where enumeration is required,
e.g. USB. Example: "usb".
PtException
- Error code of fail, if any was accoured.PtGlobalInfo globalInfo() throws PtException
PtException
- Error code of fail, if any was accoured.void initialize() throws PtException
PtException
- Error code of fail, if any was accoured.void initializeEx(int flags) throws PtException
PtException
- Error code of fail, if any was accoured.PtConnectionI open(java.lang.String dsn) throws PtException
dsn
- ASCII string descriobing the TFM connection
parameters, e.g. port number etc. Example: "Port=COM1".
PtException
- Error code of fail, if any was accoured.PtConnectionI openDevice(java.lang.String dsn) throws PtException
dsn
- ASCII string descriobing the TFM/ESS connection
interface parameters, e.g. port number etc. Example: "Port=COM1".
PtException
- Error code of fail, if any was accoured.PtConnectionI openRemote(PtCommCallback commCallback) throws PtException
commCallback
- Application-provided callback to pass data packet to/from
the remote library instance.
PtException
- Error code of fail, if any was accoured.void terminate() throws PtException
PtException
- Error code of fail, if any was accoured.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |