-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Haskell bindings to HIDAPI -- @package hidapi @version 0.1.3 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 write :: Device -> 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 Typeable HIDAPIException instance Show DeviceInfoInternal instance Show DeviceInfo instance Generic DeviceInfo instance Data HIDAPIException instance Generic HIDAPIException instance Datatype D1DeviceInfo instance Constructor C1_0DeviceInfo instance Selector S1_0_0DeviceInfo instance Selector S1_0_1DeviceInfo instance Selector S1_0_2DeviceInfo instance Selector S1_0_3DeviceInfo instance Selector S1_0_4DeviceInfo instance Selector S1_0_5DeviceInfo instance Selector S1_0_6DeviceInfo instance Selector S1_0_7DeviceInfo instance Selector S1_0_8DeviceInfo instance Selector S1_0_9DeviceInfo instance Datatype D1HIDAPIException instance Constructor C1_0HIDAPIException instance NFData HIDAPIException instance Exception HIDAPIException instance Show HIDAPIException instance NFData DeviceInfo instance Storable DeviceInfoInternal