Generic Functions

This section describes the generic functions. They are used to control and monitor the DLN-series adapter.

Actual control of a device is performed by use of commands and responses. Each function utilizes respective commands and responses. You can send such commands directly if necessary.

Function Description
DlnRegisterNotification() registers the notification settings between user applications and the DLN library;
DlnUnregisterNotification() disposes notification settings between user applications and the DLN library;
DlnConnect() establishes the connection to the DLN server;
DlnDisconnect() closes the connection to the specified DLN server;
DlnDisconnectAll() closes connections to all servers at once;
DlnGetDeviceCount() retrieves the total number of DLN-devices available;
DlnOpenDevice() opens the specified device;
DlnOpenDeviceBySn() opens a device, specified by its serial number;
DlnOpenDeviceById() opens a device, specified by its ID number;
DlnCloseHandle() closes the handle to an opened DLN-series adapter (stream);
DlnCloseAllHandles() closes handles to all opened DLN-series adapters and streams;
DlnGetVersion() retrieves the DLN-series adapter version data;
DlnGetDeviceSn() retrieves a device serial number;
DlnSetDeviceId() sets a new ID to the DLN-series device;
DlnGetDeviceId() retrieves the device ID number;
DlnSendMessage() sends a specified message to the DLN-series adapter;
DlnGetMessage() retrieves messages sent by the device;
DlnTransaction() sends a synchronous command and returns the response details.
DlnGetPinCfg() retrieves current configuration of the specified DLN-series adapter pin.