TOP Contributors

  1. MIKROE (2653 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 (136659 times)
  2. FAT32 Library (69893 times)
  3. Network Ethernet Library (55915 times)
  4. USB Device Library (46248 times)
  5. Network WiFi Library (41881 times)
  6. FT800 Library (41124 times)
  7. GSM click (28970 times)
  8. PID Library (26405 times)
  9. mikroSDK (26342 times)
  10. microSD click (25349 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: 2437 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

Tool: Timer-Prescaler

5

Tool (excel workbook) to help with the choice of the prescaler and settings of a timer. For PIC16/18, PIC24, dsPIC33 and PIC32.

[Learn More]

Memory

6

Libaries are:
- "MemManager_": simple memory manager making dynamic variables possible in mP (procedures GetMem and FreeMem available), and
- "Eepromvariable": Procedures/functions that write and read the content of any type of variable to/from the internal PIC Eeprom.

[Learn More]

PS2 Keyboard to USB keyboard convertor

5

Makes it possible to use a PS2 keyboard on an USB connector on the PC. Uses the PS2 Keyboard library and the USB HID Keyboard library.

[Learn More]