数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN3224 数据表(PDF) 21 Page - STMicroelectronics

部件名 AN3224
功能描述  Developing an application allowing PR101-USB and MR101-USB FEIG readers to communicate with M24LRXX transponders
PDF  49 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN3224 数据表(HTML) 21 Page - STMicroelectronics

Back Button AN3224 Datasheet HTML 17Page - STMicroelectronics AN3224 Datasheet HTML 18Page - STMicroelectronics AN3224 Datasheet HTML 19Page - STMicroelectronics AN3224 Datasheet HTML 20Page - STMicroelectronics AN3224 Datasheet HTML 21Page - STMicroelectronics AN3224 Datasheet HTML 22Page - STMicroelectronics AN3224 Datasheet HTML 23Page - STMicroelectronics AN3224 Datasheet HTML 24Page - STMicroelectronics AN3224 Datasheet HTML 25Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 49 page
background image
AN3224
PR101-USB and MR101-USB reader detection
Doc ID 17559 Rev 2
21/49
Dim strDeviceHnd(0 To 15) As String * 8
Dim strPresent(0 To 15) As String * 25
Dim strDeviceID(0 To 15) As String * 8
Dim dwHandle As Long
Dim iHandle As Long
'init display
‘txtDetectResult.Text = ""
oSearch.iMask = 0
'--- Clear Scan List (dll function)
FEUSB_ClearScanList ' should be called before every scan process
'--- scan and open in one process (dll function)
DeviceHnd = FEUSB_Scan(FEUSB_SCAN_ALL, oSearch)
If (DeviceHnd = FEUSB_ERR_NO_DEVICE_FOUND) Then
'--- txtScannedReaders.Text = "NO READER DETECTED"
Else
'---Number of USB device connected
lngReaderNumber = FEUSB_GetScanListSize
For i = 1 To lngReaderNumber
'--- Get System parameters of all detected USB devices
error = FEUSB_GetScanListPara(0, "DeviceHnd", strDeviceHnd(i))
error = FEUSB_GetScanListPara(0, "FamilyName",
strFamilyName(i))
error = FEUSB_GetScanListPara(0, "DeviceName",
strDeviceName(i))
error = FEUSB_GetScanListPara(0, "Present", strPresent(i))
error = FEUSB_GetScanListPara(0, "Device-ID", strDeviceID(i))
'--- decode lngDeviceHnd(i) value
CharCnt = 0
lngDeviceHnd(i) = 0
For Cnt = 1 To 8
Char = UCase(Mid(strDeviceHnd(i), 9 - Cnt, 1))
If ((Char >= "0") And (Char <= "9")) Then
lngDeviceHnd(i) = lngDeviceHnd(i) + (Asc(Char) - 48) * _
(16 ^ CharCnt)
CharCnt = CharCnt + 1
End If
If ((Char >= "A") And (Char <= "F")) Then
lngDeviceHnd(i) = lngDeviceHnd(i) + (Asc(Char) - 55) * _
(16 ^ CharCnt)
CharCnt = CharCnt + 1
End If
Next Cnt
'--- decode strFamilyName(i) value
strFamilyName(i) = ""
For Cnt = 1 To 25
Char = UCase(Mid(strFamilyName(i), Cnt, 1))
If (((Char >= "0") And (Char <= "9")) Or _
((Char >= "A") And (Char <= "Z")) Or _



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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