TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 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 (136537 times)
  2. FAT32 Library (69732 times)
  3. Network Ethernet Library (55841 times)
  4. USB Device Library (46174 times)
  5. Network WiFi Library (41801 times)
  6. FT800 Library (40987 times)
  7. GSM click (28921 times)
  8. PID Library (26384 times)
  9. mikroSDK (26278 times)
  10. microSD click (25298 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 Device Library

Rating:

5

Author: MIKROE

Last Updated: 2018-07-01

Package Version: 1.2.1.0

Category: USB

Downloaded: 46174 times

Followed by: 25 users

License: MIT license  

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

Abuse Reported

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

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

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

  • Information
  • Comments (84)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Library Blog

USB Device Library presents the user set of functions required to handle USB device peripheral. A embedded user application program uses API defined in this library to access USB device 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 internaly handles standard device requests, leaving the user to process other requests.

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

HID (Human Interface Devices) class with mouse functionality 
MSC BOT (Mass Storage - Bulk Only Transport) class. 
CDC (Communications Device Class) class.

USB Device Library features following functions:

USBDev_Init
USBDev_IntHandler
USBDev_GetDeviceState
USBDev_StallEndpoint
USBDev_CtrlStall
USBDev_ClearStallEndpoint
USBDev_RegisterGetDescriptorHandler
USBDev_RegisterEventHandler
USBDev_RegisterSetupReqHandler
USBDev_RegisterDataReceivedHandler
USBDev_RegisterDataSentHandler
USBDev_ConvertStringToDescriptor
USBDev_SendPacket
USBDev_SetReceiveBuffer
USBDev_CtrlDataAck
USBDev_CtrlSendData

Release notes:

Version 1.2.1.0:

 - CDC class for PIC16F145x added.
 - Examples for PIC16F145x added.

Version 1.2.0.0:

 - ARM TI Tiva MCUs supported.
 - Examples for mikroMedia 5 for Tiva added.
 - PIC16F145x library added.

Version 1.1.0.0:

 - CDC class added
 - Virtual COM port example added
 - Minor bug fixes

USB Icon

USB Icon

USB Icon preview

View full image

ALSO FROM THIS AUTHOR

Tamper 2 click

0

Tamper 2 click contains a levered D2HW-A221D switch by Omron, which outputs signal in both positions - pressed and released.

[Learn More]

NFC 5 click

0

NFC 5 Click is a compact add-on board designed for advanced NFC applications. This board features the ST25R3918, a multipurpose NFC transceiver from STMicroelectronics. This Click board™ is built to cater to the growing needs of the Internet of Things (IoT) ecosystem, providing robust NFC reader functionalities, passive peer-to-peer communication, and card emulation modes with outstanding analog performance. Its notable features include exceptional read range with minimal power output, advanced noise reduction, and compatibility with ISO14443, ISO15693, and NFC Forum Tag types 1, 2, 4, and 5.

[Learn More]

Hall Switch 3 click

0

Hall Switch 3 Click is a compact add-on board representing a magnetic field-activated switch. This board features the NMH1000, a Hall-effect magnetic switch from NXP Semiconductor. It is a low-voltage, low-current, and low-output data rate device with a very small size. The switch is most sensitive to a vertical field passing through the top-bottom surfaces, orthogonal to the plane of the Hall Switch 3 Click board™.

[Learn More]