-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Haskell bindings to HIDAPI -- -- Haskell bindings to the HIDAPI library -- (https://github.com/libusb/hidapi). -- -- Note you need need to have the corresponding low-level library -- installed for your OS, e.g. libudev-dev on Debian/Ubuntu, or just udev -- on distributions that don't split dev libraries. @package hidapi @version 0.1.8 module System.HIDAPI init :: IO () exit :: IO () withHIDAPI :: IO a -> IO a enumerate :: Maybe VendorID -> Maybe ProductID -> IO [DeviceInfo] enumerateAll :: IO [DeviceInfo] open :: VendorID -> ProductID -> Maybe SerialNumber -> IO Device openPath :: DevicePath -> IO Device openDeviceInfo :: DeviceInfo -> IO Device close :: Device -> IO () read :: Device -> Int -> IO ByteString readTimeout :: Device -> Int -> Int -> IO ByteString setBlocking :: Device -> Bool -> IO () write :: Device -> ByteString -> IO Int getFeatureReport :: Device -> ReportID -> ReportLength -> IO FeatureReport sendFeatureReport :: Device -> ReportID -> ByteString -> IO Int getSerialNumberString :: Device -> IO SerialNumber error :: Device -> IO (Maybe String) data HIDAPIException HIDAPIException :: String -> String -> HIDAPIException data Device data DeviceInfo DeviceInfo :: DevicePath -> VendorID -> ProductID -> Maybe SerialNumber -> ReleaseNumber -> Maybe String -> Maybe String -> Word16 -> Word16 -> InterfaceNumber -> DeviceInfo [path] :: DeviceInfo -> DevicePath [vendorId] :: DeviceInfo -> VendorID [productId] :: DeviceInfo -> ProductID [serialNumber] :: DeviceInfo -> Maybe SerialNumber [releaseNumber] :: DeviceInfo -> ReleaseNumber [manufacturerString] :: DeviceInfo -> Maybe String [productString] :: DeviceInfo -> Maybe String [usagePage] :: DeviceInfo -> Word16 [usage] :: DeviceInfo -> Word16 [interfaceNumber] :: DeviceInfo -> InterfaceNumber type DevicePath = String type VendorID = Word16 type ProductID = Word16 type ReleaseNumber = Word16 type SerialNumber = String type InterfaceNumber = Int instance GHC.Show.Show System.HIDAPI.DeviceInfoInternal instance GHC.Generics.Generic System.HIDAPI.DeviceInfo instance GHC.Show.Show System.HIDAPI.DeviceInfo instance GHC.Generics.Generic System.HIDAPI.HIDAPIException instance Data.Data.Data System.HIDAPI.HIDAPIException instance GHC.Show.Show System.HIDAPI.HIDAPIException instance GHC.Exception.Type.Exception System.HIDAPI.HIDAPIException instance Control.DeepSeq.NFData System.HIDAPI.HIDAPIException instance Control.DeepSeq.NFData System.HIDAPI.DeviceInfo