Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arti3dplayer/usbdeviceswift
wrapper for IOKit.usb and IOKit.hid written on pure Swift that allows you convenient work with USB devices
https://github.com/arti3dplayer/usbdeviceswift
cocoa iohid iokit macos osx serial-ports swift usb usb-devices
Last synced: 7 days ago
JSON representation
wrapper for IOKit.usb and IOKit.hid written on pure Swift that allows you convenient work with USB devices
- Host: GitHub
- URL: https://github.com/arti3dplayer/usbdeviceswift
- Owner: Arti3DPlayer
- License: mit
- Created: 2017-06-12T11:48:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-19T14:09:42.000Z (about 1 year ago)
- Last Synced: 2024-04-29T21:44:11.711Z (8 months ago)
- Topics: cocoa, iohid, iokit, macos, osx, serial-ports, swift, usb, usb-devices
- Language: Swift
- Homepage:
- Size: 252 KB
- Stars: 286
- Watchers: 12
- Forks: 54
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Support: Supporting Files/Defaults.xcconfig
Awesome Lists containing this project
README
# 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](https://cocoapods.org/) is a dependency manager for Cocoa projects.
Specify USBDeviceSwift into your project's `Podfile`:
```ruby
# 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:
```bash
$ pod install
```#### Swift Package Manager
[Swift Package Manager](https://swift.org/package-manager/)
```
import PackageDescriptionlet 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](https://github.com/Arti3DPlayer/USBDeviceSwift/wiki)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details
## Change Log
This can be found in the [CHANGELOG.md](CHANGELOG.md) file.