bglib-1.0.0.0: Implementation of the BGAPI serial protocol

Safe HaskellNone
LanguageHaskell2010

BGLib.Types

Documentation

type Int8 = Int8 Source #

newtype UInt8Array Source #

Constructors

UInt8Array 
Instances
Show UInt8Array Source # 
Instance details

Defined in BGLib.Types

IsString UInt8Array Source # 
Instance details

Defined in BGLib.Types

Binary UInt8Array Source # 
Instance details

Defined in BGLib.Types

newtype BdAddr Source #

Constructors

BdAddr 
Instances
Show BdAddr Source # 
Instance details

Defined in BGLib.Types

Binary BdAddr Source # 
Instance details

Defined in BGLib.Types

Methods

put :: BdAddr -> Put #

get :: Get BdAddr #

putList :: [BdAddr] -> Put #

data BgPayload Source #

Instances
Show BgPayload Source # 
Instance details

Defined in BGLib.Types

data BgPacket Source #

Instances
Show BgPacket Source # 
Instance details

Defined in BGLib.Types

Binary BgPacket Source # 
Instance details

Defined in BGLib.Types

Methods

put :: BgPacket -> Put #

get :: Get BgPacket #

putList :: [BgPacket] -> Put #

class HasSerialPort env where Source #

Methods

getSerialPort :: env -> SerialPort Source #

class HasBGChan env where Source #

Methods

getBGChan :: env -> TChan BgPacket Source #

class HasDebug env where Source #

Methods

getDebug :: env -> Bool Source #

askDebug :: (MonadReader env m, HasDebug env) => m Bool Source #

data BGResult Source #

Instances
Show BGResult Source # 
Instance details

Defined in BGLib.Types

Binary BGResult Source # 
Instance details

Defined in BGLib.Types

Methods

put :: BGResult -> Put #

get :: Get BGResult #

putList :: [BGResult] -> Put #