| Electronic Components Datasheet Search |
|
AN3224 Datasheet(PDF) 22 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3224 Datasheet(HTML) 22 Page - STMicroelectronics |
|
22 / 49 page ![]() PR101-USB and MR101-USB reader detection AN3224 22/49 Doc ID 17559 Rev 2 (Char = "-") Or (Char = ".") Or (Char = " ")) Then strFamilyName(i) = strFamilyName(i) & Char End If Next Cnt '--- decode strDeviceName(i) value strDeviceName(i) = "" For Cnt = 1 To 25 Char = UCase(Mid(strDeviceName(i), Cnt, 1)) If (((Char >= "0") And (Char <= "9")) Or ((Char >= "A") _ And (Char <= "Z")) Or (Char = "-") Or (Char = ".") Or _ (Char = " ")) Then strDeviceName(i) = strDeviceName(i) & Char End If Next Cnt '-- decode strDeviceID value CharCnt = 0 lngDeviceId(i) = 0 For Cnt = 1 To 8 Char = UCase(Mid(strDeviceID(i), 9 - Cnt, 1)) If ((Char >= "0") And (Char <= "9")) Then lngDeviceId(i) = lngDeviceId(i) + (Asc(Char) - 48) * _ (16 ^ CharCnt) CharCnt = CharCnt + 1 End If If ((Char >= "A") And (Char <= "F")) Then lngDeviceId(i) = lngDeviceId(i) + (Asc(Char) - 55) * _ (16 ^ CharCnt) CharCnt = CharCnt + 1 End If Next Cnt '-- decode strPresent value CharCnt = 0 lngPresent(i) = 0 For Cnt = 1 To 8 Char = UCase(Mid(strPresent(i), 9 - Cnt, 1)) If ((Char >= "0") And (Char <= "9")) Then lngPresent(i) = lngPresent(i) + (Asc(Char) - 48) * _ (16 ^ CharCnt) CharCnt = CharCnt + 1 End If If ((Char >= "A") And (Char <= "F")) Then lngPresent(i) = lngPresent(i) + (Asc(Char) - 55) * _ (16 ^ CharCnt) CharCnt = CharCnt + 1 End If Next Cnt '--- summary of Detected Device parameters for One USB device '- txtDeviceHandle.Text = "DeviceHnd : " & lngDeviceHnd(i) '- txtFamilyName.Text = "FamilyName : " & strFamilyName(i) '- txtDeviceName.Text = "DeviceName : " & strDeviceName(i) '- txtPresent.Text = "Present : " & CLng("&h" & lngPresent(i)) |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |