hidapi-0.1.2: Haskell bindings to HIDAPI

Safe HaskellNone

System.HIDAPI

Documentation

init :: IO ()Source

exit :: IO ()Source

withHIDAPI :: IO a -> IO aSource

enumerate :: Maybe VendorID -> Maybe ProductID -> IO [DeviceInfo]Source

close :: Device -> IO ()Source

read :: Device -> Int -> IO ByteStringSource

write :: Device -> ByteString -> IO IntSource

error :: Device -> IO (Maybe String)Source

data HIDAPIException Source

Constructors

HIDAPIException String String 

data DeviceInfo Source

Constructors

DeviceInfo 

Instances

type DevicePath = StringSource

type VendorID = Word16Source

type ProductID = Word16Source

type ReleaseNumber = Word16Source

type SerialNumber = StringSource