Safe Haskell | None |
---|---|
Language | Haskell2010 |
System.HIDAPI
Documentation
withHIDAPI :: IO a -> IO a Source #
enumerateAll :: IO [DeviceInfo] Source #
openDeviceInfo :: DeviceInfo -> IO Device Source #
readTimeout :: Device -> Int -> Int -> IO ByteString Source #
getFeatureReport :: Device -> ReportID -> ReportLength -> IO FeatureReport Source #
sendFeatureReport :: Device -> ReportID -> ByteString -> IO Int Source #
data HIDAPIException Source #
Constructors
HIDAPIException String String |
Instances
data DeviceInfo Source #
Constructors
DeviceInfo | |
Fields |
Instances
NFData DeviceInfo Source # | |||||
Defined in System.HIDAPI Methods rnf :: DeviceInfo -> () # | |||||
Generic DeviceInfo Source # | |||||
Defined in System.HIDAPI Associated Types
| |||||
Show DeviceInfo Source # | |||||
Defined in System.HIDAPI Methods showsPrec :: Int -> DeviceInfo -> ShowS # show :: DeviceInfo -> String # showList :: [DeviceInfo] -> ShowS # | |||||
type Rep DeviceInfo Source # | |||||
Defined in System.HIDAPI type Rep DeviceInfo = D1 ('MetaData "DeviceInfo" "System.HIDAPI" "hidapi-0.1.8-1tdTtiqXnZkGL6iYkeNPqV" 'False) (C1 ('MetaCons "DeviceInfo" 'PrefixI 'True) (((S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DevicePath) :*: S1 ('MetaSel ('Just "vendorId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VendorID)) :*: (S1 ('MetaSel ('Just "productId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProductID) :*: (S1 ('MetaSel ('Just "serialNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SerialNumber)) :*: S1 ('MetaSel ('Just "releaseNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReleaseNumber)))) :*: ((S1 ('MetaSel ('Just "manufacturerString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String)) :*: S1 ('MetaSel ('Just "productString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String))) :*: (S1 ('MetaSel ('Just "usagePage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word16) :*: (S1 ('MetaSel ('Just "usage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word16) :*: S1 ('MetaSel ('Just "interfaceNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InterfaceNumber)))))) |
type DevicePath = String Source #
type ReleaseNumber = Word16 Source #
type SerialNumber = String Source #
type InterfaceNumber = Int Source #