Need help with USBDeviceSwift?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

Arti3DPlayer
170 Stars 42 Forks MIT License 37 Commits 7 Opened issues

Description

wrapper for IOKit.usb and IOKit.hid written on pure Swift that allows you convenient work with USB devices

Services available

!
?

Need anything else?

Contributors list

# 240,768
Django
usb-dev...
serial-...
macOS
21 commits
# 199,026
serial-...
Vue.js
time-ma...
C
2 commits
# 3,634
Python
homebri...
battery...
plex
1 commit
# 47,200
Swift
Objecti...
macOS
osx
1 commit
# 85,654
HTML
Django
usb-dev...
serial-...
1 commit
# 130,889
Objecti...
bugsnag
React N...
debuggi...
1 commit

USBDeviceSwift

USBDeviceSwift - is a wrapper for

IOKit.usb
and
IOKit.hid
and
IOKit.serial
written on pure Swift that allows you convenient work with USB devices.

Working with

IOKit.usb
and
IOKit.hid
and
IOKit.serial
on Swift is a pain. A lot of not converted C code, pointers make your life harder. This library provides basic connect/disconnect events, converted functions to send and receive requests and examples.

Getting Started

Requirements

  • Mac OS X 10.10
  • Xcode 8+
  • Swift 4

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects.

Specify USBDeviceSwift into your project's

Podfile
:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'testusb' do

Comment the next line if you're not using Swift and don't want to use dynamic frameworks

use_frameworks!

Pods for testusb

pod 'USBDeviceSwift'

end

Then run the following command:

$ pod install

Swift Package Manager

Swift Package Manager

import PackageDescription

let package = Package( name: "Example project", dependencies: [ .Package(url: "https://github.com/Arti3DPlayer/USBDeviceSwift.git", majorVersion: 1), ] )

Examples

You will find all examples on Wiki page here

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Change Log

This can be found in the CHANGELOG.md file.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.