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
Expand a combination of VendorId and Serial number to a unique dSID.
- Parameters:
-
[in] | vendorId | VendorId of the device |
[in] | serialNumber | Serial number of the device |
[out] | dsid | Contains the dSID of the device. |
- Returns:
- 0 on success, -1 if VendorId is unknown (dSID contains only serial number)
Check if a given dSID belongs to a dSM.
- Parameters:
-
[in] | dSMdSID | dSID of the device in question |
- Returns:
- 0: device is no dSM, 1: device is a dSM