├── CH554DS1.PDF
├── CH554EVT.PDF
├── official ch554 evt pcb
├── 554_udisk
│ ├── Listings
│ │ ├── DEBUG.lst
│ │ ├── u_disk.lst
│ │ └── udisk.m51
│ ├── Objects
│ │ ├── DEBUG.obj
│ │ ├── u_disk.obj
│ │ ├── udisk
│ │ ├── udisk.build_log.htm
│ │ ├── udisk.hex
│ │ └── udisk.lnp
│ ├── Public
│ │ ├── CH554.H
│ │ ├── CH554.INC
│ │ ├── DEBUG.C
│ │ └── DEBUG.H
│ ├── u_disk.c
│ ├── udisk.uvgui.tech
│ ├── udisk.uvopt
│ └── udisk.uvproj
├── CH55X脱机烧录器
│ ├── CH55X_OFF_LINE_LOAD_V10.DDB
│ └── CH55X脱机烧录器使用说明.pdf
├── CH5XX芯片加密建议
│ ├── CH559.H
│ ├── DEBUG.C
│ ├── DEBUG.H
│ ├── Encryption.C
│ ├── Encryption.hex
│ ├── Encryption.uvproj
│ └── 芯片加密建议.pdf
├── Compound_Dev
│ ├── Compound.C
│ ├── Compound_Dev.uvproj
│ ├── Public
│ │ ├── CH554.H
│ │ ├── CH554.INC
│ │ ├── DEBUG.C
│ │ └── DEBUG.H
│ ├── README.TXT
│ ├── Touch_Key
│ │ ├── Touch_Key.C
│ │ └── Touch_Key.H
│ ├── compound.h
│ ├── hid_recv.exe
│ ├── main.c
│ └── obj
│ │ └── Compound_Dev.hex
├── EXAM
│ ├── ADC
│ │ ├── ADC.C
│ │ ├── ADC.H
│ │ ├── ADC.hex
│ │ └── Main.C
│ ├── CH554.uvproj
│ ├── DataFlash
│ │ ├── DataFlash.C
│ │ ├── DataFlash.H
│ │ ├── DataFlash.hex
│ │ └── Main.C
│ ├── GPIO
│ │ ├── GPIO.C
│ │ ├── GPIO.H
│ │ ├── GPIO.hex
│ │ └── Main.C
│ ├── IAP
│ │ ├── CH554IAPDemo.C
│ │ └── CH554IAPDemo.hex
│ ├── PWM
│ │ ├── Main.C
│ │ ├── PWM.C
│ │ ├── PWM.H
│ │ └── PWM.hex
│ ├── Public
│ │ ├── CH554.H
│ │ ├── CH554.INC
│ │ ├── Debug.C
│ │ └── Debug.H
│ ├── SPI
│ │ ├── MainMaster.C
│ │ ├── MainMaster.hex
│ │ ├── MainSlave.C
│ │ ├── MainSlave.hex
│ │ ├── SPI.C
│ │ └── SPI.H
│ ├── Timer
│ │ ├── Main.C
│ │ ├── Timer.C
│ │ ├── Timer.H
│ │ └── Timer.hex
│ ├── TouchKey
│ │ ├── Main.C
│ │ ├── TouchKey.C
│ │ ├── TouchKey.H
│ │ └── TouchKey.hex
│ ├── Type-C
│ │ ├── Main.C
│ │ ├── Type_C.C
│ │ ├── Type_C.H
│ │ ├── Type_C_DFP.hex
│ │ └── Type_C_UPF.hex
│ └── USB
│ │ ├── Device
│ │ ├── CompatibilityHID.C
│ │ ├── CompatibilityHID.hex
│ │ ├── CompositeKM.C
│ │ ├── CompositeKM.hex
│ │ ├── VendorDefinedDev.C
│ │ └── VendorDefinedDev.hex
│ │ ├── Host
│ │ ├── USBHostHUB_KM.C
│ │ └── USBHostHUB_KM.hex
│ │ ├── USB_LIB
│ │ ├── CH554UFI.C
│ │ ├── CH554UFI.H
│ │ ├── CH554UFI.LIB
│ │ ├── CH554UFR.C
│ │ ├── CH554UFR.H
│ │ ├── CH554UFR.LIB
│ │ ├── CH554UFX.LIB
│ │ ├── CH554UF_README.TXT
│ │ ├── USBHOST.C
│ │ └── USBHOST.H
│ │ └── U_DISK
│ │ ├── EXAM1
│ │ ├── EXAM1.C
│ │ └── EXAM1.hex
│ │ └── EXAM11
│ │ ├── EXAM11.C
│ │ └── EXAM11.hex
├── PCB
│ └── CH554MINIEVT.DDB
├── PUB
│ ├── CH554EVT.PDF
│ ├── CH554SCH.PDF
│ └── CH55Xª„±‡÷∏¡Ó.PDF
├── README.TXT
├── S_CDC
│ ├── CDC.C
│ ├── CDC.uvgui.Administrator
│ ├── CDC.uvgui.tech
│ ├── CDC.uvopt
│ ├── CDC.uvproj
│ ├── Listings
│ │ ├── CDC.lst
│ │ ├── CDC.m51
│ │ └── DEBUG.lst
│ ├── Objects
│ │ ├── CDC
│ │ ├── CDC.build_log.htm
│ │ ├── CDC.hex
│ │ ├── CDC.lnp
│ │ ├── CDC.obj
│ │ └── DEBUG.obj
│ ├── Public
│ │ ├── CH554.H
│ │ ├── CH554.INC
│ │ ├── DEBUG.C
│ │ └── DEBUG.H
│ └── UsbToUartDriver.inf
└── 模拟341
│ ├── CH554.uvgui.onwer
│ ├── CH554.uvopt
│ ├── CH554.uvproj
│ ├── CH554DEMO.hex
│ ├── Public
│ ├── CH554.H
│ ├── CH554.INC
│ ├── Debug.C
│ └── Debug.H
│ └── USB
│ └── Device
│ └── CompatibilityHID.C
├── readme.txt
└── taobao ch554
├── C# library application examples written in LIBUSB
├── Benchmark
│ ├── Benchmark.csproj
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── ReadMe.txt
│ ├── fBenchmark.cs
│ ├── fBenchmark.designer.cs
│ └── fBenchmark.resx
├── CSLibUsb
│ ├── .DS_Store
│ ├── DeviceNotify
│ │ ├── DeviceNotifier.cs
│ │ ├── DeviceNotifyEventArgs.cs
│ │ ├── Info
│ │ │ ├── PortNotifyInfo.cs
│ │ │ ├── UsbDeviceNotifyInfo.cs
│ │ │ └── VolumeNotifyInfo.cs
│ │ └── Internal
│ │ │ ├── DevNotifyNativeWindow.cs
│ │ │ ├── Dev_Broadcast.cs
│ │ │ └── SafeNotifyHandle.cs
│ ├── LibUsbDotNet.csproj
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── Usb
│ │ ├── .DS_Store
│ │ ├── Info
│ │ ├── InfoConfig.cs
│ │ ├── InfoDevice.cs
│ │ ├── InfoEndPoint.cs
│ │ ├── InfoInterface.cs
│ │ └── InfosBase.cs
│ │ ├── Internal
│ │ ├── API
│ │ │ ├── LibUsbAPI.cs
│ │ │ ├── LibUsbBus.cs
│ │ │ ├── LibUsbDevice.cs
│ │ │ ├── LibUsb_AltInterfaceDescriptor.cs
│ │ │ ├── LibUsb_ConfigDescriptor.cs
│ │ │ ├── LibUsb_Context.cs
│ │ │ ├── LibUsb_DevHandle.cs
│ │ │ ├── LibUsb_DeviceDescriptor.cs
│ │ │ ├── LibUsb_EndpointDescriptor.cs
│ │ │ └── LibUsb_InterfaceDescriptor.cs
│ │ ├── EndpointTypes.cs
│ │ ├── Helper.cs
│ │ ├── HexDisplayAttribute.cs
│ │ ├── LibUsbConst.cs
│ │ └── TransferContext.cs
│ │ ├── Main
│ │ ├── DataReceivedArgs.cs
│ │ ├── ErrorCodes.cs
│ │ ├── LibUsbException.cs
│ │ ├── ReadEndpoints.cs
│ │ ├── UsbDeviceList.cs
│ │ ├── UsbEndpointList.cs
│ │ ├── UsbError.cs
│ │ ├── UsbSymbolicName.cs
│ │ └── WriteEndpoints.cs
│ │ ├── UsbDevice.cs
│ │ ├── UsbEndpointBase.cs
│ │ ├── UsbEndpointReader.cs
│ │ ├── UsbEndpointWriter.cs
│ │ └── UsbGlobals.cs
├── Docs
│ ├── LibUsbDotNet.html
│ ├── LibUsbDotNet.jpg
│ ├── LibUsbDotNet.xml
│ ├── arrow.gif
│ ├── htmlContent.css
│ ├── htmlContent.js
│ ├── index.htm
│ ├── tree.dtd
│ ├── treeNode_Empty.gif
│ ├── treeNode_Minus.gif
│ ├── treeNode_Plus.gif
│ ├── xmlTree.css
│ ├── xmlTree.js
│ └── xmlTree.xsl
├── LibUsbDotNet.sln
├── Test_Bulk
│ ├── .DS_Store
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── ReadMe.txt
│ ├── Test_Bulk.csproj
│ ├── fTestBulk.Designer.cs
│ ├── fTestBulk.cs
│ └── fTestBulk.resx
├── Test_DeviceNotify
│ ├── Form1.Designer.cs
│ ├── Form1.cs
│ ├── Form1.resx
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── ReadMe.txt
│ └── Test_DeviceNotify.csproj
├── Test_Info
│ ├── .DS_Store
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── ReadMe.txt
│ ├── Test_Info.csproj
│ ├── fTestInfo.Designer.cs
│ ├── fTestInfo.cs
│ └── fTestInfo.resx
├── UnitTest
│ ├── .DS_Store
│ ├── PicTestDevice.cs
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── Test
│ │ ├── ITest.cs
│ │ ├── Test_BigReadWrite.cs
│ │ ├── Test_cancel_io.cs
│ │ └── Test_usb_strerror.cs
│ ├── UnitTest.csproj
│ ├── fUsbTest.Designer.cs
│ ├── fUsbTest.cs
│ └── fUsbTest.resx
├── Utility
│ ├── DevEnvBuilder.exe
│ └── NetBuildInfo.exe
├── build
│ └── ReleaseNotes.html
├── gpl-3.0.txt
├── lgpl-3.0.txt
└── setup
│ └── additional
│ ├── .DS_Store
│ └── libusb-win32
│ ├── AUTHORS.txt
│ ├── COPYING_GPL.txt
│ ├── COPYING_LGPL.txt
│ ├── I64
│ ├── inf-wizard.exe
│ ├── libusb.lib
│ ├── libusb0.dll
│ ├── libusb0.sys
│ ├── msvci70.dll
│ ├── testlibusb-win.exe
│ └── testlibusb.exe
│ ├── inf-wizard.exe
│ ├── install-filter.exe
│ ├── x64
│ ├── inf-wizard.exe
│ ├── libusb.lib
│ ├── libusb0.dll
│ ├── libusb0.sys
│ ├── msvci70.dll
│ ├── testlibusb-win.exe
│ └── testlibusb.exe
│ └── x86
│ ├── inf-wizard.exe
│ ├── libusb.lib
│ ├── libusb0.dll
│ ├── libusb0.sys
│ ├── msvci70.dll
│ ├── testlibusb-win.exe
│ └── testlibusb.exe
├── CH554 analog CDC class,
├── CDC.C
├── CDC.uvgui.Administrator
├── CDC.uvgui.tech
├── CDC.uvopt
├── CDC.uvproj
├── Listings
│ ├── CDC.lst
│ ├── CDC.m51
│ └── DEBUG.lst
├── Objects
│ ├── CDC
│ ├── CDC.build_log.htm
│ ├── CDC.hex
│ ├── CDC.lnp
│ ├── CDC.obj
│ └── DEBUG.obj
├── Public
│ ├── CH554.H
│ ├── CH554.INC
│ ├── DEBUG.C
│ └── DEBUG.H
└── UsbToUartDriver.inf
├── CH554 simulation U disk,
├── Listings
│ ├── DEBUG.lst
│ ├── u_disk.lst
│ └── udisk.m51
├── Objects
│ ├── DEBUG.obj
│ ├── u_disk.obj
│ ├── udisk
│ ├── udisk.build_log.htm
│ ├── udisk.hex
│ └── udisk.lnp
├── Public
│ ├── CH554.H
│ ├── CH554.INC
│ ├── DEBUG.C
│ └── DEBUG.H
├── u_disk.c
├── udisk.uvgui.tech
├── udisk.uvopt
└── udisk.uvproj
├── CH554DS1 (1).PDF
├── Ch55X+USB serial CDC+ analog CH340
├── 6666667.usm
├── CH559.H
├── CH559COM.hex
├── CH559COM.uvproj
├── DEBUG.C
├── DEBUG.H
└── USBCOM.C
├── WCHISPTool_Setup.exe
├── ch554_txm KEIL4 testing eng
├── CH554.H
├── CH554.INC
├── Debug.C
├── Debug.H
├── Debug.LST
├── Debug.OBJ
├── Main.C
├── Main.C.orig
├── Main.LST
├── Main.OBJ
├── Main.__i
├── TouchKey.C
├── TouchKey.H
├── TouchKey.LST
├── TouchKey.OBJ
├── TouchKey.__i
├── ch554_txm
├── ch554_txm.M51
├── ch554_txm.hex
├── ch554_txm.lnp
├── ch554_txm.plg
├── ch554_txm.uvopt
├── ch554_txm.uvproj
├── ch554_txm_uvopt.bak
├── ch554_txm_uvproj.bak
└── Àµ√˜.txt
├── readme.txt
└── taobao ch554T&E smallest board pcb sch.jpg
/CH554DS1.PDF:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/CH554DS1.PDF
--------------------------------------------------------------------------------
/CH554EVT.PDF:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/CH554EVT.PDF
--------------------------------------------------------------------------------
/official ch554 evt pcb/554_udisk/Listings/DEBUG.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/554_udisk/Listings/DEBUG.lst
--------------------------------------------------------------------------------
/official ch554 evt pcb/554_udisk/Listings/u_disk.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/554_udisk/Listings/u_disk.lst
--------------------------------------------------------------------------------
/official ch554 evt pcb/554_udisk/Objects/DEBUG.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/554_udisk/Objects/DEBUG.obj
--------------------------------------------------------------------------------
/official ch554 evt pcb/554_udisk/Objects/u_disk.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/554_udisk/Objects/u_disk.obj
--------------------------------------------------------------------------------
/official ch554 evt pcb/554_udisk/Objects/udisk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/554_udisk/Objects/udisk
--------------------------------------------------------------------------------
/official ch554 evt pcb/554_udisk/Objects/udisk.build_log.htm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/554_udisk/Objects/udisk.build_log.htm
--------------------------------------------------------------------------------
/official ch554 evt pcb/554_udisk/Objects/udisk.lnp:
--------------------------------------------------------------------------------
1 | ".\Objects\u_disk.obj",
2 | ".\Objects\DEBUG.obj"
3 | TO ".\Objects\udisk"
4 | PRINT(".\Listings\udisk.m51") RAMSIZE(256)
5 |
--------------------------------------------------------------------------------
/official ch554 evt pcb/554_udisk/Public/CH554.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/554_udisk/Public/CH554.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/554_udisk/Public/CH554.INC:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/554_udisk/Public/CH554.INC
--------------------------------------------------------------------------------
/official ch554 evt pcb/554_udisk/Public/DEBUG.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/554_udisk/Public/DEBUG.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/554_udisk/Public/DEBUG.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/554_udisk/Public/DEBUG.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/554_udisk/u_disk.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/554_udisk/u_disk.c
--------------------------------------------------------------------------------
/official ch554 evt pcb/CH55X脱机烧录器/CH55X_OFF_LINE_LOAD_V10.DDB:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/CH55X脱机烧录器/CH55X_OFF_LINE_LOAD_V10.DDB
--------------------------------------------------------------------------------
/official ch554 evt pcb/CH55X脱机烧录器/CH55X脱机烧录器使用说明.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/CH55X脱机烧录器/CH55X脱机烧录器使用说明.pdf
--------------------------------------------------------------------------------
/official ch554 evt pcb/CH5XX芯片加密建议/CH559.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/CH5XX芯片加密建议/CH559.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/CH5XX芯片加密建议/DEBUG.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/CH5XX芯片加密建议/DEBUG.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/CH5XX芯片加密建议/DEBUG.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/CH5XX芯片加密建议/DEBUG.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/CH5XX芯片加密建议/Encryption.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/CH5XX芯片加密建议/Encryption.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/CH5XX芯片加密建议/芯片加密建议.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/CH5XX芯片加密建议/芯片加密建议.pdf
--------------------------------------------------------------------------------
/official ch554 evt pcb/Compound_Dev/Compound.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/Compound_Dev/Compound.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/Compound_Dev/Public/CH554.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/Compound_Dev/Public/CH554.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/Compound_Dev/Public/CH554.INC:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/Compound_Dev/Public/CH554.INC
--------------------------------------------------------------------------------
/official ch554 evt pcb/Compound_Dev/Public/DEBUG.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/Compound_Dev/Public/DEBUG.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/Compound_Dev/Public/DEBUG.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/Compound_Dev/Public/DEBUG.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/Compound_Dev/README.TXT:
--------------------------------------------------------------------------------
1 | /********************************** (C) COPYRIGHT ******************************
2 | * File Name : README.TXT
3 | * Author : WCH
4 | * Version : V1.0
5 | * Date : 2017/03/15
6 | * Description : 1. A demo for USB compound device created by CH554, support
7 | keyboard , and HID compatible device.
8 | 2. The device will auto run the HID_RECV.exe, after plug on
9 | The path of the app locate at "C:\HID_RECV.EXE"
10 | 3. The device support interrupt transmit, interval set as 10ms
11 | for keyboard and 50ms for comppsite device.
12 | ********************************************************************************/
13 |
14 |
15 |
--------------------------------------------------------------------------------
/official ch554 evt pcb/Compound_Dev/Touch_Key/Touch_Key.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/Compound_Dev/Touch_Key/Touch_Key.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/Compound_Dev/Touch_Key/Touch_Key.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/Compound_Dev/Touch_Key/Touch_Key.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/Compound_Dev/compound.h:
--------------------------------------------------------------------------------
1 | /********************************** (C) COPYRIGHT *******************************
2 | * File Name :Compound_Dev.C *
3 | * Author : WCH *
4 | * Version : V1.2 *
5 | * Date : 2017/02/24 *
6 | * Description : A demo for USB compound device created by CH554, support *
7 | keyboard , and HID-compliant device. *
8 | ********************************************************************************/
9 |
10 |
11 | #ifndef __COMPOUND_H__
12 | #define __COMPOUND_H__
13 |
14 | extern UINT16I TouchKeyButton;
15 |
16 | extern void USBDeviceInit();
17 | extern void HIDValueHandle();
18 |
19 | #endif
20 | /**************************** END *************************************/
21 |
--------------------------------------------------------------------------------
/official ch554 evt pcb/Compound_Dev/hid_recv.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/Compound_Dev/hid_recv.exe
--------------------------------------------------------------------------------
/official ch554 evt pcb/Compound_Dev/main.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/Compound_Dev/main.c
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/ADC/ADC.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/ADC/ADC.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/ADC/ADC.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/ADC/ADC.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/ADC/Main.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/ADC/Main.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/DataFlash/DataFlash.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/DataFlash/DataFlash.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/DataFlash/DataFlash.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/DataFlash/DataFlash.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/DataFlash/Main.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/DataFlash/Main.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/GPIO/GPIO.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/GPIO/GPIO.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/GPIO/GPIO.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/GPIO/GPIO.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/GPIO/Main.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/GPIO/Main.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/IAP/CH554IAPDemo.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/IAP/CH554IAPDemo.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/IAP/CH554IAPDemo.hex:
--------------------------------------------------------------------------------
1 | :10020C0075A15575A1AAE5B954F84404F5B9E4F5FE
2 | :02021C00A1221D
3 | :0E021E00EF4E600905A1EF1F70F61E80F3225F
4 | :1001DE00AD07AC06ED4C600E7FE87E0312021EEDFD
5 | :0701EE001D70F11C80EE22E0
6 | :0402620043C610225D
7 | :10011400C29FD29EC29DC2CDC2CC438780900000B4
8 | :100124001200DD00000082E47B0AFAF9F890000076
9 | :10013400E0FCA3E0FDA3E0FEA3E0FF12003F90007B
10 | :1001440004EBF0900000E0FCA3E0FDA3E0FEA3E0DC
11 | :10015400FFE47B0AFAF9F812003F9000001200D184
12 | :10016400900004E0C39405401F900000E0FCA3E06D
13 | :10017400FDA3E0FEA3E02401FFE43EFEE43DFDE434
14 | :100184003CFC9000001200D1E589540F4420F5890D
15 | :1001940043C9A0900000A3A3A3E0F404F58DD28E7C
16 | :0401A400D299D29C7E
17 | :0101A8002234
18 | :080242003098FDC298AF99222B
19 | :08024A008F993099FDC2992241
20 | :0A023800C2C7D2C5D2C475C2F322BA
21 | :0802520030C0FDC2C0AFC122A3
22 | :08025A008FC130C1FDD2C122A9
23 | :1001F50075A15575A1AAEF600543B101800353B1FF
24 | :07020500FEE4F5A1F5FF2264
25 | :030266008FFF22E5
26 | :1001A900E4900008F0A3F0B2977F327E001201DEDE
27 | :1001B9002096F4C2AF900005E4F0A37438F0A3E4EC
28 | :1001C900F07F64FE1201DE900005A3E0FAA3E0F9D6
29 | :0501D90012010E80FE82
30 | :0300000002022CCD
31 | :0C022C00787FE4F6D8FD7581070201A977
32 | :1000030075F008758200EF2FFFEE33FECD33CDCCB4
33 | :1000130033CCC58233C5829BED9AEC99E582984037
34 | :100023000CF582EE9BFEED9AFDEC99FC0FD5F0D614
35 | :10003300E4CEFBE4CDFAE4CCF9A88222B800C1B93E
36 | :100043000059BA002DEC8BF084CFCECDFCE5F0CB7C
37 | :10005300F97818EF2FFFEE33FEED33FDEC33FCEBB5
38 | :1000630033FB10D703994004EB99FB0FD8E5E4F970
39 | :10007300FA227818EF2FFFEE33FEED33FDEC33FC5D
40 | :10008300C933C910D7059BE99A4007EC9BFCE99A51
41 | :10009300F90FD8E0E4C9FAE4CCFB2275F010EF2F96
42 | :1000A300FFEE33FEED33FDCC33CCC833C810D70796
43 | :1000B3009BEC9AE899400AED9BFDEC9AFCE899F8D1
44 | :0E00C3000FD5F0DAE4CDFBE4CCFAE4C8F92264
45 | :0C00D100ECF0A3EDF0A3EEF0A3EFF022A2
46 | :1000DD00A8828583F0D083D0821200F41200F4122E
47 | :1000ED0000F41200F4E473E493A3C583C5F0C58353
48 | :1000FD00C8C582C8F0A3C583C5F0C583C8C582C86D
49 | :01010D0022CF
50 | :06010E008A838982E4737C
51 | :00000001FF
52 |
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/PWM/Main.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/PWM/Main.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/PWM/PWM.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/PWM/PWM.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/PWM/PWM.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/PWM/PWM.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/Public/CH554.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/Public/CH554.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/Public/CH554.INC:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/Public/CH554.INC
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/Public/Debug.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/Public/Debug.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/Public/Debug.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/Public/Debug.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/SPI/MainMaster.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/SPI/MainMaster.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/SPI/MainSlave.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/SPI/MainSlave.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/SPI/SPI.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/SPI/SPI.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/SPI/SPI.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/SPI/SPI.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/Timer/Main.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/Timer/Main.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/Timer/Timer.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/Timer/Timer.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/Timer/Timer.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/Timer/Timer.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/TouchKey/Main.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/TouchKey/Main.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/TouchKey/TouchKey.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/TouchKey/TouchKey.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/TouchKey/TouchKey.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/TouchKey/TouchKey.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/Type-C/Main.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/Type-C/Main.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/Type-C/Type_C.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/Type-C/Type_C.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/Type-C/Type_C.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/Type-C/Type_C.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/USB/Device/CompatibilityHID.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/USB/Device/CompatibilityHID.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/USB/Device/CompositeKM.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/USB/Device/CompositeKM.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/USB/Device/VendorDefinedDev.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/USB/Device/VendorDefinedDev.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/USB/Host/USBHostHUB_KM.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/USB/Host/USBHostHUB_KM.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/USB/USB_LIB/CH554UFI.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/USB/USB_LIB/CH554UFI.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/USB/USB_LIB/CH554UFI.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/USB/USB_LIB/CH554UFI.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/USB/USB_LIB/CH554UFI.LIB:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/USB/USB_LIB/CH554UFI.LIB
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/USB/USB_LIB/CH554UFR.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/USB/USB_LIB/CH554UFR.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/USB/USB_LIB/CH554UFR.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/USB/USB_LIB/CH554UFR.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/USB/USB_LIB/CH554UFR.LIB:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/USB/USB_LIB/CH554UFR.LIB
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/USB/USB_LIB/CH554UFX.LIB:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/USB/USB_LIB/CH554UFX.LIB
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/USB/USB_LIB/CH554UF_README.TXT:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/USB/USB_LIB/CH554UF_README.TXT
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/USB/USB_LIB/USBHOST.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/USB/USB_LIB/USBHOST.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/USB/USB_LIB/USBHOST.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/USB/USB_LIB/USBHOST.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/USB/U_DISK/EXAM1/EXAM1.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/USB/U_DISK/EXAM1/EXAM1.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/EXAM/USB/U_DISK/EXAM11/EXAM11.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/EXAM/USB/U_DISK/EXAM11/EXAM11.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/PCB/CH554MINIEVT.DDB:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/PCB/CH554MINIEVT.DDB
--------------------------------------------------------------------------------
/official ch554 evt pcb/PUB/CH554EVT.PDF:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/PUB/CH554EVT.PDF
--------------------------------------------------------------------------------
/official ch554 evt pcb/PUB/CH554SCH.PDF:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/PUB/CH554SCH.PDF
--------------------------------------------------------------------------------
/official ch554 evt pcb/PUB/CH55Xª„±‡÷∏¡Ó.PDF:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/PUB/CH55Xª„±‡÷∏¡Ó.PDF
--------------------------------------------------------------------------------
/official ch554 evt pcb/S_CDC/CDC.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/S_CDC/CDC.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/S_CDC/Listings/CDC.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/S_CDC/Listings/CDC.lst
--------------------------------------------------------------------------------
/official ch554 evt pcb/S_CDC/Listings/DEBUG.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/S_CDC/Listings/DEBUG.lst
--------------------------------------------------------------------------------
/official ch554 evt pcb/S_CDC/Objects/CDC:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/S_CDC/Objects/CDC
--------------------------------------------------------------------------------
/official ch554 evt pcb/S_CDC/Objects/CDC.build_log.htm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/S_CDC/Objects/CDC.build_log.htm
--------------------------------------------------------------------------------
/official ch554 evt pcb/S_CDC/Objects/CDC.lnp:
--------------------------------------------------------------------------------
1 | ".\Objects\CDC.obj",
2 | ".\Objects\DEBUG.obj"
3 | TO ".\Objects\CDC"
4 | PRINT(".\Listings\CDC.m51") RAMSIZE(256)
5 |
--------------------------------------------------------------------------------
/official ch554 evt pcb/S_CDC/Objects/CDC.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/S_CDC/Objects/CDC.obj
--------------------------------------------------------------------------------
/official ch554 evt pcb/S_CDC/Objects/DEBUG.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/S_CDC/Objects/DEBUG.obj
--------------------------------------------------------------------------------
/official ch554 evt pcb/S_CDC/Public/CH554.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/S_CDC/Public/CH554.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/S_CDC/Public/CH554.INC:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/S_CDC/Public/CH554.INC
--------------------------------------------------------------------------------
/official ch554 evt pcb/S_CDC/Public/DEBUG.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/S_CDC/Public/DEBUG.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/S_CDC/Public/DEBUG.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/S_CDC/Public/DEBUG.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/S_CDC/UsbToUartDriver.inf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/S_CDC/UsbToUartDriver.inf
--------------------------------------------------------------------------------
/official ch554 evt pcb/模拟341/Public/CH554.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/模拟341/Public/CH554.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/模拟341/Public/CH554.INC:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/模拟341/Public/CH554.INC
--------------------------------------------------------------------------------
/official ch554 evt pcb/模拟341/Public/Debug.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/模拟341/Public/Debug.C
--------------------------------------------------------------------------------
/official ch554 evt pcb/模拟341/Public/Debug.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/模拟341/Public/Debug.H
--------------------------------------------------------------------------------
/official ch554 evt pcb/模拟341/USB/Device/CompatibilityHID.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/official ch554 evt pcb/模拟341/USB/Device/CompatibilityHID.C
--------------------------------------------------------------------------------
/readme.txt:
--------------------------------------------------------------------------------
1 | Software brief:
2 |
3 | CH554 evaluation board description and reference application routines, including USB devices, USB-Host, read and write U disk files, Touch-Key, Type-C, ADC, timer, PWM, serial port, SPI and so on.
4 |
5 |
6 | Scope of application: CH554T, CH554G, CH554E, CH553G
7 | Download and install the software:
8 | WCHISPTOOL (ISP download does not need to install other drivers separately)
9 |
10 |
11 | Download method:
12 | DOWN and 3V3 use tweezers such as short connection, insert USB, disconnect short connection immediately (because DOWN and USB are reused), and WCHISPTOOL software can identify USB devices at this time.
13 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Benchmark/Benchmark.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 | Debug
4 | AnyCPU
5 | 8.0.50727
6 | 2.0
7 | {A379842D-C4E3-41E1-BE82-4041293AC225}
8 | WinExe
9 | Properties
10 | Benchmark
11 | Benchmark
12 |
13 |
14 | true
15 | full
16 | false
17 | bin\Debug\
18 | DEBUG;TRACE
19 | prompt
20 | 4
21 |
22 |
23 | pdbonly
24 | true
25 | ..\bin\Release\
26 | TRACE
27 | prompt
28 | 4
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | Form
38 |
39 |
40 | fBenchmark.cs
41 |
42 |
43 |
44 |
45 | fBenchmark.cs
46 | Designer
47 |
48 |
49 | ResXFileCodeGenerator
50 | Resources.Designer.cs
51 | Designer
52 |
53 |
54 | True
55 | Resources.resx
56 |
57 |
58 | SettingsSingleFileGenerator
59 | Settings.Designer.cs
60 |
61 |
62 | True
63 | Settings.settings
64 | True
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 | {CDDECA76-F318-4CE1-8251-CAB0C799CBBE}
73 | LibUsbDotNet
74 |
75 |
76 |
77 |
84 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Benchmark/Program.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using System.Windows.Forms;
24 |
25 | namespace Benchmark
26 | {
27 | internal static class Program
28 | {
29 | #region PRIVATE METHODS
30 |
31 | ///
32 | /// The main entry point for the application.
33 | ///
34 | [STAThread]
35 | private static void Main()
36 | {
37 | Application.EnableVisualStyles();
38 | Application.SetCompatibleTextRenderingDefault(false);
39 | Application.Run(new fBenchmark());
40 | }
41 |
42 | #endregion
43 | }
44 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Benchmark/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 |
8 | [assembly : AssemblyTitle("Benchmark")]
9 | [assembly : AssemblyDescription("")]
10 | [assembly : AssemblyConfiguration("")]
11 | [assembly : AssemblyCompany("")]
12 | [assembly : AssemblyProduct("Benchmark")]
13 | [assembly : AssemblyCopyright("Copyright © 2007")]
14 | [assembly : AssemblyTrademark("")]
15 | [assembly : AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 |
21 | [assembly : ComVisible(false)]
22 |
23 | // The following GUID is for the ID of the typelib if this project is exposed to COM
24 |
25 | [assembly : Guid("79715233-4fb9-45da-8c52-efdfb5c2d8e8")]
26 |
27 | // Version information for an assembly consists of the following four values:
28 | //
29 | // Major Version
30 | // Minor Version
31 | // Build Number
32 | // Revision
33 | //
34 |
35 | [assembly : AssemblyVersion("1.0.0.0")]
36 | [assembly : AssemblyFileVersion("1.0.0.0")]
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Benchmark/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:2.0.50727.832
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System.CodeDom.Compiler;
12 | using System.ComponentModel;
13 | using System.Diagnostics;
14 | using System.Diagnostics.CodeAnalysis;
15 | using System.Globalization;
16 | using System.Resources;
17 | using System.Runtime.CompilerServices;
18 |
19 | namespace Benchmark.Properties
20 | {
21 | ///
22 | /// A strongly-typed resource class, for looking up localized strings, etc.
23 | ///
24 | // This class was auto-generated by the StronglyTypedResourceBuilder
25 | // class via a tool like ResGen or Visual Studio.
26 | // To add or remove a member, edit your .ResX file then rerun ResGen
27 | // with the /str option, or rebuild your VS project.
28 | [GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
29 | [DebuggerNonUserCode()]
30 | [CompilerGenerated()]
31 | internal class Resources
32 | {
33 | private static ResourceManager resourceMan;
34 |
35 | private static CultureInfo resourceCulture;
36 |
37 | [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
38 | internal Resources()
39 | {
40 | }
41 |
42 | ///
43 | /// Returns the cached ResourceManager instance used by this class.
44 | ///
45 | [EditorBrowsable(EditorBrowsableState.Advanced)]
46 | internal static ResourceManager ResourceManager
47 | {
48 | get
49 | {
50 | if ((resourceMan == null))
51 | {
52 | ResourceManager temp = new ResourceManager("Benchmark.Properties.Resources", typeof (Resources).Assembly);
53 | resourceMan = temp;
54 | }
55 | return resourceMan;
56 | }
57 | }
58 |
59 | ///
60 | /// Overrides the current thread's CurrentUICulture property for all
61 | /// resource lookups using this strongly typed resource class.
62 | ///
63 | [EditorBrowsable(EditorBrowsableState.Advanced)]
64 | internal static CultureInfo Culture
65 | {
66 | get { return resourceCulture; }
67 | set { resourceCulture = value; }
68 | }
69 | }
70 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Benchmark/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:2.0.50727.832
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System.CodeDom.Compiler;
12 | using System.Configuration;
13 | using System.Runtime.CompilerServices;
14 |
15 | namespace Benchmark.Properties
16 | {
17 | [CompilerGenerated()]
18 | [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]
19 | internal sealed partial class Settings : ApplicationSettingsBase
20 | {
21 | private static Settings defaultInstance = ((Settings) (Synchronized(new Settings())));
22 |
23 | public static Settings Default
24 | {
25 | get { return defaultInstance; }
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Benchmark/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Benchmark/ReadMe.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/Benchmark/ReadMe.txt
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/.DS_Store
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/DeviceNotify/Info/PortNotifyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using System.Runtime.InteropServices;
24 | using LibUsbDotNet.DeviceNotify.Internal;
25 |
26 | namespace LibUsbDotNet.DeviceNotify.Info
27 | {
28 | ///
29 | /// Notify information for a communication port
30 | ///
31 | public class PortNotifyInfo
32 | {
33 | private DEV_BROADCAST_PORT mBaseHdr = new DEV_BROADCAST_PORT();
34 | private string dbcp_name;
35 |
36 | internal PortNotifyInfo(IntPtr LParam)
37 | {
38 | Marshal.PtrToStructure(LParam, mBaseHdr);
39 | IntPtr pName = new IntPtr(LParam.ToInt64() + Marshal.OffsetOf(typeof (DEV_BROADCAST_PORT), "nameHolder").ToInt64());
40 | dbcp_name = Marshal.PtrToStringAuto(pName);
41 | }
42 |
43 | ///
44 | /// Gets the name of the port that caused the event.
45 | ///
46 | public string Name
47 | {
48 | get { return dbcp_name; }
49 | }
50 |
51 | #region PUBLIC METHODS
52 |
53 | ///
54 | ///Returns a that represents the current .
55 | ///
56 | ///
57 | ///
58 | ///A that represents the current .
59 | ///
60 | public override string ToString()
61 | {
62 | return string.Format("[Port Name:{0}] ", Name);
63 | }
64 |
65 | #endregion
66 | }
67 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/DeviceNotify/Info/UsbDeviceNotifyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using System.Runtime.InteropServices;
24 | using LibUsbDotNet.DeviceNotify.Internal;
25 | using LibUsbDotNet.Usb.Main;
26 |
27 | namespace LibUsbDotNet.DeviceNotify.Info
28 | {
29 | ///
30 | /// Describes the USB device that caused the notification.
31 | ///
32 | public class UsbDeviceNotifyInfo
33 | {
34 | private readonly DEV_BROADCAST_DEVICEINTERFACE mBaseHdr = new DEV_BROADCAST_DEVICEINTERFACE();
35 | private string dbcc_name;
36 | private UsbSymbolicName mSymbolicName;
37 |
38 | internal UsbDeviceNotifyInfo(IntPtr LParam)
39 | {
40 | Marshal.PtrToStructure(LParam, mBaseHdr);
41 | IntPtr pName = new IntPtr(LParam.ToInt64() + Marshal.OffsetOf(typeof (DEV_BROADCAST_DEVICEINTERFACE), "nameHolder").ToInt64());
42 | dbcc_name = Marshal.PtrToStringAuto(pName);
43 | }
44 |
45 | ///
46 | /// The symbolc name class for this device. For more information, see .
47 | ///
48 | public UsbSymbolicName SymbolicName
49 | {
50 | get
51 | {
52 | if (ReferenceEquals(mSymbolicName, null))
53 | mSymbolicName = new UsbSymbolicName(dbcc_name);
54 |
55 | return mSymbolicName;
56 | }
57 | }
58 |
59 | ///
60 | /// Gets the full name of the USB device that caused the notification.
61 | ///
62 | public string Name
63 | {
64 | get { return dbcc_name; }
65 | }
66 |
67 | ///
68 | /// Gets the Class Guid of the USB device that caused the notification.
69 | ///
70 | public Guid ClassGuid
71 | {
72 | get { return SymbolicName.ClassGuid; }
73 | }
74 |
75 | ///
76 | /// Parses and returns the VID from the property.
77 | ///
78 | public short IdVendor
79 | {
80 | get { return SymbolicName.Vid; }
81 | }
82 |
83 | ///
84 | /// Parses and returns the PID from the property.
85 | ///
86 | public short IdProduct
87 | {
88 | get { return SymbolicName.Pid; }
89 | }
90 |
91 | ///
92 | /// Parses and returns the serial number from the property.
93 | ///
94 | public string SerialNumber
95 | {
96 | get { return SymbolicName.SerialNumber; }
97 | }
98 |
99 | #region PUBLIC METHODS
100 |
101 | ///
102 | ///Returns a that represents the current .
103 | ///
104 | ///
105 | ///
106 | ///A that represents the current .
107 | ///
108 | public override string ToString()
109 | {
110 | return SymbolicName.ToString();
111 | }
112 |
113 | #endregion
114 | }
115 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/DeviceNotify/Info/VolumeNotifyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using System.Runtime.InteropServices;
24 | using LibUsbDotNet.DeviceNotify.Internal;
25 |
26 | namespace LibUsbDotNet.DeviceNotify.Info
27 | {
28 | ///
29 | /// Describes the storage volume that caused the notification.
30 | ///
31 | public class VolumeNotifyInfo
32 | {
33 | private const int DBTF_MEDIA = 0x0001;
34 | private const int DBTF_NET = 0x0002;
35 |
36 | private DEV_BROADCAST_VOLUME mBaseHdr = new DEV_BROADCAST_VOLUME();
37 |
38 | internal VolumeNotifyInfo(IntPtr LParam)
39 | {
40 | Marshal.PtrToStructure(LParam, mBaseHdr);
41 | }
42 |
43 | ///
44 | /// Gets the letter representation of the unitmask.
45 | ///
46 | public char Letter
47 | {
48 | get
49 | {
50 | Int32 tempMask = Unitmask;
51 | for (byte b = 65; b < (65 + 32); b++)
52 | {
53 | Byte bValue = b;
54 | if (bValue > 90)
55 | bValue -= 43;
56 | if ((tempMask & 0x1) == 1)
57 | return (char) bValue;
58 |
59 | tempMask >>= 1;
60 | }
61 |
62 | return (char) 63;
63 | }
64 | }
65 |
66 | ///
67 | /// If true, change affects media in drive. If false, change affects physical device or drive.
68 | ///
69 | public bool ChangeAffectsMediaInDrive
70 | {
71 | get { return ((Flags & DBTF_MEDIA) == DBTF_MEDIA); }
72 | }
73 |
74 | ///
75 | /// If True, the indicated logical volume is a network volume
76 | ///
77 | public bool IsNetworkVolume
78 | {
79 | get { return ((Flags & DBTF_NET) == DBTF_NET); }
80 | }
81 |
82 | ///
83 | /// Raw DEV_BROADCAST_VOLUME flags.
84 | ///
85 | public short Flags
86 | {
87 | get { return mBaseHdr.dbcv_flags; }
88 | }
89 |
90 | ///
91 | /// Gets the bit unit mask of the device. IE (bit 0 = A:, bit 1 = B:, etc..)
92 | ///
93 | public int Unitmask
94 | {
95 | get { return mBaseHdr.dbcv_unitmask; }
96 | }
97 |
98 | #region PUBLIC METHODS
99 |
100 | ///
101 | ///Returns a that represents the current .
102 | ///
103 | ///
104 | ///
105 | ///A that represents the current .
106 | ///
107 | public override string ToString()
108 | {
109 | return string.Format("[Letter:{0}] [IsNetworkVolume:{1}] [ChangeAffectsMediaInDrive:{2}] ", Letter, IsNetworkVolume, ChangeAffectsMediaInDrive);
110 | }
111 |
112 | #endregion
113 | }
114 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/DeviceNotify/Internal/DevNotifyNativeWindow.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using System.Windows.Forms;
24 |
25 | namespace LibUsbDotNet.DeviceNotify.Internal
26 | {
27 | internal class DevNotifyNativeWindow : NativeWindow
28 | {
29 | private const int WM_DEVICECHANGE = 0x219;
30 | private const string mWindowCaption = "{18662f14-0871-455c-bf99-eff135425e3a}";
31 | private readonly OnHandleChangeDelegate delHandleChanged;
32 | private readonly OnDeviceChangeDelegate delDeviceChange;
33 |
34 | internal DevNotifyNativeWindow(OnHandleChangeDelegate delHandleChanged, OnDeviceChangeDelegate delDeviceChange)
35 | {
36 | this.delHandleChanged = delHandleChanged;
37 | this.delDeviceChange = delDeviceChange;
38 |
39 | CreateParams cp = new CreateParams();
40 | cp.Caption = mWindowCaption;
41 | cp.X = -100;
42 | cp.Y = -100;
43 | cp.Width = 50;
44 | cp.Height = 50;
45 | CreateHandle(cp);
46 | }
47 |
48 | protected override void OnHandleChange()
49 | {
50 | delHandleChanged(Handle);
51 | base.OnHandleChange();
52 | }
53 |
54 | protected override void WndProc(ref Message m)
55 | {
56 | if (m.Msg == WM_DEVICECHANGE)
57 | {
58 | delDeviceChange(ref m);
59 | }
60 | base.WndProc(ref m);
61 | }
62 |
63 | #region Nested type: OnDeviceChangeDelegate
64 |
65 | internal delegate void OnDeviceChangeDelegate(ref Message m);
66 |
67 | #endregion
68 |
69 | #region Nested type: OnHandleChangeDelegate
70 |
71 | internal delegate void OnHandleChangeDelegate(IntPtr windowHandle);
72 |
73 | #endregion
74 | }
75 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/DeviceNotify/Internal/Dev_Broadcast.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using System.Runtime.InteropServices;
24 |
25 | namespace LibUsbDotNet.DeviceNotify.Internal
26 | {
27 | [StructLayout(LayoutKind.Sequential)]
28 | internal class DEV_BROADCAST_HDR
29 | {
30 | public int dbch_Size;
31 | public DeviceType dbch_DeviceType;
32 | public int dbch_Reserved;
33 |
34 | internal DEV_BROADCAST_HDR()
35 | {
36 | dbch_Size = (int) Marshal.SizeOf(this);
37 | }
38 | }
39 |
40 | [StructLayout(LayoutKind.Sequential)]
41 | internal class DEV_BROADCAST_VOLUME : DEV_BROADCAST_HDR
42 | {
43 | public int dbcv_unitmask;
44 | public short dbcv_flags;
45 |
46 | public DEV_BROADCAST_VOLUME()
47 | {
48 | dbch_Size = (int) Marshal.SizeOf(this);
49 | dbch_DeviceType = DeviceType.VOLUME;
50 | }
51 | }
52 |
53 | [StructLayout(LayoutKind.Sequential)]
54 | internal class DEV_BROADCAST_PORT : DEV_BROADCAST_HDR
55 | {
56 | private char nameHolder;
57 |
58 | public DEV_BROADCAST_PORT()
59 | {
60 | dbch_Size = (int) Marshal.SizeOf(this);
61 | dbch_DeviceType = DeviceType.PORT;
62 | }
63 | }
64 |
65 | [StructLayout(LayoutKind.Sequential)]
66 | internal class DEV_BROADCAST_DEVICEINTERFACE : DEV_BROADCAST_HDR
67 | {
68 | public Guid dbcc_classguid = Guid.Empty;
69 | private char nameHolder;
70 |
71 | public DEV_BROADCAST_DEVICEINTERFACE()
72 | {
73 | dbch_Size = (int) Marshal.SizeOf(this);
74 | dbch_DeviceType = DeviceType.DEVICEINTERFACE;
75 | }
76 |
77 | public DEV_BROADCAST_DEVICEINTERFACE(Guid guid)
78 | : this()
79 | {
80 | dbcc_classguid = guid;
81 | }
82 | }
83 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/DeviceNotify/Internal/SafeNotifyHandle.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using Microsoft.Win32.SafeHandles;
24 |
25 | namespace LibUsbDotNet.DeviceNotify.Internal
26 | {
27 | ///
28 | /// Simple classes like this are what .NET application reliable.
29 | /// This virtually guarantees that any notify handle that gets registered will get unregistered.
30 | ///
31 | internal class SafeNotifyHandle : SafeHandleZeroOrMinusOneIsInvalid
32 | {
33 | public SafeNotifyHandle()
34 | : base(true)
35 | {
36 | }
37 |
38 | public SafeNotifyHandle(IntPtr pHandle)
39 | : base(true)
40 | {
41 | SetHandle(pHandle);
42 | }
43 |
44 | protected override bool ReleaseHandle()
45 | {
46 | if (handle != IntPtr.Zero)
47 | {
48 | bool bSuccess = DeviceNotifier.UnregisterDeviceNotification(handle);
49 | handle = IntPtr.Zero;
50 | return bSuccess;
51 | }
52 | return false;
53 | }
54 | }
55 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System.Reflection;
23 | using System.Runtime.InteropServices;
24 |
25 | // General Information about an assembly is controlled through the following
26 | // set of attributes. Change these attribute values to modify the information
27 | // associated with an assembly.
28 |
29 | [assembly : AssemblyTitle("LibUsbDotNet")]
30 | [assembly : AssemblyDescription("Open-source generic USB driver.")]
31 | [assembly : AssemblyConfiguration("")]
32 | [assembly : AssemblyCompany("Travis Robinson")]
33 | [assembly : AssemblyProduct("LibUsbDotNet")]
34 | [assembly : AssemblyCopyright("Copyright © 2007 Travis Robinson, All rights reserved.")]
35 | [assembly : AssemblyTrademark("")]
36 | [assembly : AssemblyCulture("")]
37 |
38 | // Setting ComVisible to false makes the types in this assembly not visible
39 | // to COM components. If you need to access a type in this assembly from
40 | // COM, set the ComVisible attribute to true on that type.
41 |
42 | [assembly : ComVisible(false)]
43 |
44 | // The following GUID is for the ID of the typelib if this project is exposed to COM
45 |
46 | [assembly : Guid("225a0081-b3fa-4b50-83e3-d5d1f1d7631b")]
47 |
48 | // Version information for an assembly consists of the following four values:
49 | //
50 | // Major Version
51 | // Minor Version
52 | // Build Number
53 | // Revision
54 | //
55 | // You can specify all the values or you can default the Revision and Build Numbers
56 | // by using the '*' as shown below:
57 |
58 | [assembly : AssemblyVersion("1.0.1.*")]
59 | [assembly : AssemblyFileVersion("1.0.1.0")]
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/.DS_Store
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Info/InfosBase.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System.Collections.Generic;
23 |
24 | namespace LibUsbDotNet.Usb.Info
25 | {
26 | ///This class is not meant to be used directly.
This is a templated List class used as a base in the following classes:
27 | ///,
28 | ///,
29 | ///,
30 | ///
31 | ///
32 | ///
33 | public class InfosBase
34 | {
35 | // Fields
36 | private List mList;
37 |
38 | // Methods
39 | internal InfosBase()
40 | {
41 | mList = new List();
42 | }
43 |
44 | ///Gets the number of elements actually contained in the ArrayList.
45 | ///The number of elements actually contained in the ArrayList.
46 | public int Count
47 | {
48 | get { return mList.Count; }
49 | }
50 |
51 | ///Gets or sets the element at the specified index.
52 | ///The element at the specified index.
53 | ///The zero-based index of the element to get or set.
54 | public T this[int index]
55 | {
56 | get { return mList[index]; }
57 | }
58 |
59 | #region PUBLIC METHODS
60 |
61 | ///Determines whether an element is in list.
62 | ///true if item is found; otherwise, false.
63 | ///The object to locate in the list.
64 | public virtual bool Contains(T item)
65 | {
66 | return mList.Contains(item);
67 | }
68 |
69 | ///Returns an enumerator that iterates through the list.
70 | ///An Enumerator class for the list.
71 | public virtual IEnumerator GetEnumerator()
72 | {
73 | return (IEnumerator) mList.GetEnumerator();
74 | }
75 |
76 | ///Determines the index of a specific item..
77 | ///The index of item if found in the list; otherwise, -1.
78 | ///The object to locate.
79 | public virtual int IndexOf(T item)
80 | {
81 | return mList.IndexOf(item);
82 | }
83 |
84 | #endregion
85 |
86 | internal virtual void Add(T item)
87 | {
88 | mList.Add(item);
89 | }
90 |
91 | internal virtual void mClear()
92 | {
93 | mList.Clear();
94 | }
95 |
96 | internal virtual void mRemove(T item)
97 | {
98 | mList.Remove(item);
99 | }
100 |
101 | internal virtual void mRemoveAt(int index)
102 | {
103 | mList.RemoveAt(index);
104 | }
105 |
106 | // Properties
107 | }
108 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Internal/API/LibUsbBus.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using System.Runtime.InteropServices;
24 |
25 | namespace LibUsbDotNet.Usb.Internal.API
26 | {
27 | [StructLayout(LayoutKind.Sequential, Pack = 1)]
28 | internal class LibUsbBus
29 | {
30 | private IntPtr mpNextBus = IntPtr.Zero;
31 | private IntPtr mpPrevBus = IntPtr.Zero;
32 |
33 | [MarshalAs(UnmanagedType.ByValTStr, SizeConst = LibUsbConst.LIBUSB_PATH_MAX)]
34 | public string mDirName = String.Empty;
35 |
36 | private IntPtr mpRootDevice = IntPtr.Zero;
37 | public uint mLocation = 0;
38 |
39 | public LibUsbBus NextBus
40 | {
41 | get
42 | {
43 | if (mpNextBus == IntPtr.Zero) return null;
44 |
45 | LibUsbBus rtnBus = new LibUsbBus();
46 | Marshal.PtrToStructure(mpNextBus, rtnBus);
47 | return rtnBus;
48 | }
49 | }
50 |
51 | public LibUsbBus PrevBus
52 | {
53 | get
54 | {
55 | if (mpPrevBus == IntPtr.Zero) return null;
56 |
57 | LibUsbBus rtnBus = new LibUsbBus();
58 | Marshal.PtrToStructure(mpPrevBus, rtnBus);
59 | return rtnBus;
60 | }
61 | }
62 |
63 | public LibUsbDevice RootDevice
64 | {
65 | get
66 | {
67 | if (mpRootDevice == IntPtr.Zero)
68 | {
69 | return null;
70 | }
71 | LibUsbDevice rtnDev = new LibUsbDevice();
72 | Marshal.PtrToStructure(mpRootDevice, rtnDev);
73 | return rtnDev;
74 | }
75 | }
76 | } ;
77 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Internal/API/LibUsb_AltInterfaceDescriptor.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using System.Runtime.InteropServices;
24 |
25 | namespace LibUsbDotNet.Usb.Internal.API
26 | {
27 | ///
28 | /// Interface descriptor
29 | ///
30 | [StructLayout(LayoutKind.Sequential, Pack = 1)]
31 | internal struct LibUsb_AltInterfaceDescriptor
32 | {
33 | public byte bLength;
34 | public byte bDescriptorType;
35 | public byte bInterfaceNumber;
36 | public byte bAlternateSetting;
37 | public byte bNumEndpoints;
38 | public byte bInterfaceClass;
39 | public byte bInterfaceSubClass;
40 | public byte bInterfaceProtocol;
41 | public byte iInterface;
42 |
43 | public IntPtr endpoint;
44 |
45 | public IntPtr extra; /* Extra descriptors */
46 | public int extralen;
47 |
48 | #region PUBLIC METHODS
49 |
50 | public LibUsb_EndpointDescriptor GetEndpoint(int iEndpoint)
51 | {
52 | if (endpoint == IntPtr.Zero)
53 | {
54 | return new LibUsb_EndpointDescriptor();
55 | }
56 |
57 | IntPtr SelEndpoint = new IntPtr(endpoint.ToInt64() + (iEndpoint*Marshal.SizeOf(typeof (LibUsb_EndpointDescriptor))));
58 | return (LibUsb_EndpointDescriptor) Marshal.PtrToStructure(SelEndpoint, typeof (LibUsb_EndpointDescriptor));
59 | }
60 |
61 | #endregion
62 | } ;
63 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Internal/API/LibUsb_ConfigDescriptor.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using System.Runtime.InteropServices;
24 |
25 | namespace LibUsbDotNet.Usb.Internal.API
26 | {
27 | [StructLayout(LayoutKind.Sequential, Pack = 1)]
28 | internal struct LibUsb_ConfigDescriptor
29 | {
30 | public byte bLength;
31 | public byte bDescriptorType;
32 | public ushort wTotalLength;
33 | public byte bNumInterfaces;
34 | public byte bConfigurationValue;
35 | public byte iConfiguration;
36 | public byte bmAttributes;
37 | public byte MaxPower;
38 |
39 | public IntPtr iface;
40 |
41 | public IntPtr extra; /* Extra descriptors */
42 | public int extralen;
43 |
44 | #region PUBLIC METHODS
45 |
46 | public LibUsb_InterfaceDescriptor GetInterface(int iFace)
47 | {
48 | if (iface == IntPtr.Zero)
49 | {
50 | return new LibUsb_InterfaceDescriptor();
51 | }
52 | IntPtr SelIFace = new IntPtr(iface.ToInt64() + (iFace*Marshal.SizeOf(typeof (LibUsb_InterfaceDescriptor))));
53 | return (LibUsb_InterfaceDescriptor) Marshal.PtrToStructure(SelIFace, typeof (LibUsb_InterfaceDescriptor));
54 | }
55 |
56 | #endregion
57 | } ;
58 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Internal/API/LibUsb_Context.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 |
24 | namespace LibUsbDotNet.Usb.Internal.API
25 | {
26 | internal struct LibUsb_Context
27 | {
28 | private IntPtr mPtr;
29 |
30 | public bool IsValid
31 | {
32 | get { return mPtr != IntPtr.Zero; }
33 | }
34 |
35 | #region PUBLIC METHODS
36 |
37 | public bool Close()
38 | {
39 | if (mPtr == IntPtr.Zero) return true;
40 |
41 | int ret = LibUsbAPI.usb_free_async(ref this);
42 | if (mPtr == IntPtr.Zero && ret == 0)
43 | return true;
44 |
45 | return false;
46 | }
47 |
48 | #endregion
49 | }
50 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Internal/API/LibUsb_DevHandle.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 |
24 | namespace LibUsbDotNet.Usb.Internal.API
25 | {
26 | internal struct LibUsb_DevHandle
27 | {
28 | private IntPtr mPtr;
29 |
30 | public bool IsValid
31 | {
32 | get { return mPtr != IntPtr.Zero; }
33 | }
34 |
35 | #region PUBLIC METHODS
36 |
37 | public bool Close()
38 | {
39 | if (!IsValid) return true;
40 |
41 | int ret = LibUsbAPI.usb_close(this);
42 | mPtr = IntPtr.Zero;
43 | if (ret == 0) return true;
44 |
45 | return false;
46 | }
47 |
48 | public bool Open(LibUsbDevice dev)
49 | {
50 | if (IsValid) return true;
51 |
52 | this = LibUsbAPI.usb_open(dev);
53 | if (IsValid) return true;
54 |
55 | return false;
56 | }
57 |
58 | #endregion
59 | }
60 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Internal/API/LibUsb_DeviceDescriptor.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System.Runtime.InteropServices;
23 |
24 | namespace LibUsbDotNet.Usb.Internal.API
25 | {
26 | [StructLayout(LayoutKind.Sequential, Pack = 1)]
27 | internal struct LibUsb_DeviceDescriptor
28 | {
29 | public byte bLength;
30 | public byte bDescriptorType;
31 | public ushort bcdUSB;
32 | public byte bDeviceClass;
33 | public byte bDeviceSubClass;
34 | public byte bDeviceProtocol;
35 | public byte bMaxPacketSize0;
36 | public ushort idVendor;
37 | public ushort idProduct;
38 | public ushort bcdDevice;
39 | public byte iManufacturer;
40 | public byte iProduct;
41 | public byte iSerialNumber;
42 | public byte bNumConfigurations;
43 | } ;
44 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Internal/API/LibUsb_EndpointDescriptor.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using System.Runtime.InteropServices;
24 |
25 | namespace LibUsbDotNet.Usb.Internal.API
26 | {
27 | ///
28 | /// Endpoint descriptor
29 | ///
30 | [StructLayout(LayoutKind.Sequential, Pack = 1)]
31 | internal struct LibUsb_EndpointDescriptor
32 | {
33 | public byte bLength;
34 | public byte bDescriptorType;
35 | public byte bEndpointAddress;
36 | public byte bmAttributes;
37 | public ushort wMaxPacketSize;
38 | public byte bInterval;
39 | public byte bRefresh;
40 | public byte bSynchAddress;
41 |
42 | public IntPtr extra; // Extra descriptors
43 | public int extralen;
44 | } ;
45 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Internal/API/LibUsb_InterfaceDescriptor.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using System.Runtime.InteropServices;
24 |
25 | namespace LibUsbDotNet.Usb.Internal.API
26 | {
27 | [StructLayout(LayoutKind.Sequential, Pack = 1)]
28 | internal struct LibUsb_InterfaceDescriptor
29 | {
30 | public IntPtr mpAltSetting;
31 | public int mNumAltSetting;
32 |
33 | public LibUsb_AltInterfaceDescriptor AltSetting
34 | {
35 | get
36 | {
37 | if (mpAltSetting == IntPtr.Zero) return new LibUsb_AltInterfaceDescriptor();
38 |
39 | return (LibUsb_AltInterfaceDescriptor) Marshal.PtrToStructure(mpAltSetting, typeof (LibUsb_AltInterfaceDescriptor));
40 | }
41 | }
42 |
43 | #region PUBLIC METHODS
44 |
45 | public LibUsb_AltInterfaceDescriptor GetAltInterface(int iAltInterface)
46 | {
47 | if (mpAltSetting == IntPtr.Zero)
48 | {
49 | return new LibUsb_AltInterfaceDescriptor();
50 | }
51 | IntPtr SelAltInterface = new IntPtr(mpAltSetting.ToInt64() + (iAltInterface*Marshal.SizeOf(typeof (LibUsb_AltInterfaceDescriptor))));
52 | return (LibUsb_AltInterfaceDescriptor) Marshal.PtrToStructure(SelAltInterface, typeof (LibUsb_AltInterfaceDescriptor));
53 | }
54 |
55 | #endregion
56 | } ;
57 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Internal/EndpointTypes.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | namespace LibUsbDotNet.Usb.Internal
23 | {
24 | ///
25 | /// Supported USB endpoint types.
26 | ///
27 | public enum EndpointTypes
28 | {
29 | ///
30 | /// Specifies a Bulk style endpoint.
31 | ///
32 | Bulk = 2,
33 | ///
34 | /// Specifies a Interrupt style endpoint.
35 | ///
36 | Interrupt = 3,
37 | ///
38 | /// Specifies a Isochronous style endpoint.
39 | ///
40 | Isochronous = 1,
41 | }
42 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Internal/Helper.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using System.Collections.Generic;
24 | using System.Reflection;
25 | using System.Runtime.InteropServices;
26 |
27 | namespace LibUsbDotNet.Usb.Internal
28 | {
29 | internal static class Helper
30 | {
31 | #region PUBLIC METHODS
32 |
33 | public static Dictionary GetEnumData(Type type)
34 | {
35 | Dictionary dictEnum = new Dictionary();
36 | FieldInfo[] enumFields = type.GetFields();
37 | for (int iField = 1; iField < enumFields.Length; iField++)
38 | {
39 | object oValue = enumFields[iField].GetRawConstantValue();
40 | dictEnum.Add(enumFields[iField].Name, Convert.ToInt32(oValue));
41 | }
42 |
43 | return dictEnum;
44 | }
45 |
46 | public static string ShowAsHex(object standardValue)
47 | {
48 | if (standardValue == null) return "";
49 | if (standardValue is Int64) return "0x" + ((Int64) standardValue).ToString("X16");
50 | if (standardValue is UInt32) return "0x" + ((UInt32) standardValue).ToString("X8");
51 | if (standardValue is Int32) return "0x" + ((Int32) standardValue).ToString("X8");
52 | if (standardValue is UInt16) return "0x" + ((UInt16) standardValue).ToString("X4");
53 | if (standardValue is Int16) return "0x" + ((Int16) standardValue).ToString("X4");
54 | if (standardValue is Byte) return "0x" + ((Byte) standardValue).ToString("X2");
55 |
56 | return "";
57 | }
58 |
59 | #endregion
60 |
61 | internal static void BytesToObject(byte[] sourceBytes, int iStartIndex, int iLength, object destObject)
62 | {
63 | GCHandle gch = GCHandle.Alloc(destObject, GCHandleType.Pinned);
64 |
65 | IntPtr ptrDestObject = gch.AddrOfPinnedObject();
66 | Marshal.Copy(sourceBytes, iStartIndex, ptrDestObject, iLength);
67 |
68 | gch.Free();
69 | }
70 | }
71 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Internal/HexDisplayAttribute.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 |
24 | namespace LibUsbDotNet.Usb.Internal
25 | {
26 | internal class HexDisplayAttribute : Attribute, IHexDisplayAttribute
27 | {
28 | #region IHexDisplayAttribute Members
29 |
30 | public string GetDisplayFormat(object value)
31 | {
32 | return Helper.ShowAsHex(value);
33 | }
34 |
35 | #endregion
36 | }
37 |
38 | internal interface IHexDisplayAttribute
39 | {
40 | #region PUBLIC METHODS
41 |
42 | string GetDisplayFormat(object value);
43 |
44 | #endregion
45 | }
46 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Internal/LibUsbConst.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | namespace LibUsbDotNet.Usb.Internal
23 | {
24 | internal static class LibUsbConst
25 | {
26 | internal const string LIBUSB_BUS_NAME = "bus-0";
27 | internal const int LIBUSB_DEFAULT_TIMEOUT = 5000;
28 | internal const string LIBUSB_DEVICE_NAME = "\\\\.\\libusb0-";
29 |
30 | #region MAXIMUMS
31 |
32 | internal const int LIBUSB_MAX_DEVICES = 256;
33 | internal const int LIBUSB_MAX_ENDPOINTS = 32;
34 | internal const int LIBUSB_MAX_READ_WRITE = 65536;
35 | internal const int LIBUSB_PATH_MAX = 512;
36 |
37 | #endregion
38 |
39 | #region DESCRIPTOR TYPES
40 |
41 | internal const int USB_DT_HID = 0x21;
42 | internal const int USB_DT_HUB = 0x29;
43 | internal const int USB_DT_INTERFACE = 0x04;
44 | internal const int USB_DT_PHYSICAL = 0x23;
45 | internal const int USB_DT_REPORT = 0x22;
46 | internal const int USB_DT_STRING = 0x03;
47 |
48 | #endregion
49 |
50 | #region DESCRIPTOR SIZES
51 |
52 | internal const int USB_DT_ENDPOINT_AUDIO_SIZE = 9; /* Audio extension */
53 | internal const int USB_DT_HUB_NONVAR_SIZE = 7;
54 | internal const int USB_DT_INTERFACE_SIZE = 9;
55 |
56 | #endregion
57 |
58 | #region ENDPOINT DIRECTION
59 |
60 | internal const int USB_ENDPOINT_IN = 0x80;
61 | internal const int USB_ENDPOINT_OUT = 0x00;
62 |
63 | #endregion
64 |
65 | #region STANDARD RECIPIENTS
66 |
67 | internal const int USB_RECIP_DEVICE = 0x00;
68 | internal const int USB_RECIP_ENDPOINT = 0x02;
69 | internal const int USB_RECIP_INTERFACE = 0x01;
70 | internal const int USB_RECIP_OTHER = 0x03;
71 |
72 | #endregion
73 |
74 | #region STANDARD REQUESTS
75 |
76 | internal const int USB_REQ_CLEAR_FEATURE = 0x01;
77 | internal const int USB_REQ_GET_CONFIGURATION = 0x08;
78 | internal const int USB_REQ_GET_DESCRIPTOR = 0x06;
79 | internal const int USB_REQ_GET_INTERFACE = 0x0A;
80 | internal const int USB_REQ_GET_STATUS = 0x00;
81 | internal const int USB_REQ_SET_ADDRESS = 0x05;
82 | internal const int USB_REQ_SET_CONFIGURATION = 0x09;
83 | internal const int USB_REQ_SET_DESCRIPTOR = 0x07;
84 | internal const int USB_REQ_SET_FEATURE = 0x03;
85 | internal const int USB_REQ_SET_INTERFACE = 0x0B;
86 | internal const int USB_REQ_SYNCH_FRAME = 0x0C;
87 |
88 | #endregion
89 |
90 | #region STANDARD REQUEST TYPES
91 |
92 | internal const int USB_TYPE_CLASS = (0x01 << 5);
93 | internal const int USB_TYPE_RESERVED = (0x03 << 5);
94 | internal const int USB_TYPE_STANDARD = (0x00 << 5);
95 | internal const int USB_TYPE_VENDOR = (0x02 << 5);
96 |
97 | #endregion
98 | }
99 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Internal/TransferContext.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using System.Runtime.InteropServices;
24 | using LibUsbDotNet.Usb.Internal.API;
25 |
26 | namespace LibUsbDotNet.Usb.Internal
27 | {
28 | internal class TransferContext
29 | {
30 | internal readonly UsbEndpointBase mEndpointBase;
31 | internal int mOriginalOffset;
32 | internal int mOriginalCount;
33 | internal int mTimeout;
34 | internal bool mbCancelIoOnTimeout;
35 |
36 | private byte[] mBuffer;
37 | private GCHandle mgcBuffer;
38 |
39 | internal LibUsb_Context mContext;
40 | internal int mCurrentOffset;
41 | internal int mCurrentRemaining;
42 | internal int currentTransmitted;
43 | internal int mRequested;
44 | internal bool mbAsyncCancelled = true;
45 |
46 | public TransferContext(UsbEndpointBase usbEndpointBase)
47 | {
48 | mEndpointBase = usbEndpointBase;
49 | }
50 |
51 | internal byte[] Buffer
52 | {
53 | get { return mBuffer; }
54 | }
55 |
56 | internal IntPtr PtrBuf
57 | {
58 | get { return Marshal.UnsafeAddrOfPinnedArrayElement(mBuffer, mCurrentOffset); }
59 | }
60 |
61 | internal int RequestCount
62 | {
63 | get
64 | {
65 | mRequested = mCurrentRemaining > LibUsbConst.LIBUSB_MAX_READ_WRITE ? LibUsbConst.LIBUSB_MAX_READ_WRITE : mCurrentRemaining;
66 | return mRequested;
67 | }
68 | }
69 |
70 | internal void IncrementTransfer(int amount)
71 | {
72 | currentTransmitted += amount;
73 | mCurrentOffset += amount;
74 | mCurrentRemaining -= amount;
75 | }
76 |
77 | internal void Reset()
78 | {
79 | mCurrentOffset = mOriginalOffset;
80 | mCurrentRemaining = mOriginalCount;
81 | mRequested = 0;
82 | currentTransmitted = 0;
83 | }
84 |
85 | internal void Setup(byte[] buffer, int offset, int count, int timeout, bool bCancelIoOnTimeout)
86 | {
87 | mBuffer = buffer;
88 | mOriginalOffset = offset;
89 | mOriginalCount = count;
90 | mTimeout = timeout;
91 | mbCancelIoOnTimeout = bCancelIoOnTimeout;
92 | mgcBuffer = GCHandle.Alloc(buffer, GCHandleType.Pinned);
93 | mCurrentOffset = offset;
94 | mCurrentRemaining = count;
95 | mbAsyncCancelled = true;
96 | mRequested = 0;
97 | }
98 | }
99 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Main/DataReceivedArgs.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 |
24 | namespace LibUsbDotNet.Usb.Main
25 | {
26 | ///
27 | /// Endpoint data received arguments returned by the event.
28 | ///
29 | public class DataReceivedArgs : EventArgs
30 | {
31 | private readonly byte[] bytesReceived;
32 | private readonly int count;
33 |
34 | internal DataReceivedArgs(byte[] Bytes, int Size)
35 | {
36 | bytesReceived = Bytes;
37 | count = Size;
38 | }
39 |
40 | ///
41 | /// Gets the buffer of the received data.
42 | ///
43 | ///
44 | /// Use the property to determine the number of bytes actually received.
45 | ///
46 | public byte[] Buffer
47 | {
48 | get { return bytesReceived; }
49 | }
50 |
51 | ///
52 | /// Gets the number of bytes received.
53 | ///
54 | public int Count
55 | {
56 | get { return count; }
57 | }
58 | }
59 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Main/ErrorCodes.cs:
--------------------------------------------------------------------------------
1 | namespace LibUsbDotNet.Usb.Main
2 | {
3 | ///
4 | /// Common error codes returned by IO functions. Any return value less than zero is considered an error.
5 | ///
6 | public enum ErrorCodes :int
7 | {
8 | ///
9 | /// No such file or directory. The specified file or directory does not exist or cannot be found. This message can occur whenever a specified file does not exist or a component of a path does not specify an existing directory.
10 | ///
11 | ENOENT = -2,
12 | ///
13 | /// I/O error
14 | ///
15 | EIO = -5,
16 | ///
17 | /// Not enough memory
18 | ///
19 | ENOMEM = -12,
20 | ///
21 | /// File too large
22 | ///
23 | EFBIG = -27,
24 | ///
25 | /// The operation is invalid given the current state of the device.
26 | ///
27 | EINVAL = -22,
28 | ///
29 | /// The IO operation timed out.
30 | ///
31 | ETIMEDOUT = -116,
32 | ///
33 | /// The IO operation was successfully cancelled.
34 | ///
35 | EINTR = -4,
36 | ///
37 | /// An attempt was made to read/write to an endpoint that allready has a pending IO operation.
38 | ///
39 | EBUSY = -16,
40 | ///
41 | /// Bad address.
42 | ///
43 | EFAULT = -14,
44 | ///
45 | /// Attempted access on a disposed object.
46 | ///
47 | ENODEV = -19,
48 | ///
49 | /// An internal exception was generated. Use the event for more information.
50 | ///
51 | EEXCEPTION = -1073741826,
52 | ///
53 | /// A read thread was destructively aborted.
54 | ///
55 | ETHREADABORT = -1073741827,
56 | }
57 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Main/LibUsbException.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 |
24 | namespace LibUsbDotNet.Usb.Main
25 | {
26 | ///
27 | /// Represents an exception generated by a USB operation.
28 | ///
29 | public class LibUsbException : Exception
30 | {
31 | private readonly object oSender;
32 |
33 | internal LibUsbException(object oSender, string sDescription)
34 | : base(sDescription)
35 | {
36 | this.oSender = oSender;
37 | }
38 |
39 | ///
40 | /// The object responsible for the exception.
41 | ///
42 | public object Sender
43 | {
44 | get { return oSender; }
45 | }
46 | }
47 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Main/ReadEndpoints.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using LibUsbDotNet.Usb.Internal;
23 |
24 | namespace LibUsbDotNet.Usb.Main
25 | {
26 | ///
27 | /// Availabled endpoint numbers/ids for reading.
28 | ///
29 | [HexDisplay]
30 | public enum ReadEndpoints : byte
31 | {
32 | ///
33 | /// Endpoint 1
34 | ///
35 | Ep01 = 0x81,
36 | ///
37 | /// Endpoint 2
38 | ///
39 | Ep02 = 0x82,
40 | ///
41 | /// Endpoint 3
42 | ///
43 | Ep03 = 0x83,
44 | ///
45 | /// Endpoint 4
46 | ///
47 | Ep04 = 0x84,
48 | ///
49 | /// Endpoint 5
50 | ///
51 | Ep05 = 0x85,
52 | ///
53 | /// Endpoint 6
54 | ///
55 | Ep06 = 0x86,
56 | ///
57 | /// Endpoint 7
58 | ///
59 | Ep07 = 0x87,
60 | ///
61 | /// Endpoint 8
62 | ///
63 | Ep08 = 0x88,
64 | ///
65 | /// Endpoint 9
66 | ///
67 | Ep09 = 0x89,
68 | ///
69 | /// Endpoint 10
70 | ///
71 | Ep10 = 0x8A,
72 | ///
73 | /// Endpoint 11
74 | ///
75 | Ep11 = 0x8B,
76 | ///
77 | /// Endpoint 12
78 | ///
79 | Ep12 = 0x8C,
80 | ///
81 | /// Endpoint 13
82 | ///
83 | Ep13 = 0x8D,
84 | ///
85 | /// Endpoint 14
86 | ///
87 | Ep14 = 0x8E,
88 | ///
89 | /// Endpoint 15
90 | ///
91 | Ep15 = 0x8F,
92 | }
93 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Main/UsbError.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 |
24 | namespace LibUsbDotNet.Usb.Main
25 | {
26 | ///
27 | /// Error storage class containing information related to the current .
28 | ///
29 | public class UsbError : EventArgs
30 | {
31 | ///
32 | /// The full object name that the error occured in.
33 | ///
34 | public readonly object Sender;
35 |
36 | private readonly string Description;
37 |
38 | ///
39 | /// The function in that the error occured in.
40 | ///
41 | public readonly string FunctionName;
42 |
43 | ///
44 | /// The negative result error code.
45 | ///
46 | public readonly int ErrorCode;
47 |
48 | internal UsbError(object sender, string description, string functionName, int errorCode)
49 | {
50 | Sender = sender;
51 | this.Description = description;
52 | FunctionName = functionName;
53 | ErrorCode = errorCode;
54 | }
55 |
56 | #region PUBLIC METHODS
57 |
58 | ///
59 | /// Gets a representing this .
60 | ///
61 | /// A representing this .
62 | public override string ToString()
63 | {
64 | return string.Format("Sender:{0}\r\nDescription:{1}\r\nFunctionName:{2}\r\nErrorCode:{3}", Sender, Description, FunctionName, ErrorCode);
65 | }
66 |
67 | #endregion
68 | }
69 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/Main/WriteEndpoints.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using LibUsbDotNet.Usb.Internal;
23 |
24 | namespace LibUsbDotNet.Usb.Main
25 | {
26 | ///
27 | /// Availabled endpoint numbers/ids for writing.
28 | ///
29 | [HexDisplay]
30 | public enum WriteEndpoints :byte
31 | {
32 | ///
33 | /// Endpoint 1
34 | ///
35 | Ep01 = 0x01,
36 | ///
37 | /// Endpoint 2
38 | ///
39 | Ep02 = 0x02,
40 | ///
41 | /// Endpoint 3
42 | ///
43 | Ep03 = 0x03,
44 | ///
45 | /// Endpoint 4
46 | ///
47 | Ep04 = 0x04,
48 | ///
49 | /// Endpoint 5
50 | ///
51 | Ep05 = 0x05,
52 | ///
53 | /// Endpoint 6
54 | ///
55 | Ep06 = 0x06,
56 | ///
57 | /// Endpoint 7
58 | ///
59 | Ep07 = 0x07,
60 | ///
61 | /// Endpoint 8
62 | ///
63 | Ep08 = 0x08,
64 | ///
65 | /// Endpoint 9
66 | ///
67 | Ep09 = 0x09,
68 | ///
69 | /// Endpoint 10
70 | ///
71 | Ep10 = 0x0A,
72 | ///
73 | /// Endpoint 11
74 | ///
75 | Ep11 = 0x0B,
76 | ///
77 | /// Endpoint 12
78 | ///
79 | Ep12 = 0x0C,
80 | ///
81 | /// Endpoint 13
82 | ///
83 | Ep13 = 0x0D,
84 | ///
85 | /// Endpoint 14
86 | ///
87 | Ep14 = 0x0E,
88 | ///
89 | /// Endpoint 15
90 | ///
91 | Ep15 = 0x0F,
92 | }
93 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/CSLibUsb/Usb/UsbEndpointWriter.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using LibUsbDotNet.Usb.Internal;
24 | using LibUsbDotNet.Usb.Main;
25 |
26 | namespace LibUsbDotNet.Usb
27 | {
28 | ///
29 | /// Main class used to send data to a USB device.
30 | ///
31 | public class UsbEndpointWriter : UsbEndpointBase, IDisposable
32 | {
33 | ///
34 | /// Default write mTimeout.
35 | ///
36 | public const int DEF_WRITE_TIMEOUT = 5000;
37 |
38 | private WriteEndpoints mWriteEndpoint = WriteEndpoints.Ep01;
39 |
40 | internal UsbEndpointWriter(UsbDevice usbDevice, EndpointTypes epType, int packetSize, WriteEndpoints mWriteEndpoint)
41 | : base(usbDevice, epType, packetSize)
42 | {
43 | this.mWriteEndpoint = mWriteEndpoint;
44 | }
45 |
46 | ///
47 | /// The endpoint number as a .
48 | ///
49 | public override byte EpNum
50 | {
51 | get { return (byte) mWriteEndpoint; }
52 | }
53 |
54 | ///
55 | /// The endpoint ID number that this instance is writing to.
56 | ///
57 | public WriteEndpoints WriteEndpoint
58 | {
59 | get { return mWriteEndpoint; }
60 | }
61 |
62 | #region PUBLIC METHODS
63 |
64 | ///
65 | /// Writes data to the current .
66 | ///
67 | /// The buffer storing the data to write.
68 | /// Maximum time to wait for the transfer to complete. If the transfer times out, the IO operation will be cancelled.
69 | ///
70 | /// Number of bytes transmitted or less than zero if an error occured.
71 | ///
72 | public int Write(byte[] buffer, int timeout)
73 | {
74 | return Write(buffer, 0, buffer.Length, timeout);
75 | }
76 |
77 | ///
78 | /// Writes data to the current .
79 | ///
80 | /// The buffer storing the data to write.
81 | /// The position in buffer to start writing the data from.
82 | /// The number of bytes to write.
83 | /// Maximum time to wait for the transfer to complete. If the transfer times out, the IO operation will be cancelled.
84 | ///
85 | /// Number of bytes transmitted or less than zero if an error occured.
86 | ///
87 | public int Write(byte[] buffer, int offset, int count, int timeout)
88 | {
89 | return Transfer(buffer, offset, count, timeout);
90 | }
91 |
92 | #endregion
93 | }
94 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Docs/LibUsbDotNet.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/Docs/LibUsbDotNet.jpg
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Docs/arrow.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/Docs/arrow.gif
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Docs/htmlContent.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Docs/index.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | LibUsbDotNet Ver. 1.0.1.42514 Documentation
5 |
18 |
34 |
35 |
36 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Docs/tree.dtd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Docs/treeNode_Empty.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/Docs/treeNode_Empty.gif
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Docs/treeNode_Minus.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/Docs/treeNode_Minus.gif
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Docs/treeNode_Plus.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/Docs/treeNode_Plus.gif
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Docs/xmlTree.css:
--------------------------------------------------------------------------------
1 | body
2 | {
3 | color: navy;
4 | font-family: Tahoma, Arial, Sans-Serif;
5 | }
6 | .trigger
7 | {
8 | cursor: pointer;
9 | cursor: hand;
10 | }
11 | .triggerText
12 | {
13 | cursor: pointer;
14 | cursor: hand;
15 | font-family: Tahoma;
16 | font-size: 12px;
17 | font-weight: normal;
18 | }
19 | .triggerBranchText
20 | {
21 | cursor: pointer;
22 | cursor: hand;
23 | font-family: Tahoma;
24 | font-size: 12px;
25 | font-weight: bold;
26 | }
27 | .branch
28 | {
29 | display: none;
30 | margin-left: 16px;
31 | }
32 | a
33 | {
34 | text-decoration: none;
35 | }
36 | a:hover
37 | {
38 | text-decoration: underline;
39 | }
40 |
41 | .cAssemblyName
42 | {
43 | font-family: Tahoma, Arial, Sans-Serif;
44 | font-size: 20px;
45 | font-weight: bold;
46 | color: Blue;
47 | }
48 | .cAssemblyVersionText
49 | {
50 | font-family: Tahoma, Arial, Sans-Serif;
51 | font-size: 12px;
52 | font-weight: normal;
53 | color: purple;
54 | }
55 | .cAssemblyVersionTitle
56 | {
57 | font-family: Tahoma, Arial, Sans-Serif;
58 | font-size: 12px;
59 | font-weight: bold;
60 | color: red;
61 | }
62 | table.mainTable
63 | {
64 | border-width: 3px;
65 | border-style: groove;
66 | border-color: Blue;
67 | border-collapse: collapse;
68 | background-color: #f0f0ff;
69 | color: #000000;
70 | }
71 | table.mainTable td
72 | {
73 | border-width: 3px;
74 | padding:2px;
75 | }
76 | table.treeTable
77 | {
78 | border-width: 0px;
79 | background-color: #f0f0ff;
80 | }
81 | table.treeTable td
82 | {
83 | border-width:0px;
84 | padding:0px;
85 | vertical-align:middle;
86 | }
87 | .cObjectType
88 | {
89 | color: #cd853f;
90 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Docs/xmlTree.js:
--------------------------------------------------------------------------------
1 | var minusImg = new Image();
2 | minusImg.src = "treeNode_Minus.gif";
3 | var plusImg = new Image();
4 | plusImg.src = "treeNode_Plus.gif";
5 | var emptyImg = new Image();
6 | emptyImg.src = "treeNode_Empty.gif";
7 |
8 | function showBranch(branch){
9 | var objBranch = document.getElementById(branch).style;
10 | if(objBranch.display=="block")
11 | objBranch.display="none";
12 | else
13 | objBranch.display="block";
14 | swapFolder('I' + branch);
15 | }
16 | function showLink(linkTrigger){
17 | window.open('LibUsbDotNet.html#'+linkTrigger,'content');
18 | var objBranch = document.getElementById(linkTrigger).style;
19 | if(objBranch.display!="block")
20 | {
21 | objBranch.display="block";
22 | swapFolder('I' + linkTrigger);
23 | }
24 | }
25 | function onMouseOverText(idText){
26 | objText = document.getElementById('T'+idText);
27 | objText.style.backgroundColor="#D0D0DD";
28 | }
29 | function onMouseOutText(idText){
30 | objText = document.getElementById('T'+idText);
31 | objText.style.backgroundColor="#f0f0ff";
32 | }
33 | function onMouseOverImg(idText){
34 | objImg = document.getElementById('I'+idText).firstChild;
35 | objImg.style.backgroundColor="#ffaaff";
36 | }
37 | function onMouseOutImg(idText){
38 | objImg = document.getElementById('I'+idText).firstChild;
39 | objImg.style.backgroundColor="#f0f0ff";
40 | }
41 | function swapFolder(img){
42 | objImg = document.getElementById(img).firstChild;
43 | if(objImg.src.indexOf('treeNode_Plus.gif')>-1)
44 | objImg.src = minusImg.src;
45 | else if(objImg.src.indexOf('treeNode_Minus.gif')>-1)
46 | objImg.src = plusImg.src;
47 | else
48 | objImg.src = emptyImg.src;
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_Bulk/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/Test_Bulk/.DS_Store
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_Bulk/Program.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using System.Windows.Forms;
24 |
25 | namespace Test_Bulk
26 | {
27 | internal static class Program
28 | {
29 | #region PRIVATE METHODS
30 |
31 | ///
32 | /// The main entry point for the application.
33 | ///
34 | [STAThread]
35 | private static void Main()
36 | {
37 | Application.EnableVisualStyles();
38 | Application.SetCompatibleTextRenderingDefault(false);
39 | Application.Run(new fTestBulk());
40 | }
41 |
42 | #endregion
43 | }
44 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_Bulk/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 |
8 | [assembly : AssemblyTitle("Test_Bulk")]
9 | [assembly : AssemblyDescription("")]
10 | [assembly : AssemblyConfiguration("")]
11 | [assembly : AssemblyCompany("")]
12 | [assembly : AssemblyProduct("Test_Bulk")]
13 | [assembly : AssemblyCopyright("Copyright © 2007")]
14 | [assembly : AssemblyTrademark("")]
15 | [assembly : AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 |
21 | [assembly : ComVisible(false)]
22 |
23 | // The following GUID is for the ID of the typelib if this project is exposed to COM
24 |
25 | [assembly : Guid("9ef1f320-ceee-428f-9cd8-eb17b48c0ea4")]
26 |
27 | // Version information for an assembly consists of the following four values:
28 | //
29 | // Major Version
30 | // Minor Version
31 | // Build Number
32 | // Revision
33 | //
34 |
35 | [assembly : AssemblyVersion("1.0.0.0")]
36 | [assembly : AssemblyFileVersion("1.0.0.0")]
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_Bulk/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:2.0.50727.832
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System.CodeDom.Compiler;
12 | using System.ComponentModel;
13 | using System.Diagnostics;
14 | using System.Diagnostics.CodeAnalysis;
15 | using System.Globalization;
16 | using System.Resources;
17 | using System.Runtime.CompilerServices;
18 |
19 | namespace Test_Bulk.Properties
20 | {
21 | ///
22 | /// A strongly-typed resource class, for looking up localized strings, etc.
23 | ///
24 | // This class was auto-generated by the StronglyTypedResourceBuilder
25 | // class via a tool like ResGen or Visual Studio.
26 | // To add or remove a member, edit your .ResX file then rerun ResGen
27 | // with the /str option, or rebuild your VS project.
28 | [GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
29 | [DebuggerNonUserCode()]
30 | [CompilerGenerated()]
31 | internal class Resources
32 | {
33 | private static ResourceManager resourceMan;
34 |
35 | private static CultureInfo resourceCulture;
36 |
37 | [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
38 | internal Resources()
39 | {
40 | }
41 |
42 | ///
43 | /// Returns the cached ResourceManager instance used by this class.
44 | ///
45 | [EditorBrowsable(EditorBrowsableState.Advanced)]
46 | internal static ResourceManager ResourceManager
47 | {
48 | get
49 | {
50 | if (ReferenceEquals(resourceMan, null))
51 | {
52 | ResourceManager temp = new ResourceManager("Test_Bulk.Properties.Resources", typeof (Resources).Assembly);
53 | resourceMan = temp;
54 | }
55 | return resourceMan;
56 | }
57 | }
58 |
59 | ///
60 | /// Overrides the current thread's CurrentUICulture property for all
61 | /// resource lookups using this strongly typed resource class.
62 | ///
63 | [EditorBrowsable(EditorBrowsableState.Advanced)]
64 | internal static CultureInfo Culture
65 | {
66 | get { return resourceCulture; }
67 | set { resourceCulture = value; }
68 | }
69 | }
70 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_Bulk/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:2.0.50727.832
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System.CodeDom.Compiler;
12 | using System.Configuration;
13 | using System.Runtime.CompilerServices;
14 |
15 | namespace Test_Bulk.Properties
16 | {
17 | [CompilerGenerated()]
18 | [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]
19 | internal sealed partial class Settings : ApplicationSettingsBase
20 | {
21 | private static Settings defaultInstance = ((Settings) (Synchronized(new Settings())));
22 |
23 | public static Settings Default
24 | {
25 | get { return defaultInstance; }
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_Bulk/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_Bulk/ReadMe.txt:
--------------------------------------------------------------------------------
1 | USB Test_Bulk Application
2 | -------------------------
3 | The Test_Bulk application is designed to work with specific hardware.
4 | Any attempt to use this application on a usb device that was not
5 | designed for it will produce unpredictable result.
6 |
7 | The Benchmark device firmware can be used with the Test_Bulk application.
8 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_Bulk/Test_Bulk.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 | Debug
4 | AnyCPU
5 | 8.0.50727
6 | 2.0
7 | {2AA77B1D-5F6B-4206-954C-ED8D6E7DEA1B}
8 | WinExe
9 | Properties
10 | Test_Bulk
11 | Test_Bulk
12 |
13 |
14 | true
15 | full
16 | false
17 | bin\Debug\
18 | DEBUG;TRACE
19 | prompt
20 | 4
21 |
22 |
23 | pdbonly
24 | true
25 | ..\bin\Release\
26 | TRACE
27 | prompt
28 | 4
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | Form
38 |
39 |
40 | fTestBulk.cs
41 |
42 |
43 |
44 |
45 | fTestBulk.cs
46 | Designer
47 |
48 |
49 | ResXFileCodeGenerator
50 | Resources.Designer.cs
51 | Designer
52 |
53 |
54 | True
55 | Resources.resx
56 | True
57 |
58 |
59 | SettingsSingleFileGenerator
60 | Settings.Designer.cs
61 |
62 |
63 | True
64 | Settings.settings
65 | True
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | {CDDECA76-F318-4CE1-8251-CAB0C799CBBE}
74 | LibUsbDotNet
75 |
76 |
77 |
78 |
85 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_DeviceNotify/Form1.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace Test_DeviceNotify
2 | {
3 | partial class Form1
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.tNotify = new System.Windows.Forms.TextBox();
32 | this.SuspendLayout();
33 | //
34 | // tNotify
35 | //
36 | this.tNotify.Dock = System.Windows.Forms.DockStyle.Fill;
37 | this.tNotify.Location = new System.Drawing.Point(0, 0);
38 | this.tNotify.Multiline = true;
39 | this.tNotify.Name = "tNotify";
40 | this.tNotify.ReadOnly = true;
41 | this.tNotify.Size = new System.Drawing.Size(740, 340);
42 | this.tNotify.TabIndex = 0;
43 | //
44 | // Form1
45 | //
46 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
47 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
48 | this.ClientSize = new System.Drawing.Size(740, 340);
49 | this.Controls.Add(this.tNotify);
50 | this.Name = "Form1";
51 | this.Text = "Test Device Notify";
52 | this.ResumeLayout(false);
53 | this.PerformLayout();
54 |
55 | }
56 |
57 | #endregion
58 |
59 | private System.Windows.Forms.TextBox tNotify;
60 | }
61 | }
62 |
63 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_DeviceNotify/Form1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Diagnostics;
4 | using System.Windows.Forms;
5 | using LibUsbDotNet.DeviceNotify;
6 | using LibUsbDotNet.Usb;
7 | using LibUsbDotNet.Usb.Main;
8 |
9 | namespace Test_DeviceNotify
10 | {
11 | public partial class Form1 : Form
12 | {
13 | private DeviceNotifier mDevNotifier;
14 |
15 | public Form1()
16 | {
17 | InitializeComponent();
18 | mDevNotifier = new DeviceNotifier();
19 | mDevNotifier.OnDeviceNotify += new EventHandler(mDevNotifier_OnDeviceNotify);
20 | }
21 |
22 | #region PRIVATE METHODS
23 |
24 | private void mDevNotifier_OnDeviceNotify(object sender, DeviceNotifyEventArgs e)
25 | {
26 | Invoke(new DeviceNotifyEventDelegate(OnDevNotify), new object[] {sender, e});
27 | Debug.Print(e.Object.ToString());
28 | }
29 |
30 | private void OnDevNotify(object sender, DeviceNotifyEventArgs e)
31 | {
32 | object[] o = new object[] {e.EventType.ToString(), DateTime.Now.ToString(), e.DeviceType.ToString(), e.Object.ToString()};
33 | string s = String.Format("{0} - Time: {1} - {2}\r\n{3}", o);
34 |
35 | if (e.DeviceType == DeviceType.DEVICEINTERFACE && e.EventType == EventType.DEVICEARRIVAL)
36 | s += "\r\n" + e.Device.SymbolicName.FullName;
37 | tNotify.Text += s;
38 | }
39 |
40 | #endregion
41 |
42 | #region Nested type: DeviceNotifyEventDelegate
43 |
44 | private delegate void DeviceNotifyEventDelegate(object sender, DeviceNotifyEventArgs e);
45 |
46 | #endregion
47 | }
48 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_DeviceNotify/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace Test_DeviceNotify
5 | {
6 | internal static class Program
7 | {
8 | #region PRIVATE METHODS
9 |
10 | ///
11 | /// The main entry point for the application.
12 | ///
13 | [STAThread]
14 | private static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new Form1());
19 | }
20 |
21 | #endregion
22 | }
23 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_DeviceNotify/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 |
8 | [assembly : AssemblyTitle("Test_DeviceNotify")]
9 | [assembly : AssemblyDescription("")]
10 | [assembly : AssemblyConfiguration("")]
11 | [assembly : AssemblyCompany("")]
12 | [assembly : AssemblyProduct("Test_DeviceNotify")]
13 | [assembly : AssemblyCopyright("Copyright © 2007")]
14 | [assembly : AssemblyTrademark("")]
15 | [assembly : AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 |
21 | [assembly : ComVisible(false)]
22 |
23 | // The following GUID is for the ID of the typelib if this project is exposed to COM
24 |
25 | [assembly : Guid("638640db-4fed-4e37-a098-4228f3727e32")]
26 |
27 | // Version information for an assembly consists of the following four values:
28 | //
29 | // Major Version
30 | // Minor Version
31 | // Build Number
32 | // Revision
33 | //
34 |
35 | [assembly : AssemblyVersion("1.0.0.0")]
36 | [assembly : AssemblyFileVersion("1.0.0.0")]
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_DeviceNotify/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:2.0.50727.832
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System.CodeDom.Compiler;
12 | using System.ComponentModel;
13 | using System.Diagnostics;
14 | using System.Diagnostics.CodeAnalysis;
15 | using System.Globalization;
16 | using System.Resources;
17 | using System.Runtime.CompilerServices;
18 |
19 | namespace Test_DeviceNotify.Properties
20 | {
21 | ///
22 | /// A strongly-typed resource class, for looking up localized strings, etc.
23 | ///
24 | // This class was auto-generated by the StronglyTypedResourceBuilder
25 | // class via a tool like ResGen or Visual Studio.
26 | // To add or remove a member, edit your .ResX file then rerun ResGen
27 | // with the /str option, or rebuild your VS project.
28 | [GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
29 | [DebuggerNonUserCode()]
30 | [CompilerGenerated()]
31 | internal class Resources
32 | {
33 | private static ResourceManager resourceMan;
34 |
35 | private static CultureInfo resourceCulture;
36 |
37 | [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
38 | internal Resources()
39 | {
40 | }
41 |
42 | ///
43 | /// Returns the cached ResourceManager instance used by this class.
44 | ///
45 | [EditorBrowsable(EditorBrowsableState.Advanced)]
46 | internal static ResourceManager ResourceManager
47 | {
48 | get
49 | {
50 | if (ReferenceEquals(resourceMan, null))
51 | {
52 | ResourceManager temp = new ResourceManager("Test_DeviceNotify.Properties.Resources", typeof (Resources).Assembly);
53 | resourceMan = temp;
54 | }
55 | return resourceMan;
56 | }
57 | }
58 |
59 | ///
60 | /// Overrides the current thread's CurrentUICulture property for all
61 | /// resource lookups using this strongly typed resource class.
62 | ///
63 | [EditorBrowsable(EditorBrowsableState.Advanced)]
64 | internal static CultureInfo Culture
65 | {
66 | get { return resourceCulture; }
67 | set { resourceCulture = value; }
68 | }
69 | }
70 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_DeviceNotify/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:2.0.50727.832
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System.CodeDom.Compiler;
12 | using System.Configuration;
13 | using System.Runtime.CompilerServices;
14 |
15 | namespace Test_DeviceNotify.Properties
16 | {
17 | [CompilerGenerated()]
18 | [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]
19 | internal sealed partial class Settings : ApplicationSettingsBase
20 | {
21 | private static Settings defaultInstance = ((Settings) (Synchronized(new Settings())));
22 |
23 | public static Settings Default
24 | {
25 | get { return defaultInstance; }
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_DeviceNotify/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_DeviceNotify/ReadMe.txt:
--------------------------------------------------------------------------------
1 | USB Test_DeviceNotify Application
2 | ---------------------------------
3 | The Test_DeviceNotify application listens for system-wide WM_DEVICECHANGE events of USB DEVICEINTERFACE, PORT, and VOLUME notifications.
4 | Test_DeviceNotify does not require any special USB hardware to operate.
5 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_DeviceNotify/Test_DeviceNotify.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 | Debug
4 | AnyCPU
5 | 8.0.50727
6 | 2.0
7 | {7E081E3A-C557-4303-93EB-FFE2DA8DAB68}
8 | WinExe
9 | Properties
10 | Test_DeviceNotify
11 | Test_DeviceNotify
12 |
13 |
14 | true
15 | full
16 | false
17 | bin\Debug\
18 | DEBUG;TRACE
19 | prompt
20 | 4
21 |
22 |
23 | pdbonly
24 | true
25 | ..\bin\Release\
26 | TRACE
27 | prompt
28 | 4
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 | Form
41 |
42 |
43 | Form1.cs
44 |
45 |
46 |
47 |
48 | Designer
49 | Form1.cs
50 |
51 |
52 | ResXFileCodeGenerator
53 | Resources.Designer.cs
54 | Designer
55 |
56 |
57 | True
58 | Resources.resx
59 | True
60 |
61 |
62 | SettingsSingleFileGenerator
63 | Settings.Designer.cs
64 |
65 |
66 | True
67 | Settings.settings
68 | True
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 | {CDDECA76-F318-4CE1-8251-CAB0C799CBBE}
77 | LibUsbDotNet
78 |
79 |
80 |
81 |
88 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_Info/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/Test_Info/.DS_Store
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_Info/Program.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (C) 2007 Travis Robinson. All Rights Reserved
3 |
4 | www.picmicrochip.com
5 | travis@picmicrochip.com
6 |
7 | This program is free software; you can redistribute it and/or
8 | modify it under the terms of the GNU General Public License
9 | as published by the Free Software Foundation; either version 2
10 | of the License, or (at your option) any later version.
11 |
12 | This program is distributed in the hope that it will be useful,
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | GNU General Public License for more details.
16 |
17 | You should have received a copy of the GNU General Public License
18 | along with this program; if not, write to the Free Software
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 | or visit www.gnu.org.
21 | */
22 | using System;
23 | using System.Windows.Forms;
24 |
25 | namespace Test_Info
26 | {
27 | internal static class Program
28 | {
29 | #region PRIVATE METHODS
30 |
31 | ///
32 | /// The main entry point for the application.
33 | ///
34 | [STAThread]
35 | private static void Main()
36 | {
37 | Application.EnableVisualStyles();
38 | Application.SetCompatibleTextRenderingDefault(false);
39 | Application.Run(new fTestInfo());
40 | }
41 |
42 | #endregion
43 | }
44 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_Info/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 |
8 | [assembly : AssemblyTitle("Test_Info")]
9 | [assembly : AssemblyDescription("")]
10 | [assembly : AssemblyConfiguration("")]
11 | [assembly : AssemblyCompany("")]
12 | [assembly : AssemblyProduct("Test_Info")]
13 | [assembly : AssemblyCopyright("Copyright © 2007")]
14 | [assembly : AssemblyTrademark("")]
15 | [assembly : AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 |
21 | [assembly : ComVisible(false)]
22 |
23 | // The following GUID is for the ID of the typelib if this project is exposed to COM
24 |
25 | [assembly : Guid("e03fd5d0-7bd2-499b-8ee5-eef08bff9025")]
26 |
27 | // Version information for an assembly consists of the following four values:
28 | //
29 | // Major Version
30 | // Minor Version
31 | // Build Number
32 | // Revision
33 | //
34 |
35 | [assembly : AssemblyVersion("1.0.0.0")]
36 | [assembly : AssemblyFileVersion("1.0.0.0")]
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_Info/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:2.0.50727.832
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System.CodeDom.Compiler;
12 | using System.ComponentModel;
13 | using System.Diagnostics;
14 | using System.Diagnostics.CodeAnalysis;
15 | using System.Globalization;
16 | using System.Resources;
17 | using System.Runtime.CompilerServices;
18 |
19 | namespace Test_Info.Properties
20 | {
21 | ///
22 | /// A strongly-typed resource class, for looking up localized strings, etc.
23 | ///
24 | // This class was auto-generated by the StronglyTypedResourceBuilder
25 | // class via a tool like ResGen or Visual Studio.
26 | // To add or remove a member, edit your .ResX file then rerun ResGen
27 | // with the /str option, or rebuild your VS project.
28 | [GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
29 | [DebuggerNonUserCode()]
30 | [CompilerGenerated()]
31 | internal class Resources
32 | {
33 | private static ResourceManager resourceMan;
34 |
35 | private static CultureInfo resourceCulture;
36 |
37 | [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
38 | internal Resources()
39 | {
40 | }
41 |
42 | ///
43 | /// Returns the cached ResourceManager instance used by this class.
44 | ///
45 | [EditorBrowsable(EditorBrowsableState.Advanced)]
46 | internal static ResourceManager ResourceManager
47 | {
48 | get
49 | {
50 | if (ReferenceEquals(resourceMan, null))
51 | {
52 | ResourceManager temp = new ResourceManager("Test_Info.Properties.Resources", typeof (Resources).Assembly);
53 | resourceMan = temp;
54 | }
55 | return resourceMan;
56 | }
57 | }
58 |
59 | ///
60 | /// Overrides the current thread's CurrentUICulture property for all
61 | /// resource lookups using this strongly typed resource class.
62 | ///
63 | [EditorBrowsable(EditorBrowsableState.Advanced)]
64 | internal static CultureInfo Culture
65 | {
66 | get { return resourceCulture; }
67 | set { resourceCulture = value; }
68 | }
69 | }
70 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_Info/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:2.0.50727.832
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System.CodeDom.Compiler;
12 | using System.Configuration;
13 | using System.Runtime.CompilerServices;
14 |
15 | namespace Test_Info.Properties
16 | {
17 | [CompilerGenerated()]
18 | [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]
19 | internal sealed partial class Settings : ApplicationSettingsBase
20 | {
21 | private static Settings defaultInstance = ((Settings) (Synchronized(new Settings())));
22 |
23 | public static Settings Default
24 | {
25 | get { return defaultInstance; }
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_Info/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_Info/ReadMe.txt:
--------------------------------------------------------------------------------
1 | USB Test_Info Application
2 | -------------------------
3 | The Test_Info application enumerates the USB devices attached to the PC.
4 | Test_Info does not require any special USB hardware to operate.
5 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Test_Info/Test_Info.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 | Debug
4 | AnyCPU
5 | 8.0.50727
6 | 2.0
7 | {3EFEDA92-CAE3-4585-A519-439ACD58468A}
8 | WinExe
9 | Properties
10 | Test_Info
11 | Test_Info
12 |
13 |
14 | true
15 | full
16 | false
17 | bin\Debug\
18 | DEBUG;TRACE
19 | prompt
20 | 4
21 |
22 |
23 | pdbonly
24 | true
25 | ..\bin\Release\
26 | TRACE
27 | prompt
28 | 4
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | Form
38 |
39 |
40 | fTestInfo.cs
41 |
42 |
43 |
44 |
45 | fTestInfo.cs
46 | Designer
47 |
48 |
49 | ResXFileCodeGenerator
50 | Resources.Designer.cs
51 | Designer
52 |
53 |
54 | True
55 | Resources.resx
56 | True
57 |
58 |
59 | SettingsSingleFileGenerator
60 | Settings.Designer.cs
61 |
62 |
63 | True
64 | Settings.settings
65 | True
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | {CDDECA76-F318-4CE1-8251-CAB0C799CBBE}
74 | LibUsbDotNet
75 |
76 |
77 |
78 |
85 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/UnitTest/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/UnitTest/.DS_Store
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/UnitTest/PicTestDevice.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Diagnostics;
3 | using System.IO;
4 | using LibUsbDotNet.Usb;
5 |
6 | namespace UnitTest
7 | {
8 | public class PicTestDevice
9 | {
10 | public const int VID = 0x04d8;
11 | public const int PID = 0x0f01;
12 |
13 | private static UsbDevice mTestDevice;
14 |
15 | public static UsbDevice TestDevice
16 | {
17 | get
18 | {
19 | UsbDevice t;
20 | Open(out t);
21 | return t;
22 | }
23 | }
24 |
25 | #region PUBLIC METHODS
26 | public static void OpenAndConfigure(StreamWriter sw)
27 | {
28 | Debug.Assert(TestDevice.Open(), "Failed opening device.");
29 |
30 | int ret;
31 | ret = TestDevice.SetConfiguration(1);
32 | Debug.Assert(ret == 0);
33 | if (sw != null) sw.WriteLine("SetConfiguration(1):" + ret);
34 |
35 | ret = TestDevice.ClaimInterface(0);
36 | Debug.Assert(ret == 0);
37 | if (sw != null) sw.WriteLine("ClaimInterface(0):" + ret);
38 | }
39 | public static void CloseAndDeConfigure(StreamWriter sw)
40 | {
41 | int ret;
42 | ret = TestDevice.ReleaseInterface(0);
43 | Debug.Assert(ret == 0);
44 | if (sw != null) sw.WriteLine("ReleaseInterface(0):" + ret);
45 |
46 | ret = TestDevice.SetConfiguration(0);
47 | Debug.Assert(ret == 0);
48 | if (sw != null) sw.WriteLine("SetConfiguration(0):" + ret);
49 | Debug.Assert(TestDevice.Close());
50 | }
51 | public static bool GetTestType(ref byte testType)
52 | {
53 | byte[] dat = {0x00, 0x00};
54 |
55 | if (TestDevice.IsOpen)
56 | {
57 | int ret = TestDevice.IOControlMessage(0xC0, 15, 0, 0, dat, 500);
58 | if (ret >= 0)
59 | {
60 | testType = dat[0];
61 | return true;
62 | }
63 |
64 | testType = 0;
65 | return false;
66 | }
67 |
68 | throw new Exception("Device Not Opened");
69 | }
70 |
71 | public static bool SetTestType(int iNewTest, ref byte bLastTestType)
72 | {
73 | byte[] dat = {0x00, 0x00};
74 |
75 | if (TestDevice.IsOpen)
76 | {
77 | int ret = TestDevice.IOControlMessage(0xC0, 14, iNewTest, 0, dat, 500);
78 | if (ret >= 0)
79 | {
80 | bLastTestType = dat[0];
81 | return true;
82 | }
83 |
84 | return false;
85 | }
86 |
87 | throw new Exception("Device Not Opened");
88 | }
89 |
90 | #endregion
91 |
92 | #region PRIVATE METHODS
93 |
94 | private static UsbDevice Find()
95 | {
96 | foreach (UsbDevice usbDevice in UsbGlobals.DeviceList)
97 | {
98 | if (usbDevice.Info.IdVendor == VID && usbDevice.Info.IdProduct == PID)
99 | {
100 | return usbDevice;
101 | }
102 | }
103 | return null;
104 | }
105 |
106 | private static bool Open(out UsbDevice picTestUsbDevice)
107 | {
108 | if (ReferenceEquals(mTestDevice, null))
109 | {
110 | picTestUsbDevice = Find();
111 |
112 | if (picTestUsbDevice == null)
113 | return false;
114 | else
115 | mTestDevice = picTestUsbDevice;
116 |
117 | return true;
118 | }
119 | else
120 | {
121 | picTestUsbDevice = mTestDevice;
122 | return true;
123 | }
124 | }
125 |
126 | #endregion
127 | }
128 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/UnitTest/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace UnitTest
5 | {
6 | internal static class Program
7 | {
8 | #region PRIVATE METHODS
9 |
10 | ///
11 | /// The main entry point for the application.
12 | ///
13 | [STAThread]
14 | private static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new fUsbTest());
19 | }
20 |
21 | #endregion
22 | }
23 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/UnitTest/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 |
8 | [assembly : AssemblyTitle("UnitTest")]
9 | [assembly : AssemblyDescription("")]
10 | [assembly : AssemblyConfiguration("")]
11 | [assembly : AssemblyCompany("")]
12 | [assembly : AssemblyProduct("UnitTest")]
13 | [assembly : AssemblyCopyright("Copyright © 2007")]
14 | [assembly : AssemblyTrademark("")]
15 | [assembly : AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 |
21 | [assembly : ComVisible(false)]
22 |
23 | // The following GUID is for the ID of the typelib if this project is exposed to COM
24 |
25 | [assembly : Guid("3d2b95b9-35f3-4fa5-a363-55db5ab8a6ec")]
26 |
27 | // Version information for an assembly consists of the following four values:
28 | //
29 | // Major Version
30 | // Minor Version
31 | // Build Number
32 | // Revision
33 | //
34 |
35 | [assembly : AssemblyVersion("1.0.0.0")]
36 | [assembly : AssemblyFileVersion("1.0.0.0")]
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/UnitTest/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:2.0.50727.832
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System.CodeDom.Compiler;
12 | using System.ComponentModel;
13 | using System.Diagnostics;
14 | using System.Diagnostics.CodeAnalysis;
15 | using System.Globalization;
16 | using System.Resources;
17 | using System.Runtime.CompilerServices;
18 |
19 | namespace UnitTest.Properties
20 | {
21 | ///
22 | /// A strongly-typed resource class, for looking up localized strings, etc.
23 | ///
24 | // This class was auto-generated by the StronglyTypedResourceBuilder
25 | // class via a tool like ResGen or Visual Studio.
26 | // To add or remove a member, edit your .ResX file then rerun ResGen
27 | // with the /str option, or rebuild your VS project.
28 | [GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
29 | [DebuggerNonUserCode()]
30 | [CompilerGenerated()]
31 | internal class Resources
32 | {
33 | private static ResourceManager resourceMan;
34 |
35 | private static CultureInfo resourceCulture;
36 |
37 | [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
38 | internal Resources()
39 | {
40 | }
41 |
42 | ///
43 | /// Returns the cached ResourceManager instance used by this class.
44 | ///
45 | [EditorBrowsable(EditorBrowsableState.Advanced)]
46 | internal static ResourceManager ResourceManager
47 | {
48 | get
49 | {
50 | if ((resourceMan == null))
51 | {
52 | ResourceManager temp = new ResourceManager("UnitTest.Properties.Resources", typeof (Resources).Assembly);
53 | resourceMan = temp;
54 | }
55 | return resourceMan;
56 | }
57 | }
58 |
59 | ///
60 | /// Overrides the current thread's CurrentUICulture property for all
61 | /// resource lookups using this strongly typed resource class.
62 | ///
63 | [EditorBrowsable(EditorBrowsableState.Advanced)]
64 | internal static CultureInfo Culture
65 | {
66 | get { return resourceCulture; }
67 | set { resourceCulture = value; }
68 | }
69 | }
70 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/UnitTest/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:2.0.50727.832
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System.CodeDom.Compiler;
12 | using System.Configuration;
13 | using System.Runtime.CompilerServices;
14 |
15 | namespace UnitTest.Properties
16 | {
17 | [CompilerGenerated()]
18 | [GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]
19 | internal sealed partial class Settings : ApplicationSettingsBase
20 | {
21 | private static Settings defaultInstance = ((Settings) (Synchronized(new Settings())));
22 |
23 | public static Settings Default
24 | {
25 | get { return defaultInstance; }
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/UnitTest/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/UnitTest/Test/ITest.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 |
3 | namespace UnitTest.Test
4 | {
5 | public interface ITest
6 | {
7 | #region PUBLIC METHODS
8 |
9 | void Run(Stream output);
10 |
11 | #endregion
12 | }
13 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/UnitTest/Test/Test_cancel_io.cs:
--------------------------------------------------------------------------------
1 | using System.Diagnostics;
2 | using System.IO;
3 | using System.Threading;
4 | using System.Windows.Forms;
5 | using LibUsbDotNet.Usb;
6 | using LibUsbDotNet.Usb.Main;
7 |
8 | namespace UnitTest.Test
9 | {
10 | public class Test_cancel_io : ITest
11 | {
12 | #region ITest Members
13 |
14 | public void Run(Stream output)
15 | {
16 | byte[] _bTemp = new byte[64];
17 | StreamWriter sw = new StreamWriter(output);
18 | sw.WriteLine("--- Test_cancel_io ---");
19 |
20 | UsbDevice testDevice = PicTestDevice.TestDevice;
21 | if (testDevice != null)
22 | {
23 | Debug.Assert(testDevice.Open(), "Failed opening device.");
24 |
25 | int ret;
26 | ret = testDevice.SetConfiguration(1);
27 | Debug.Assert(ret == 0);
28 | sw.WriteLine("SetConfiguration(1):" + ret);
29 |
30 | ret = testDevice.ClaimInterface(0);
31 | Debug.Assert(ret == 0);
32 | sw.WriteLine("ClaimInterface(0):" + ret);
33 |
34 | byte bTestType = 0;
35 | Debug.Assert(PicTestDevice.GetTestType(ref bTestType));
36 |
37 | UsbEndpointReader reader = testDevice.OpenBulkEndpointReader(ReadEndpoints.Ep01);
38 | if (bTestType != 3)
39 | {
40 | Debug.Assert(PicTestDevice.SetTestType(3, ref bTestType));
41 | while (ret >= 0)
42 | {
43 | ret = reader.Read(_bTemp, 1000);
44 | if (ret == 1 && _bTemp[0] == 0x80) break;
45 | }
46 | }
47 |
48 | reader.DataReceivedEnabled = true;
49 | Application.DoEvents();
50 | Thread.Sleep(1000);
51 | Thread.Sleep(1000);
52 | reader.CancelIO();
53 | Application.DoEvents();
54 | reader.Dispose();
55 |
56 | ret = testDevice.ReleaseInterface(0);
57 | Debug.Assert(ret == 0);
58 | sw.WriteLine("ReleaseInterface(0):" + ret);
59 |
60 | ret = testDevice.SetConfiguration(0);
61 | Debug.Assert(ret == 0);
62 | sw.WriteLine("SetConfiguration(0):" + ret);
63 |
64 | testDevice.Close();
65 | sw.WriteLine("SUCCESS!");
66 | }
67 | else
68 | {
69 | sw.WriteLine("Failed opening device.");
70 | }
71 | sw.WriteLine("------------------------------");
72 | sw.Flush();
73 | }
74 |
75 | #endregion
76 | }
77 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/UnitTest/Test/Test_usb_strerror.cs:
--------------------------------------------------------------------------------
1 | using System.Diagnostics;
2 | using System.IO;
3 | using LibUsbDotNet.Usb;
4 | using LibUsbDotNet.Usb.Main;
5 |
6 | namespace UnitTest.Test
7 | {
8 | public class Test_usb_strerror : ITest
9 | {
10 | #region ITest Members
11 |
12 | public void Run(Stream output)
13 | {
14 | StreamWriter sw = new StreamWriter(output);
15 | sw.WriteLine("--- Test_usb_strerror Test ---");
16 |
17 | UsbDevice testDevice = PicTestDevice.TestDevice;
18 | if (testDevice != null)
19 | {
20 | int ret;
21 | ret = testDevice.SetConfiguration(1);
22 | Debug.Assert(ret == 0);
23 | sw.WriteLine("SetConfiguration(1):" + ret);
24 |
25 | ret = testDevice.ClaimInterface(0);
26 | Debug.Assert(ret == 0);
27 | sw.WriteLine("ClaimInterface(0):" + ret);
28 |
29 | ret = testDevice.SetConfiguration(0);
30 | Debug.Assert(ret == (int) ErrorCodes.EINVAL);
31 | sw.WriteLine("SetConfiguration(0):" + ret);
32 |
33 | sw.WriteLine("LastError:" + UsbGlobals.LastError);
34 |
35 | ret = testDevice.ReleaseInterface(0);
36 | Debug.Assert(ret == 0);
37 | sw.WriteLine("ReleaseInterface(0):" + ret);
38 |
39 | ret = testDevice.SetConfiguration(0);
40 | Debug.Assert(ret == 0);
41 | sw.WriteLine("SetConfiguration(0):" + ret);
42 |
43 | testDevice.Close();
44 | sw.WriteLine("SUCCESS!");
45 | }
46 | else
47 | {
48 | sw.WriteLine("Failed opening device.");
49 | }
50 | sw.WriteLine("------------------------------");
51 | sw.Flush();
52 | }
53 |
54 | #endregion
55 | }
56 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/UnitTest/UnitTest.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 | Debug
4 | AnyCPU
5 | 8.0.50727
6 | 2.0
7 | {88A44190-900D-469B-8C76-4C2F6DEC846B}
8 | WinExe
9 | Properties
10 | UnitTest
11 | UnitTest
12 |
13 |
14 | true
15 | full
16 | false
17 | bin\Debug\
18 | DEBUG;TRACE
19 | prompt
20 | 4
21 |
22 |
23 | pdbonly
24 | true
25 | ..\bin\Release\
26 | TRACE
27 | prompt
28 | 4
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 | Form
41 |
42 |
43 | fUsbTest.cs
44 |
45 |
46 |
47 |
48 |
49 | Designer
50 | fUsbTest.cs
51 |
52 |
53 | ResXFileCodeGenerator
54 | Resources.Designer.cs
55 | Designer
56 |
57 |
58 | True
59 | Resources.resx
60 |
61 |
62 | SettingsSingleFileGenerator
63 | Settings.Designer.cs
64 |
65 |
66 | True
67 | Settings.settings
68 | True
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 | {CDDECA76-F318-4CE1-8251-CAB0C799CBBE}
78 | LibUsbDotNet
79 |
80 |
81 |
82 |
89 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/UnitTest/fUsbTest.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Diagnostics;
3 | using System.IO;
4 | using System.Windows.Forms;
5 | using UnitTest.Test;
6 |
7 | namespace UnitTest
8 | {
9 | public partial class fUsbTest : Form
10 | {
11 | public fUsbTest()
12 | {
13 | InitializeComponent();
14 | }
15 |
16 | #region PRIVATE METHODS
17 |
18 | private void cancelioToolStripMenuItem_Click(object sender, EventArgs e)
19 | {
20 | Test_cancel_io t = new Test_cancel_io();
21 | MemoryStream mStream = new MemoryStream();
22 | t.Run(mStream);
23 |
24 | mStream.Seek(0, SeekOrigin.Begin);
25 |
26 | StreamReader sw = new StreamReader(mStream);
27 | Debug.Print(sw.ReadToEnd());
28 | }
29 |
30 | private void usbstrerrorToolStripMenuItem_Click(object sender, EventArgs e)
31 | {
32 | Test_usb_strerror t = new Test_usb_strerror();
33 | MemoryStream mStream = new MemoryStream();
34 | t.Run(mStream);
35 |
36 | mStream.Seek(0, SeekOrigin.Begin);
37 |
38 | StreamReader sw = new StreamReader(mStream);
39 | Debug.Print(sw.ReadToEnd());
40 | }
41 |
42 | #endregion
43 |
44 | private void bigReadWriteToolStripMenuItem_Click(object sender, EventArgs e)
45 | {
46 | Test_BigReadWrite t = new Test_BigReadWrite();
47 | MemoryStream mStream = new MemoryStream();
48 | t.Run(mStream);
49 |
50 | mStream.Seek(0, SeekOrigin.Begin);
51 |
52 | StreamReader sw = new StreamReader(mStream);
53 | Debug.Print(sw.ReadToEnd());
54 |
55 | }
56 | }
57 | }
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Utility/DevEnvBuilder.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/Utility/DevEnvBuilder.exe
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/Utility/NetBuildInfo.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/Utility/NetBuildInfo.exe
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/build/ReleaseNotes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | LibUsbDotNet Changes
6 |
7 |
8 |
9 | Changes in LibUsbDotNet v1.0.1
10 |
Release Date: 10-06-2007
11 |
12 | - Ported to C#2.0! Many API changes. See documentation.
13 | - Added Test_DeviceNotify sample project.
14 | - Fixed mising data issue with the DataReceived event.
15 | - Rebuilt libusb core components with WINDDK 2003 (SP1).
16 | - Added Itanium 64bit support.
17 | - Fixed x64 installation error.
18 |
19 |
20 |
21 | Changes in LibUsbDotNet v0.1.4
22 |
Release Date: 07-18-2007
23 | - Debug runtimes removed from the distributions to avoid confusion.
24 | - New Class Added. The DeviceNotify class is used for receiving device insertion/removal events. See documentation for full details.
25 |
26 |
27 |
28 |
29 | Changes in LibUsbDotNet v0.1.3b
30 |
Release Date: 01-04-2007
31 |
32 | - Added lock routines to internal read/write functions to increase multi-threading stability.
33 | - Removed dependencies on msvcmrt.lib.
34 | - Project defaults changed to compiled with /clr:pure syntax.
35 | - Added 64bit support.
36 | - Fixed function ClibUsb.Open(InfoDevice). It will now open different devices with the same vendor and product id.
37 | - Added remove functions to the CLibUsb.ActiveEndPoints property (CEndPonts class)
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/.DS_Store
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/AUTHORS.txt:
--------------------------------------------------------------------------------
1 |
2 | Library, Test Programs:
3 |
4 | Stephan Meyer,
5 | Johannes Erdfelt,
6 | Thomas Sailer,
7 |
8 |
9 | Drivers, Installer:
10 |
11 | Stephan Meyer,
12 |
13 |
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/I64/inf-wizard.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/I64/inf-wizard.exe
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/I64/libusb.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/I64/libusb.lib
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/I64/libusb0.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/I64/libusb0.dll
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/I64/libusb0.sys:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/I64/libusb0.sys
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/I64/msvci70.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/I64/msvci70.dll
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/I64/testlibusb-win.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/I64/testlibusb-win.exe
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/I64/testlibusb.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/I64/testlibusb.exe
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/inf-wizard.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/inf-wizard.exe
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/install-filter.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/install-filter.exe
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x64/inf-wizard.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x64/inf-wizard.exe
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x64/libusb.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x64/libusb.lib
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x64/libusb0.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x64/libusb0.dll
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x64/libusb0.sys:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x64/libusb0.sys
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x64/msvci70.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x64/msvci70.dll
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x64/testlibusb-win.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x64/testlibusb-win.exe
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x64/testlibusb.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x64/testlibusb.exe
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x86/inf-wizard.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x86/inf-wizard.exe
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x86/libusb.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x86/libusb.lib
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x86/libusb0.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x86/libusb0.dll
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x86/libusb0.sys:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x86/libusb0.sys
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x86/msvci70.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x86/msvci70.dll
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x86/testlibusb-win.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x86/testlibusb-win.exe
--------------------------------------------------------------------------------
/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x86/testlibusb.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/C# library application examples written in LIBUSB/setup/additional/libusb-win32/x86/testlibusb.exe
--------------------------------------------------------------------------------
/taobao ch554/CH554 analog CDC class,/CDC.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 analog CDC class,/CDC.C
--------------------------------------------------------------------------------
/taobao ch554/CH554 analog CDC class,/Listings/CDC.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 analog CDC class,/Listings/CDC.lst
--------------------------------------------------------------------------------
/taobao ch554/CH554 analog CDC class,/Listings/DEBUG.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 analog CDC class,/Listings/DEBUG.lst
--------------------------------------------------------------------------------
/taobao ch554/CH554 analog CDC class,/Objects/CDC:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 analog CDC class,/Objects/CDC
--------------------------------------------------------------------------------
/taobao ch554/CH554 analog CDC class,/Objects/CDC.build_log.htm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 analog CDC class,/Objects/CDC.build_log.htm
--------------------------------------------------------------------------------
/taobao ch554/CH554 analog CDC class,/Objects/CDC.lnp:
--------------------------------------------------------------------------------
1 | ".\Objects\CDC.obj",
2 | ".\Objects\DEBUG.obj"
3 | TO ".\Objects\CDC"
4 | PRINT(".\Listings\CDC.m51") RAMSIZE(256)
5 |
--------------------------------------------------------------------------------
/taobao ch554/CH554 analog CDC class,/Objects/CDC.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 analog CDC class,/Objects/CDC.obj
--------------------------------------------------------------------------------
/taobao ch554/CH554 analog CDC class,/Objects/DEBUG.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 analog CDC class,/Objects/DEBUG.obj
--------------------------------------------------------------------------------
/taobao ch554/CH554 analog CDC class,/Public/CH554.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 analog CDC class,/Public/CH554.H
--------------------------------------------------------------------------------
/taobao ch554/CH554 analog CDC class,/Public/CH554.INC:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 analog CDC class,/Public/CH554.INC
--------------------------------------------------------------------------------
/taobao ch554/CH554 analog CDC class,/Public/DEBUG.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 analog CDC class,/Public/DEBUG.C
--------------------------------------------------------------------------------
/taobao ch554/CH554 analog CDC class,/Public/DEBUG.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 analog CDC class,/Public/DEBUG.H
--------------------------------------------------------------------------------
/taobao ch554/CH554 analog CDC class,/UsbToUartDriver.inf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 analog CDC class,/UsbToUartDriver.inf
--------------------------------------------------------------------------------
/taobao ch554/CH554 simulation U disk,/Listings/DEBUG.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 simulation U disk,/Listings/DEBUG.lst
--------------------------------------------------------------------------------
/taobao ch554/CH554 simulation U disk,/Listings/u_disk.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 simulation U disk,/Listings/u_disk.lst
--------------------------------------------------------------------------------
/taobao ch554/CH554 simulation U disk,/Objects/DEBUG.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 simulation U disk,/Objects/DEBUG.obj
--------------------------------------------------------------------------------
/taobao ch554/CH554 simulation U disk,/Objects/u_disk.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 simulation U disk,/Objects/u_disk.obj
--------------------------------------------------------------------------------
/taobao ch554/CH554 simulation U disk,/Objects/udisk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 simulation U disk,/Objects/udisk
--------------------------------------------------------------------------------
/taobao ch554/CH554 simulation U disk,/Objects/udisk.build_log.htm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 simulation U disk,/Objects/udisk.build_log.htm
--------------------------------------------------------------------------------
/taobao ch554/CH554 simulation U disk,/Objects/udisk.lnp:
--------------------------------------------------------------------------------
1 | ".\Objects\u_disk.obj",
2 | ".\Objects\DEBUG.obj"
3 | TO ".\Objects\udisk"
4 | PRINT(".\Listings\udisk.m51") RAMSIZE(256)
5 |
--------------------------------------------------------------------------------
/taobao ch554/CH554 simulation U disk,/Public/CH554.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 simulation U disk,/Public/CH554.H
--------------------------------------------------------------------------------
/taobao ch554/CH554 simulation U disk,/Public/CH554.INC:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 simulation U disk,/Public/CH554.INC
--------------------------------------------------------------------------------
/taobao ch554/CH554 simulation U disk,/Public/DEBUG.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 simulation U disk,/Public/DEBUG.C
--------------------------------------------------------------------------------
/taobao ch554/CH554 simulation U disk,/Public/DEBUG.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 simulation U disk,/Public/DEBUG.H
--------------------------------------------------------------------------------
/taobao ch554/CH554 simulation U disk,/u_disk.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554 simulation U disk,/u_disk.c
--------------------------------------------------------------------------------
/taobao ch554/CH554DS1 (1).PDF:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/CH554DS1 (1).PDF
--------------------------------------------------------------------------------
/taobao ch554/Ch55X+USB serial CDC+ analog CH340/6666667.usm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/Ch55X+USB serial CDC+ analog CH340/6666667.usm
--------------------------------------------------------------------------------
/taobao ch554/Ch55X+USB serial CDC+ analog CH340/CH559.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/Ch55X+USB serial CDC+ analog CH340/CH559.H
--------------------------------------------------------------------------------
/taobao ch554/Ch55X+USB serial CDC+ analog CH340/DEBUG.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/Ch55X+USB serial CDC+ analog CH340/DEBUG.C
--------------------------------------------------------------------------------
/taobao ch554/Ch55X+USB serial CDC+ analog CH340/DEBUG.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/Ch55X+USB serial CDC+ analog CH340/DEBUG.H
--------------------------------------------------------------------------------
/taobao ch554/Ch55X+USB serial CDC+ analog CH340/USBCOM.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/Ch55X+USB serial CDC+ analog CH340/USBCOM.C
--------------------------------------------------------------------------------
/taobao ch554/WCHISPTool_Setup.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/WCHISPTool_Setup.exe
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/CH554.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/CH554.H
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/CH554.INC:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/CH554.INC
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/Debug.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/Debug.C
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/Debug.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/Debug.H
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/Debug.LST:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/Debug.LST
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/Debug.OBJ:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/Debug.OBJ
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/Main.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/Main.C
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/Main.C.orig:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/Main.C.orig
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/Main.LST:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/Main.LST
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/Main.OBJ:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/Main.OBJ
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/Main.__i:
--------------------------------------------------------------------------------
1 | "Main.C" BROWSE NOAREGS DEBUG OBJECTEXTEND
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/TouchKey.C:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/TouchKey.C
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/TouchKey.H:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/TouchKey.H
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/TouchKey.LST:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/TouchKey.LST
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/TouchKey.OBJ:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/TouchKey.OBJ
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/TouchKey.__i:
--------------------------------------------------------------------------------
1 | "TouchKey.C" BROWSE NOAREGS DEBUG OBJECTEXTEND
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/ch554_txm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/ch554_txm
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/ch554_txm.hex:
--------------------------------------------------------------------------------
1 | :10024B0075A15575A1AAE5B954F84404F5B9E4F5BF
2 | :02025B00A122DE
3 | :0E002B00EF4E600905A1EF1F70F61E80F32254
4 | :10020700CDEFCDCCEECCED4C600E7FE87E03120037
5 | :090217002BED1D70F11C80EE229C
6 | :0402930043C610222C
7 | :10010C00C29FD29EC29DC2CDC2CC438780E4751CD7
8 | :10011C000D751B03F51AF5197B0AFAF9F8AF1CAE2D
9 | :10012C001BAD1AAC1912007ACFEBCF8F1DAF1CAEE2
10 | :10013C001BAD1AAC19E47B0AFAF9F812007A8F1C81
11 | :10014C008E1B8D1A8C19E51DC394054011EF2401EB
12 | :10015C00F51CE43EF51BE43DF51AE43CF519E58984
13 | :10016C00540F4420F58943C9A0E51CF404F58DD245
14 | :05017C008ED299D29C17
15 | :01018100225B
16 | :080273003098FDC298AF9922FA
17 | :08027B008F993099FDC2992210
18 | :0A026900C2C7D2C5D2C475C2B222CA
19 | :0802830030C0FDC2C0AFC12272
20 | :08028B008FC130C1FDD2C12278
21 | :1002200075A15575A1AAEF600543B101800353B1D3
22 | :07023000FEE4F5A1F5FF2239
23 | :030297008FFF22B4
24 | :1000030012024B7F057E0012020753930C5392DFBB
25 | :10001300439320120269D2AF7FC87E00120207B257
26 | :08002300957F5212028B80F060
27 | :10018200E4FFF518FE7D05E5C354F84E04F5C3CC33
28 | :10019200EDCC1DEC600EE5C330E7FBACC4EC540FB4
29 | :1001A2002FFF80EBEF75F0058424F0FDE434075552
30 | :1001B200C5FCE5C45DFDEE25E02410F8C6ECC608DA
31 | :0901C200C6EDC60EBE04BED2E972
32 | :0101CB002211
33 | :10023700EFC39406500BE5C354F84F04F5C37F0092
34 | :04024700227FFF22F1
35 | :03003B000201CCF3
36 | :0701CC00C0E0C0D075D008AF
37 | :1001D300AFC4AEC5E5C35407FDD39403400553C371
38 | :1001E300F8800205C3ED25E02410F8E6FA08E624BA
39 | :0F01F300ECFBEA34FFFAC3EF9BEE9A50028D1833
40 | :05020200D0D0D0E03275
41 | :0300000002025D9C
42 | :0C025D00787FE4F6D8FD75811D020003D7
43 | :10003E0075F008758200EF2FFFEE33FECD33CDCC79
44 | :10004E0033CCC58233C5829BED9AEC99E5829840FC
45 | :10005E000CF582EE9BFEED9AFDEC99FC0FD5F0D6D9
46 | :10006E00E4CEFBE4CDFAE4CCF9A88222B800C1B903
47 | :10007E000059BA002DEC8BF084CFCECDFCE5F0CB41
48 | :10008E00F97818EF2FFFEE33FEED33FDEC33FCEB7A
49 | :10009E0033FB10D703994004EB99FB0FD8E5E4F935
50 | :1000AE00FA227818EF2FFFEE33FEED33FDEC33FC22
51 | :1000BE00C933C910D7059BE99A4007EC9BFCE99A16
52 | :1000CE00F90FD8E0E4C9FAE4CCFB2275F010EF2F5B
53 | :1000DE00FFEE33FEED33FDCC33CCC833C810D7075B
54 | :1000EE009BEC9AE899400AED9BFDEC9AFCE899F896
55 | :0E00FE000FD5F0DAE4CDFBE4CCFAE4C8F92229
56 | :00000001FF
57 |
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/ch554_txm.lnp:
--------------------------------------------------------------------------------
1 | "Debug.obj",
2 | "Main.obj",
3 | "TouchKey.obj"
4 | TO "ch554_txm"
5 |
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/ch554_txm.plg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/ch554_txm.plg
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/ch554_txm_uvproj.bak:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/ch554_txm_uvproj.bak
--------------------------------------------------------------------------------
/taobao ch554/ch554_txm KEIL4 testing eng/Àµ√˜.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/ch554_txm KEIL4 testing eng/Àµ√˜.txt
--------------------------------------------------------------------------------
/taobao ch554/readme.txt:
--------------------------------------------------------------------------------
1 |
2 | CH554 e board taobao link (taobao shop in Guangzhou)
3 | https://item.taobao.com/item.htm?spm=a230r.1.14.16.9Kx4VE&id=550861969916&ns=1&abbucket=19#detail
4 | other parts you may need
5 | 3*4*2mm 2pin tact switch for download the software
6 | or you can use tweezer to short the 3.3v and download pin for pc to identify the usb
7 |
--------------------------------------------------------------------------------
/taobao ch554/taobao ch554T&E smallest board pcb sch.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/HonghongLu/CH554/2e219d837e08a15974601d5d01eccc0c11b35b12/taobao ch554/taobao ch554T&E smallest board pcb sch.jpg
--------------------------------------------------------------------------------