TOP Contributors

  1. MIKROE (2652 codes)
  2. Alcides Ramos (351 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136624 times)
  2. FAT32 Library (69827 times)
  3. Network Ethernet Library (55884 times)
  4. USB Device Library (46223 times)
  5. Network WiFi Library (41860 times)
  6. FT800 Library (41076 times)
  7. GSM click (28942 times)
  8. PID Library (26402 times)
  9. mikroSDK (26316 times)
  10. microSD click (25328 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Library

USB HID and MSD Host Library

Rating:

10

Author: dany

Last Updated: 2019-11-17

Package Version: 2.0.0.0

Category: USB

Downloaded: 2435 times

Followed by: 9 users

License: MIT license  

This package contains the USB Host libraries for HID (e.g. Keyboard or Mouse) and MSD (e.g. USB stick)

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "USB HID and MSD Host Library" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "USB HID and MSD Host Library" changes.

Do you want to report abuse regarding "USB HID and MSD Host Library".

  • Information
  • Comments (1)

Library Blog

HID:

This is a library for making an USB host capable of reading and writing packets from/to
USB HID devices.

It has a minimum of features, only reading and writing packets from/to the HID device is implemented. The packet sizes are read from the USB devices. Both High speed and low speed USB is supported. Mouses and keyboards are recognised.

At this moment only a version for PIC24 is available.

MSD:

USB MSD Host library, only for PIC24 for now.

Library for making an USB host capable of reading and writing sectors from/to USB memory sticks (USB drives).
To read/write actual files from/to the USB memory stick you still need e.g. a Fat16 or Fat32 library. The lib software assumes the USB memory stick is powered from an external source.

Tested with 2 brands of USB memory sticks and 1 card reader brand.

* mE Driver: The hardware driver for the Fat32 library of mikroElektronika. It can also still be used for Sd/mmc cards, only the compiler directives at the top have to be correctly chosen.

* mE Example: An example of how to use the USB MSD host library together with the Fat32 Library of mikroElektronika.

----------------------------------------------------------------------------------------------------------------------------------------

2016-02-10: Both libraries (HID and MSD) can handle now devices wity an Endpoint0 size < 64.

----------------------------------------------------------------------------------------------------------------------------------------

2016-02-13: simplified the enumeration process

------------------------------------------------------------------------------------------------------------------------------------
2017-01-04: New, extended version of the library: access to the string descriptors has been added

----------------------------------------------------------------------------------------------------------------------------------------

2019-11-15: Also devices with non 64 byte packets are handled now and also low speed devices are handled correctly. Mouse and keyboard devices are recognised.

 

ALSO FROM THIS AUTHOR

USB HID CDC MSD composite device

5

This project uses all the available types of USB devices in the USB_OA library: HID (application echos chars send by the PC to the PC), CDC (application echos chars send by the PC to the PC), MSD (the contents of an SD/MMC card is presented to the PC as an extra drive).

[Learn More]

Tool: Libraries for PIC/dsPIC/PIC32

5

The tool permits to select MCU's that have a certain set of libraries available. This is important when developing libraries in packages that rely on the existance of other libraries.
For mP, mC and mB, PIC, dsPIC and PIC32.

[Learn More]

OW_Utilities for PIC32

5

This library provides the basic one-wire search ROM and search ALARM routines, e.g. for the DS1820, the DS18S20 and the DS18B20.

[Learn More]