hocd-0.1.0.0: OpenOCD Haskell interface
Safe HaskellSafe-Inferred
LanguageHaskell2010

HOCD.Command

Documentation

class Command req where Source #

Minimal complete definition

reply

Associated Types

type Reply req :: Type Source #

Methods

request :: req -> ByteString Source #

default request :: Show req => req -> ByteString Source #

reply :: req -> ByteString -> Either OCDError (Reply req) Source #

Instances

Instances details
Command Halt Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply Halt Source #

(Command a, Show a) => Command (Capture a) Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply (Capture a) Source #

(FiniteBits a, Integral a) => Command (ReadMemory a) Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply (ReadMemory a) Source #

(FiniteBits a, Integral a, PrintfArg a) => Command (WriteMemory a) Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply (WriteMemory a) Source #

data Halt Source #

Constructors

Halt 

Instances

Instances details
Show Halt Source # 
Instance details

Defined in HOCD.Command

Methods

showsPrec :: Int -> Halt -> ShowS #

show :: Halt -> String #

showList :: [Halt] -> ShowS #

Command Halt Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply Halt Source #

type Reply Halt Source # 
Instance details

Defined in HOCD.Command

data Capture a Source #

Constructors

Capture a 

Instances

Instances details
Show a => Show (Capture a) Source # 
Instance details

Defined in HOCD.Command

Methods

showsPrec :: Int -> Capture a -> ShowS #

show :: Capture a -> String #

showList :: [Capture a] -> ShowS #

(Command a, Show a) => Command (Capture a) Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply (Capture a) Source #

type Reply (Capture a) Source # 
Instance details

Defined in HOCD.Command

data ReadMemory a Source #

Instances

Instances details
(FiniteBits a, Num a) => Show (ReadMemory a) Source # 
Instance details

Defined in HOCD.Command

(FiniteBits a, Integral a) => Command (ReadMemory a) Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply (ReadMemory a) Source #

type Reply (ReadMemory a) Source # 
Instance details

Defined in HOCD.Command

type Reply (ReadMemory a) = [a]

data WriteMemory a Source #

Constructors

WriteMemory 

Instances

Instances details
(FiniteBits a, PrintfArg a, Integral a) => Show (WriteMemory a) Source # 
Instance details

Defined in HOCD.Command

(FiniteBits a, Integral a, PrintfArg a) => Command (WriteMemory a) Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply (WriteMemory a) Source #

type Reply (WriteMemory a) Source # 
Instance details

Defined in HOCD.Command

type Reply (WriteMemory a) = ()