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 (136638 times)
  2. FAT32 Library (69846 times)
  3. Network Ethernet Library (55896 times)
  4. USB Device Library (46230 times)
  5. Network WiFi Library (41868 times)
  6. FT800 Library (41091 times)
  7. GSM click (28947 times)
  8. PID Library (26402 times)
  9. mikroSDK (26320 times)
  10. microSD click (25329 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 Host Library

Rating:

5

Author: MIKROE

Last Updated: 2015-03-13

Package Version: 1.1.0.0

Category: USB

Downloaded: 19146 times

Followed by: 12 users

License: MIT license  

USB Host Library presents the user set of functions required to handle USB host module. A embedded user application program uses API defined in this library to access USB host peripheral.

No Abuse Reported

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

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

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

  • Information
  • Comments (33)

Library Blog

USB Host Library presents the user set of functions required to handle USB host module. A embedded user application program uses API defined in this library to access USB host peripheral. The library has set of functions implemented within library and also uses set of callback functions which will be implemented by application designer outside of the library. Library internally handles device enumeration, leaving the user to process other requests.

As example of use of this library, following USB host classes are implemented:

  • HID (Human Interface Devices) class.
  • MSC BOT (Mass Storage - Bulk Only Transport) class. 

USB Host Library features following functions:


USBHost_Init
USBHost_Disable
USBHost_IntHandler
USBHost_InitEp
USBHost_Main
USBHost_GetDeviceSpeed
USBHost_GetFrameNumber
USBHost_GetReceivedSize
USBHost_GetTransactionStatus
USBHost_GetEpDescriptor
USBHost_GetInterfaceDescriptor
USBHost_GetConfigDescriptor
USBHost_GetDeviceDescriptor
USBHost_Receive
USBHost_Send
USBHost_RegisterClassHandler
USBHost_RegisterClassRequestsHandler
USBHost_RegisterInterfaceInitHandler
USBHost_RegisterDeviceEventHandler
USBHost_GetEpMaxPacketSize
USBHost_ControlTransfer
USBHost_ReqSetConfiguration
USBHost_ReqSetConfiguration
USBHost_ReqSetAddress
USBHost_ReqSetAddress
USBHost_ReqSetInterface
USBHost_ReqSetFeature
USBHost_ReqSetDescriptor
USBHost_ReqGetStatus
USBHost_ReqGetInterface
USBHost_ReqGetDescriptor
USBHost_ReqGetConfiguration
USBHost_ReqClearFeature

Release notes:

Version 1.1.0.0:   

 - ARM TI Tiva MCUs supported.

 - Examples for mikroMedia 5 for Tiva added.

USB Icon

USB Icon

USB Icon preview

View full image

ALSO FROM THIS AUTHOR

GPS 5 click

0

GPS 5 Click is a compact add-on board that provides users with positioning, navigation, and timing services. This board features the M20050-1, a compact GPS module receiver using the MediaTek MT3333 flash chip, providing a complete GNSS receiver for optimum performance from Antenova. The receiver tracks 3 GNSS constellations concurrently (GPS+Galileo+GLONASS or GPS+Beidou) to considerably enhance location and TTFF (Time-to-first-fix) and has configurable low power modes operating from a 3.3V power supply. In addition to the possibility of using an external antenna, backup power, and various visual indicators, the M20050-1 also has an accurate 0.5ppm TXCO ensuring short TTFF alongside multi-path algorithms, which improves position accuracy in inner-city environments.

[Learn More]

DC Motor 21 click

0

DC Motor 21 Click is a compact add-on board that contains a brushed DC motor driver. This board features the A3910, a DC motor driver designed for low voltage power applications from Allegro Microsystems. It is controlled via several GPIO pins and has a wide operating voltage range with an output current capacity of 500mA. In addition to the possibility to be used in the full-bridge configuration to drive a single bidirectional DC motor, it can also be used as a dual half-bridge to drive dual DC motors.

[Learn More]

eINK 2.00 inch display

0

eINK click is an adapter Click boardâ„¢, used to interface a compatible eINK display with the host MCU.

[Learn More]