TOP Contributors

  1. MIKROE (2654 codes)
  2. Alcides Ramos (352 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 (136749 times)
  2. FAT32 Library (69954 times)
  3. Network Ethernet Library (55942 times)
  4. USB Device Library (46267 times)
  5. Network WiFi Library (41888 times)
  6. FT800 Library (41181 times)
  7. GSM click (28986 times)
  8. PID Library (26414 times)
  9. mikroSDK (26367 times)
  10. microSD click (25377 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

Wifi Plus click HTTP Client

0

With this example one can load an internet page from an HTTP server. At this moment the remote IP address is fixed in the code and it loads the default file from the server. All data received from the HTTP server is sent to Uart1 where it can be picked up by a uart program to display or to save to a file.

[Learn More]

Uart_buffered

8

Uart Receiver routine(s) with circular receive buffer, the receiver part is interrupt driven.

[Learn More]

RTOS for PIC32

5

Pre-emptive RTOS for PIC32, written (almost entirely) in mikroPascal/mikroBasic/mikroC. The way of working is very easy to understand. The functionality is kept very limited with respect to other RTosses, to keep it simple. The library code only consists of 1 .mpas file...

[Learn More]