Skip to content
/ USBCore Public

This package makes all C libusb functions available in Swift code with camelCasing.

Notifications You must be signed in to change notification settings

Emerah/USBCore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

USBCore

importing this package to your Swift code will make C libusb functions available to your Swift code.

  • add this package as a dependency to your Xcode project
  • add import statement to the top of your file [import USBCore]

This package:

  • Exports all libusb functions renamed from snake_case to camelCase.
  • Exports all libusb types aliased in CamelCase style.
  • Packs all library constants and enum values, renamed in CamelCase, in a public Constants structure.

Platform:

development platform is macOS v14. it should work on earlier versions of macOS >= v12, but tested on v14.

Usage:

you can use the library functions inside your Swift code and it should look and feel natural because all function have been renamed to camelCase.

Required

you must have libusb installed on your system

[brew install libusb]

About

This package makes all C libusb functions available in Swift code with camelCasing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published