Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
Instances
newtype UInt8Array Source #
Instances
Eq UInt8Array Source # | |
Defined in BGLib.Types (==) :: UInt8Array -> UInt8Array -> Bool # (/=) :: UInt8Array -> UInt8Array -> Bool # | |
Ord UInt8Array Source # | |
Defined in BGLib.Types compare :: UInt8Array -> UInt8Array -> Ordering # (<) :: UInt8Array -> UInt8Array -> Bool # (<=) :: UInt8Array -> UInt8Array -> Bool # (>) :: UInt8Array -> UInt8Array -> Bool # (>=) :: UInt8Array -> UInt8Array -> Bool # max :: UInt8Array -> UInt8Array -> UInt8Array # min :: UInt8Array -> UInt8Array -> UInt8Array # | |
Show UInt8Array Source # | |
Defined in BGLib.Types showsPrec :: Int -> UInt8Array -> ShowS # show :: UInt8Array -> String # showList :: [UInt8Array] -> ShowS # | |
IsString UInt8Array Source # | |
Defined in BGLib.Types fromString :: String -> UInt8Array # | |
Binary UInt8Array Source # | |
Defined in BGLib.Types |
toUInt8Array :: ByteString -> UInt8Array Source #
data BgMessageType Source #
Instances
Bounded BgMessageType Source # | |
Defined in BGLib.Types | |
Enum BgMessageType Source # | |
Defined in BGLib.Types succ :: BgMessageType -> BgMessageType # pred :: BgMessageType -> BgMessageType # toEnum :: Int -> BgMessageType # fromEnum :: BgMessageType -> Int # enumFrom :: BgMessageType -> [BgMessageType] # enumFromThen :: BgMessageType -> BgMessageType -> [BgMessageType] # enumFromTo :: BgMessageType -> BgMessageType -> [BgMessageType] # enumFromThenTo :: BgMessageType -> BgMessageType -> BgMessageType -> [BgMessageType] # | |
Eq BgMessageType Source # | |
Defined in BGLib.Types (==) :: BgMessageType -> BgMessageType -> Bool # (/=) :: BgMessageType -> BgMessageType -> Bool # | |
Show BgMessageType Source # | |
Defined in BGLib.Types showsPrec :: Int -> BgMessageType -> ShowS # show :: BgMessageType -> String # showList :: [BgMessageType] -> ShowS # |
data BgTecnologyType Source #
Instances
Bounded BgTecnologyType Source # | |
Defined in BGLib.Types | |
Enum BgTecnologyType Source # | |
Defined in BGLib.Types succ :: BgTecnologyType -> BgTecnologyType # pred :: BgTecnologyType -> BgTecnologyType # toEnum :: Int -> BgTecnologyType # fromEnum :: BgTecnologyType -> Int # enumFrom :: BgTecnologyType -> [BgTecnologyType] # enumFromThen :: BgTecnologyType -> BgTecnologyType -> [BgTecnologyType] # enumFromTo :: BgTecnologyType -> BgTecnologyType -> [BgTecnologyType] # enumFromThenTo :: BgTecnologyType -> BgTecnologyType -> BgTecnologyType -> [BgTecnologyType] # | |
Eq BgTecnologyType Source # | |
Defined in BGLib.Types (==) :: BgTecnologyType -> BgTecnologyType -> Bool # (/=) :: BgTecnologyType -> BgTecnologyType -> Bool # | |
Show BgTecnologyType Source # | |
Defined in BGLib.Types showsPrec :: Int -> BgTecnologyType -> ShowS # show :: BgTecnologyType -> String # showList :: [BgTecnologyType] -> ShowS # |
data BgCommandClass Source #
BgClsSystem | |
BgClsPersistentStore | |
BgClsAttributeDatabase | |
BgClsConnection | |
BgClsAttributeClient | |
BgClsSecurityManager | |
BgClsGenericAccessProfile | |
BgClsHardware | |
BgClsTest | |
BgClsDfu |
Instances
Bounded BgCommandClass Source # | |
Defined in BGLib.Types | |
Enum BgCommandClass Source # | |
Defined in BGLib.Types succ :: BgCommandClass -> BgCommandClass # pred :: BgCommandClass -> BgCommandClass # toEnum :: Int -> BgCommandClass # fromEnum :: BgCommandClass -> Int # enumFrom :: BgCommandClass -> [BgCommandClass] # enumFromThen :: BgCommandClass -> BgCommandClass -> [BgCommandClass] # enumFromTo :: BgCommandClass -> BgCommandClass -> [BgCommandClass] # enumFromThenTo :: BgCommandClass -> BgCommandClass -> BgCommandClass -> [BgCommandClass] # | |
Eq BgCommandClass Source # | |
Defined in BGLib.Types (==) :: BgCommandClass -> BgCommandClass -> Bool # (/=) :: BgCommandClass -> BgCommandClass -> Bool # | |
Show BgCommandClass Source # | |
Defined in BGLib.Types showsPrec :: Int -> BgCommandClass -> ShowS # show :: BgCommandClass -> String # showList :: [BgCommandClass] -> ShowS # |
data BgPacketHeader Source #
Instances
Eq BgPacketHeader Source # | |
Defined in BGLib.Types (==) :: BgPacketHeader -> BgPacketHeader -> Bool # (/=) :: BgPacketHeader -> BgPacketHeader -> Bool # | |
Show BgPacketHeader Source # | |
Defined in BGLib.Types showsPrec :: Int -> BgPacketHeader -> ShowS # show :: BgPacketHeader -> String # showList :: [BgPacketHeader] -> ShowS # | |
Binary BgPacketHeader Source # | |
Defined in BGLib.Types |
bgHeaderMatches :: BgMessageType -> BgTecnologyType -> BgCommandClass -> UInt8 -> BgPacketHeader -> Bool Source #
fromBgPayload :: BgPayload -> ByteString Source #
toBgPayload :: ByteString -> BgPayload Source #
class HasSerialPort env where Source #
getSerialPort :: env -> SerialPort Source #
askSerialPort :: (MonadReader env m, HasSerialPort env) => m SerialPort Source #
askDupBGChan :: (MonadIO m, MonadReader env m, HasBGChan env) => m (TChan BgPacket) Source #
askCloneBGChan :: (MonadIO m, MonadReader env m, HasBGChan env) => m (TChan BgPacket) Source #
packetBlock :: (MonadIO m, MonadReader env m, HasBGChan env) => m a -> m a Source #
packetBlock_ :: (MonadIO m, MonadReader env m, HasBGChan env) => m a -> m () Source #
packetBlock' :: (MonadIO m, MonadReader env m, HasBGChan env) => m a -> m a Source #
packetBlock'_ :: (MonadIO m, MonadReader env m, HasBGChan env) => m a -> m () Source #
bsShowHex :: ByteString -> String Source #
data RebootMode Source #
Instances
Enum RebootMode Source # | |
Defined in BGLib.Types succ :: RebootMode -> RebootMode # pred :: RebootMode -> RebootMode # toEnum :: Int -> RebootMode # fromEnum :: RebootMode -> Int # enumFrom :: RebootMode -> [RebootMode] # enumFromThen :: RebootMode -> RebootMode -> [RebootMode] # enumFromTo :: RebootMode -> RebootMode -> [RebootMode] # enumFromThenTo :: RebootMode -> RebootMode -> RebootMode -> [RebootMode] # | |
Eq RebootMode Source # | |
Defined in BGLib.Types (==) :: RebootMode -> RebootMode -> Bool # (/=) :: RebootMode -> RebootMode -> Bool # | |
Show RebootMode Source # | |
Defined in BGLib.Types showsPrec :: Int -> RebootMode -> ShowS # show :: RebootMode -> String # showList :: [RebootMode] -> ShowS # | |
Binary RebootMode Source # | |
Defined in BGLib.Types |
data AttributeValueType Source #
Instances
data AttributeChangeReason Source #
Instances
fASIndicate :: UInt8 Source #
fCConnected :: UInt8 Source #
fCEncrypted :: UInt8 Source #
fCCompleted :: UInt8 Source #
data GapAdvType Source #
GATNone | |
GATFlags | |
GATServices16bitMore | |
GATServices16bitAll | |
GATServices32bitMore | |
GATServices32bitAll | |
GATServices128bitMore | |
GATServices128bitAll | |
GATLocalnameShort | |
GATLocalnameComplete | |
GATTxPower |
Instances
Enum GapAdvType Source # | |
Defined in BGLib.Types succ :: GapAdvType -> GapAdvType # pred :: GapAdvType -> GapAdvType # toEnum :: Int -> GapAdvType # fromEnum :: GapAdvType -> Int # enumFrom :: GapAdvType -> [GapAdvType] # enumFromThen :: GapAdvType -> GapAdvType -> [GapAdvType] # enumFromTo :: GapAdvType -> GapAdvType -> [GapAdvType] # enumFromThenTo :: GapAdvType -> GapAdvType -> GapAdvType -> [GapAdvType] # | |
Eq GapAdvType Source # | |
Defined in BGLib.Types (==) :: GapAdvType -> GapAdvType -> Bool # (/=) :: GapAdvType -> GapAdvType -> Bool # | |
Show GapAdvType Source # | |
Defined in BGLib.Types showsPrec :: Int -> GapAdvType -> ShowS # show :: GapAdvType -> String # showList :: [GapAdvType] -> ShowS # | |
Binary GapAdvType Source # | |
Defined in BGLib.Types |
data GapAdvPolicy Source #
Instances
Enum GapAdvPolicy Source # | |
Defined in BGLib.Types succ :: GapAdvPolicy -> GapAdvPolicy # pred :: GapAdvPolicy -> GapAdvPolicy # toEnum :: Int -> GapAdvPolicy # fromEnum :: GapAdvPolicy -> Int # enumFrom :: GapAdvPolicy -> [GapAdvPolicy] # enumFromThen :: GapAdvPolicy -> GapAdvPolicy -> [GapAdvPolicy] # enumFromTo :: GapAdvPolicy -> GapAdvPolicy -> [GapAdvPolicy] # enumFromThenTo :: GapAdvPolicy -> GapAdvPolicy -> GapAdvPolicy -> [GapAdvPolicy] # | |
Eq GapAdvPolicy Source # | |
Defined in BGLib.Types (==) :: GapAdvPolicy -> GapAdvPolicy -> Bool # (/=) :: GapAdvPolicy -> GapAdvPolicy -> Bool # | |
Show GapAdvPolicy Source # | |
Defined in BGLib.Types showsPrec :: Int -> GapAdvPolicy -> ShowS # show :: GapAdvPolicy -> String # showList :: [GapAdvPolicy] -> ShowS # | |
Binary GapAdvPolicy Source # | |
Defined in BGLib.Types |
data GapAddressType Source #
Instances
Enum GapAddressType Source # | |
Defined in BGLib.Types succ :: GapAddressType -> GapAddressType # pred :: GapAddressType -> GapAddressType # toEnum :: Int -> GapAddressType # fromEnum :: GapAddressType -> Int # enumFrom :: GapAddressType -> [GapAddressType] # enumFromThen :: GapAddressType -> GapAddressType -> [GapAddressType] # enumFromTo :: GapAddressType -> GapAddressType -> [GapAddressType] # enumFromThenTo :: GapAddressType -> GapAddressType -> GapAddressType -> [GapAddressType] # | |
Eq GapAddressType Source # | |
Defined in BGLib.Types (==) :: GapAddressType -> GapAddressType -> Bool # (/=) :: GapAddressType -> GapAddressType -> Bool # | |
Show GapAddressType Source # | |
Defined in BGLib.Types showsPrec :: Int -> GapAddressType -> ShowS # show :: GapAddressType -> String # showList :: [GapAddressType] -> ShowS # | |
Binary GapAddressType Source # | |
Defined in BGLib.Types |
data GapConnectableMode Source #
Instances
data GapDiscoverableMode Source #
GDMNonDiscoverable | |
GDMLimitedDiscoverable | |
GDMGeneralDiscoverable | |
GDMBroadcast | |
GDMUserData | |
GDMEnhancedBroadcasting |
Instances
data GapDiscoverMode Source #
Instances
Enum GapDiscoverMode Source # | |
Defined in BGLib.Types succ :: GapDiscoverMode -> GapDiscoverMode # pred :: GapDiscoverMode -> GapDiscoverMode # toEnum :: Int -> GapDiscoverMode # fromEnum :: GapDiscoverMode -> Int # enumFrom :: GapDiscoverMode -> [GapDiscoverMode] # enumFromThen :: GapDiscoverMode -> GapDiscoverMode -> [GapDiscoverMode] # enumFromTo :: GapDiscoverMode -> GapDiscoverMode -> [GapDiscoverMode] # enumFromThenTo :: GapDiscoverMode -> GapDiscoverMode -> GapDiscoverMode -> [GapDiscoverMode] # | |
Eq GapDiscoverMode Source # | |
Defined in BGLib.Types (==) :: GapDiscoverMode -> GapDiscoverMode -> Bool # (/=) :: GapDiscoverMode -> GapDiscoverMode -> Bool # | |
Show GapDiscoverMode Source # | |
Defined in BGLib.Types showsPrec :: Int -> GapDiscoverMode -> ShowS # show :: GapDiscoverMode -> String # showList :: [GapDiscoverMode] -> ShowS # | |
Binary GapDiscoverMode Source # | |
Defined in BGLib.Types |
data GSPScanHeaderFlag Source #
GSHFAdvInd | |
GSHFAdvDirectInd | |
GSHFAdvNonConnInd | |
GSHFScanReq | |
GSHFScanRsp | |
GSHFConnectReq | |
GSHFAdvDiscoverInd |
Instances
data GapScanPolicy Source #
Instances
Enum GapScanPolicy Source # | |
Defined in BGLib.Types succ :: GapScanPolicy -> GapScanPolicy # pred :: GapScanPolicy -> GapScanPolicy # toEnum :: Int -> GapScanPolicy # fromEnum :: GapScanPolicy -> Int # enumFrom :: GapScanPolicy -> [GapScanPolicy] # enumFromThen :: GapScanPolicy -> GapScanPolicy -> [GapScanPolicy] # enumFromTo :: GapScanPolicy -> GapScanPolicy -> [GapScanPolicy] # enumFromThenTo :: GapScanPolicy -> GapScanPolicy -> GapScanPolicy -> [GapScanPolicy] # | |
Eq GapScanPolicy Source # | |
Defined in BGLib.Types (==) :: GapScanPolicy -> GapScanPolicy -> Bool # (/=) :: GapScanPolicy -> GapScanPolicy -> Bool # | |
Show GapScanPolicy Source # | |
Defined in BGLib.Types showsPrec :: Int -> GapScanPolicy -> ShowS # show :: GapScanPolicy -> String # showList :: [GapScanPolicy] -> ShowS # | |
Binary GapScanPolicy Source # | |
Defined in BGLib.Types |
fBKEDIVRAND :: UInt8 Source #
fBKMasterId :: UInt8 Source #
data SMIOCapabilities Source #
Instances
Enum SMIOCapabilities Source # | |
Defined in BGLib.Types succ :: SMIOCapabilities -> SMIOCapabilities # pred :: SMIOCapabilities -> SMIOCapabilities # toEnum :: Int -> SMIOCapabilities # fromEnum :: SMIOCapabilities -> Int # enumFrom :: SMIOCapabilities -> [SMIOCapabilities] # enumFromThen :: SMIOCapabilities -> SMIOCapabilities -> [SMIOCapabilities] # enumFromTo :: SMIOCapabilities -> SMIOCapabilities -> [SMIOCapabilities] # enumFromThenTo :: SMIOCapabilities -> SMIOCapabilities -> SMIOCapabilities -> [SMIOCapabilities] # | |
Eq SMIOCapabilities Source # | |
Defined in BGLib.Types (==) :: SMIOCapabilities -> SMIOCapabilities -> Bool # (/=) :: SMIOCapabilities -> SMIOCapabilities -> Bool # | |
Show SMIOCapabilities Source # | |
Defined in BGLib.Types showsPrec :: Int -> SMIOCapabilities -> ShowS # show :: SMIOCapabilities -> String # showList :: [SMIOCapabilities] -> ShowS # | |
Binary SMIOCapabilities Source # | |
Defined in BGLib.Types |
data SystemEndpoint Source #
Instances
Enum SystemEndpoint Source # | |
Defined in BGLib.Types succ :: SystemEndpoint -> SystemEndpoint # pred :: SystemEndpoint -> SystemEndpoint # toEnum :: Int -> SystemEndpoint # fromEnum :: SystemEndpoint -> Int # enumFrom :: SystemEndpoint -> [SystemEndpoint] # enumFromThen :: SystemEndpoint -> SystemEndpoint -> [SystemEndpoint] # enumFromTo :: SystemEndpoint -> SystemEndpoint -> [SystemEndpoint] # enumFromThenTo :: SystemEndpoint -> SystemEndpoint -> SystemEndpoint -> [SystemEndpoint] # | |
Eq SystemEndpoint Source # | |
Defined in BGLib.Types (==) :: SystemEndpoint -> SystemEndpoint -> Bool # (/=) :: SystemEndpoint -> SystemEndpoint -> Bool # | |
Show SystemEndpoint Source # | |
Defined in BGLib.Types showsPrec :: Int -> SystemEndpoint -> ShowS # show :: SystemEndpoint -> String # showList :: [SystemEndpoint] -> ShowS # | |
Binary SystemEndpoint Source # | |
Defined in BGLib.Types |