Skip to content

USB Overview

This document provides an overview of the MikroSDK.USB.Tiny feature, available to NECTO Studio users. The MikroSDK.USB.Tiny system enables developers to implement USB functionality in embedded systems, such as CDC (Communications Device Class), MSC (Mass Storage Class), and HID (Human Interface Device) using the TinyUSB stack. This guide helps developers understand how to manage USB functionality in resource-constrained environments while simplifying USB device development.

Benefits for NECTO Studio Users

  • USB Device Integration: Simplifies the process of integrating USB functionality into embedded applications using the TinyUSB stack.
  • Class Support: Provides support for common USB device classes like CDC (communication), MSC (mass storage), and HID (human interface).
  • Automated Setup: When integrated into NECTO Studio, the library configuration is automatically handled, making it easier to manage USB device setup.
  • Versatile Usage: The library can be used for various USB applications, including serial communication over USB, file storage, and user input devices.

mikroSDK USB API Files

The following files and configurations are required to use the MikroSDK.USB.Tiny feature in your NECTO Studio projects:

  • MikroSDK.USB.Tiny: Provides a collection of functions that allow developers to set up and manage USB functionality for CDC, MSC, and other classes. The core of the USB handling is based on the TinyUSB stack, which is integrated with the mikroSDK.

Key mikroSDK USB Features

1. USB Class Support

  • CDC (Communication Device Class): Allows the implementation of a USB-to-serial interface, enabling serial communication between the device and a host (like a PC).
  • MSC (Mass Storage Class): Implements USB mass storage devices, making it easy to create embedded devices that present themselves as external drives.
  • HID (Human Interface Device): Supports devices such as keyboards, mice, and other input devices that communicate with the host using the HID protocol.

2. TinyUSB Integration

  • TinyUSB Stack: Built on top of the lightweight TinyUSB stack, which ensures low resource consumption and high efficiency for USB operations, even on resource-constrained devices.

3. Easy Integration in NECTO Studio

  • Library Manager Support: The MikroSDK.USB.Tiny feature is fully integrated into NECTO Studio, allowing users to seamlessly add it to their projects through the Library Manager.

How to Use USB in NECTO Studio

  • Make sure to check out USB Code Examples for practical implementations of USB in embedded systems!