![]() ![]() This allows you to connect your board to computer and still reading keyboard/mouse on another USB port Example shows how you can have one USB port for CDC device mode and another for HID Host mode.This allows you for example connecting mouse and keyboard at the same time if needed Shows how you can use HID Host on both USB ports, FS and HS at the same time.Examplesįor USB HID Host class, I’ve made 4 examples, which shows how to use HID in different configurations It allows you to use FS, HS or both modes at the same time, if needed.įor detailed implementation for USB HOST HID, check API documentation. USB HID Host class is designed for operating with HID keyboard or HID mouse. One port is for HID, another for MSCĮxamples are available on my Github repository. Shows, how to use USB MSC HOST and USB HID HOST at the same time.Example 2: MSC HOST and HID HOST at the same time.Shows, how to use MSC Host on both USB FS and HS ports at the same time.Examplesįor USB MSC Host class, I’ve made 2 examples, which shows how to use MSC on single USB port or on dual ports. It can read/write to flash memory using FATFS module.įor detailed implementation for USB HOST MSC, check API description.įor detailed explanation on how to use USB with FATFS, check my FATFS library. USB MSC Host class is designed for operating with USB Flash memory based devices. It allows you to use FS, HS or both modes at the same time, if needed.įor detailed description about HOST library, you should look at API description. USB Host library is a main library, to support Host mode of USB. To see all functions, which are common to all USB based libraries, check API description. Settings which can be defined are included below. For USB settings, you will have to make some defines before you will be able to run any example. These are at least defines for library use and GPIO pinouts for USB. Example HID: Read keyboard and mouse at the same time on both USB portsīoth USB types (Host or Device) have some settings in common.Example MSC: You can connect 2 flash drives at a time to make copy/paste files between them.Supports one USB class on both USB FS or HS ports at a time if needed.MSC device for acting like SDCARD reader when SDCARD is connected to SDIO port.CDC device for acting like Virtual COM Port (VCP) to your computer.Supports different USB classes for device mode.HID for reading external keyboard and mouse.MSC host for operating with USB flash memory.Supports different USB classes for host mode.Predefined support for different STM32F4/7xx Discovery boards for easily use.Built on ST’s stack for USB Host/Device.Supports changing USB mode (host/device) on the fly on single USB FS or HS mode.Supports different HOST or DEVICE modes at a time.Supports both USB modes at the same time.HS mode can use external PHY or embedded phy featuring USB HS in FS mode.Read more about new HAL libraries Features Use one USB as device and/or host at the same time (needs switching). ![]() Use one USB as host and another as device and vice-versa.So I designed a library, which allows users to have all these possibilities: The main purpose of library is to support USB FS and HS modes on STM32Fxxx devices at the same time, without any problems. That’s why I’ve made a single library for everything what I support now and which support I will add in future. This USB library is designed in a ways that can easily be used with different modes. ![]()
0 Comments
Leave a Reply. |