TOP Contributors

  1. MIKROE (2656 codes)
  2. Alcides Ramos (353 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 (136820 times)
  2. FAT32 Library (69984 times)
  3. Network Ethernet Library (55960 times)
  4. USB Device Library (46280 times)
  5. Network WiFi Library (41893 times)
  6. FT800 Library (41203 times)
  7. GSM click (28996 times)
  8. PID Library (26420 times)
  9. mikroSDK (26377 times)
  10. microSD click (25383 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: 2444 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

C RTOS for mP and mB (P18 and P24)

10

CRTOS stands for Cooperative Real Time Operating System; designed for and written specifically in mP/mB from mikroElektronika. The system uses cooperative as opposed to pre-emptive scheduling which means that the application code you write has to voluntarily release back to the operating system at appropriate times.

[Learn More]

USB_OA

26

USB libraries (HID, CDC, MSD), original architecture: only 1 kind of USB device, no composite device. -- for P18's or P24's with USB -- . Additionally: the CDC_Twin library (P18 only), which creates 2 virtual COM (CDC) devices.

[Learn More]

TFTP HTTP pic based file server for FAT32 sd/mmc cards

5

This is a small TFTP fileserver, using an mmc/sd card for file storage. "Small" means the software does not have an error/retry/timeout mechanism. Also file download via HTTP is implemented (URL = 192.168.123.90). This project uses the Ethernet libraries v3.5 by Yo2Lio.

[Learn More]