Simple USBHost library for Nucleo F446RE/F411RE/F401RE FRDM-KL46Z/KL25Z/F64F LPC4088/LPC1768
Dependents: F401RE-BTstack_example F401RE-USBHostMSD_HelloWorld
Fork of KL46Z-USBHost by
簡易USBホストライブラリです。
official-USBHostの下位互換で対応プログラムを僅かな修正で動かすことが出来ます。
Platforms
- Nucleo F446RE
- Nucleo F411RE
- Nucleo F401RE
- FRDM-K64F
- FRDM-KL46Z
- FRDM-KL25Z
- LPC4088
- LPC1768
Nucleo F446RE/F411RE/F401REのUSB接続方法
ST morpho | USB |
---|---|
U5V (CN10-8) | VBUS (1 RED) |
PA11 (CN10-14) | DM (2 WHITE) |
PA12 (CN10-12) | DP (3 GREEN) |
GND (CN10-20) | GND (4 BLACK) |
Examples
Import programF446RE-USBHostMouse_HelloWorld
USBHostMouse Hello World for ST-Nucleo-F446RE
Import programF401RE-USBHostMSD_HelloWorld
Simple USBHost MSD(USB flash drive) for Nucleo F401RE/FRDM-KL46Z test program
Import programF401RE-USBHostC270_example
Simple USBHost WebCam test program
Import programK64F_USBHostC270_example
Simple USBHost C270 example
Import programF401RE-BTstack_example
BTstack for Nucleo F401RE/FRDM-KL46Z example program
Import programUSBHostRSSI_example
Bluetooth device discovery example program.
Import programKL46Z-USBHostGPS_HelloWorld
Simple USBHost GPS Dongle Receiver for FRDM-KL46Z test program
USBHostC270/CamInfo.cpp
- Committer:
- va009039
- Date:
- 2014-06-10
- Revision:
- 13:8774c07f12a5
- Child:
- 18:61554f238584
File content as of revision 13:8774c07f12a5:
// CamInfo.cpp #include "USBHostCam.h" // Logitech C270 #define C270_VID 0x046d #define C270_PID 0x0825 #define C270_160x120 2 #define C270_176x144 3 #define C270_320x176 4 #define C270_320x240 5 #define C270_352x288 6 #define C270_432x240 7 #define C270_640x480 1 #define C270_544x288 8 #define C270_640x360 9 #define C270_752x416 10 #define C270_800x448 11 #define C270_800x600 12 #define C270_MJPEG 2 #define C270_YUV2 1 #define C270_EN 0x81 #define C270_MPS 192 #define C270_IF_ALT_192 1 #define C270_IF_ALT(A) C270_IF_ALT_##A #define C270_INFO(SIZE) {C270_VID, C270_PID, _##SIZE, 0, \ "C270", \ C270_MJPEG, \ C270_##SIZE, \ _5FPS, \ C270_EN, \ 192, \ C270_IF_ALT(192), \ } #define C210_PID 0x819 #define C210_INFO(SIZE) {C270_VID, C210_PID, _##SIZE, 0, \ "C270", \ C270_MJPEG, \ C270_##SIZE, \ _5FPS, \ C270_EN, \ 192, \ C270_IF_ALT(192), \ } // Logitech Qcam Orbit AF QCAM-200R #define Q200R_VID 0x046d #define Q200R_PID 0x0994 #define Q200R_160x120 1 #define Q200R_176x144 2 #define Q200R_320x240 3 #define Q200R_352x288 4 #define Q200R_640x480 5 #define Q200R_800x600 6 #define Q200R_MJPEG 1 #define Q200R_YUV2 2 #define Q200R_EN 0x81 #define Q200R_MPS 192 #define Q200R_IF_ALT_192 1 #define Q200R_IF_ALT_384 2 #define Q200R_IF_ALT_512 3 #define Q200R_IF_ALT_640 4 #define Q200R_IF_ALT_800 5 #define Q200R_IF_ALT_944 6 #define Q200R_IF_ALT(A) Q200R_IF_ALT_##A #define Q200R_INFO(SIZE) {Q200R_VID, Q200R_PID, _##SIZE, 0, \ "Q200R", \ Q200R_MJPEG, \ Q200R_##SIZE, \ _5FPS, \ Q200R_EN, \ 192, \ Q200R_IF_ALT(192), \ } //LifeCam VX700 / VX500 #define VX700_VID 0x045e #define VX700_PID 0x074a #define VX700_160x120 5 #define VX700_176x144 4 #define VX700_320x240 3 #define VX700_352x288 2 #define VX700_640x480 1 #define VX700_MJPEG 1 #define VX700_EN 0x81 #define VX700_MPS 128 #define VX700_IF_ALT_128 1 #define VX700_IF_ALT(A) VX700_IF_ALT_##A #define VX700_INFO(SIZE) {VX700_VID, VX700_PID, _##SIZE, 0, \ "VX700", \ VX700_MJPEG, \ VX700_##SIZE, \ _5FPS, \ VX700_EN, \ 128, \ VX700_IF_ALT(128), \ } //Sonix USB 2.0 Camera #define SONIX_160x120 5 #define SONIX_176x144 4 #define SONIX_320x240 3 #define SONIX_352x288 2 #define SONIX_640x480 1 #define SONIX_IF_ALT_128 1 #define SONIX_IF_ALT_256 2 #define SONIX_IF_ALT_512 3 #define SONIX_IF_ALT_600 4 #define SONIX_IF_ALT_800 5 #define SONIX_IF_ALT_956 6 #define SONIX_IF_ALT(A) SONIX_IF_ALT_##A #define SONIX_INFO(SIZE) {0x0c45, 0x62c0, _##SIZE, 0, \ "SONIX", \ 1, \ SONIX_##SIZE, \ _5FPS, \ 0x81, \ 128, \ SONIX_IF_ALT(128), \ } static const CamInfo CamInfoList[] = { // Logitech C270 C270_INFO(160x120), C270_INFO(176x144), C270_INFO(320x176), C270_INFO(320x240), C270_INFO(352x288), C270_INFO(432x240), C270_INFO(640x480), C270_INFO(544x288), C270_INFO(640x360), C270_INFO(752x416), C270_INFO(800x448), C270_INFO(800x600), // Logitech C210 C210_INFO(160x120), C210_INFO(176x144), C210_INFO(320x176), C210_INFO(320x240), C210_INFO(352x288), C210_INFO(432x240), C210_INFO(640x480), C210_INFO(544x288), C210_INFO(640x360), C210_INFO(752x416), C210_INFO(800x448), C210_INFO(800x600), // Logitech Qcam Orbit AF QCAM-200R Q200R_INFO(160x120), Q200R_INFO(176x144), Q200R_INFO(320x240), Q200R_INFO(352x288), Q200R_INFO(640x480), Q200R_INFO(800x600), // LifeCam VX700 VX700_INFO(160x120), VX700_INFO(176x144), VX700_INFO(320x240), VX700_INFO(352x288), VX700_INFO(640x480), // Sonix USB 2.0 Camera SONIX_INFO(160x120), SONIX_INFO(176x144), SONIX_INFO(320x240), SONIX_INFO(352x288), SONIX_INFO(640x480), // Not found {0,0,0,0}, }; CamInfo* getCamInfoList() { return const_cast<CamInfo*>(CamInfoList); }