English
Language : 

AN496 Datasheet, PDF (7/36 Pages) Silicon Laboratories – HID USB-TO-SMBUS API SPECIFICATION
AN496
2.6. HidSmbus_GetAttributes
Description:
Prototype:
Parameters:
This function returns the device vendor ID, product ID, and release number for the device specified
by an index passed in deviceNum.
HID_SMBUS_STATUS HidSmbus_GetAttributes (DWORD deviceNum, WORD vid, WORD
pid, WORD* deviceVid, WORD* devicePid, WORD* deviceReleaseNumber)
1. deviceNum is the index of the device for which the string is desired.
2. vid filters device results by vendor ID. If both vid and pid are set to 0x0000, then HID devices
will not be filtered by VID/PID.
3. pid filters device results by product ID. If both vid and pid are set to 0x0000, then HID devices
will not be filtered by VID/PID.
4. deviceVid returns the device vendor ID.
5. devicePid returns the device product ID.
6. deviceReleaseNumber returns the USB device release number in binary-coded decimal.
Return Value: HID_SMBUS_STATUS = HID_SMBUS_SUCCESS
HID_SMBUS_DEVICE_NOT_FOUND
HID_SMBUS_INVALID_PARAMETER
HID_SMBUS_DEVICE_ACCESS_ERROR
2.7. HidSmbus_GetOpenedAttributes
Description:
Prototype:
Parameters:
This function returns the device vendor ID, product ID, and release number for the device specified
by device.
HID_SMBUS_STATUS HidSmbus_GetOpenedAttributes (HID_SMBUS_DEVICE device,
WORD* deviceVid, WORD* devicePid, WORD* deviceReleaseNumber)
1. device is the device object pointer as returned by HidSmbus_Open().
2. deviceVid returns the device vendor ID.
3. devicePid returns the device product ID.
4. deviceReleaseNumber returns the USB device release number in binary-coded decimal.
Return Value: HID_SMBUS_STATUS = HID_SMBUS_SUCCESS
HID_SMBUS_INVALID_DEVICE_OBJECT
HID_SMBUS_INVALID_PARAMETER
HID_SMBUS_DEVICE_ACCESS_ERROR
Rev. 0.2
7