dsm-api-v2
Functions
Convenience Functions

This is a group of convenience functions used to simplify the interaction with digitalSTROM(r) devices. More...

Functions

int DsmApiExpandDeviceDSID (uint16_t vendorId, uint32_t serialNumber, dsid_t *dsid)
 Expand a combination of VendorId and Serial number to a unique dSID.
int DsmApiIsdSM (dsid_t dSMdSID)
 Check if a given dSID belongs to a dSM.

Detailed Description

This is a group of convenience functions used to simplify the interaction with digitalSTROM(r) devices.


Function Documentation

int DsmApiExpandDeviceDSID ( uint16_t  vendorId,
uint32_t  serialNumber,
dsid_t dsid 
)

Expand a combination of VendorId and Serial number to a unique dSID.

Parameters:
[in]vendorIdVendorId of the device
[in]serialNumberSerial number of the device
[out]dsidContains the dSID of the device.
Returns:
0 on success, -1 if VendorId is unknown (dSID contains only serial number)
int DsmApiIsdSM ( dsid_t  dSMdSID)

Check if a given dSID belongs to a dSM.

Parameters:
[in]dSMdSIDdSID of the device in question
Returns:
0: device is no dSM, 1: device is a dSM
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines