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 (136741 times)
  2. FAT32 Library (69952 times)
  3. Network Ethernet Library (55942 times)
  4. USB Device Library (46267 times)
  5. Network WiFi Library (41887 times)
  6. FT800 Library (41173 times)
  7. GSM click (28983 times)
  8. PID Library (26413 times)
  9. mikroSDK (26361 times)
  10. microSD click (25376 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

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]

Tool: Project configuration in text format

10

Tool that shows the project's configuration words content (in a readable format), the MCU type and the MCU clock frequency. This permits to add (part of) the configuration settings in a comment box in your project.<br> For <b>mP</b>, <b>mC</b> and <b>mB</b> for <b>PIC</b>, <b>dsPIC</b> and <b>PIC32</b>. IDE based version (not stand alone).

[Learn More]

Expanders

5

Package with "Expander" librarie(s). For now only 1 library is there: PCF8574(A). The documentation for the (SPI) expanders 74HCT165 (input expander) and 74HCT595 (output expander) is added.

[Learn More]