hocd-0.1.3.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 Raw Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply Raw Source #

Command Registers Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply Registers Source #

Command Reset Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply Reset Source #

Command Resume Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply Resume Source #

Command Step Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply Step Source #

Command Version Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply Version 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) => Command (ReadRegister a) Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply (ReadRegister 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 #

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

Defined in HOCD.Command

Associated Types

type Reply (WriteRegister 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

type Reply Halt = ()

data Reset Source #

Constructors

Reset ResetMode 

Instances

Instances details
Show Reset Source # 
Instance details

Defined in HOCD.Command

Methods

showsPrec :: Int -> Reset -> ShowS #

show :: Reset -> String #

showList :: [Reset] -> ShowS #

Command Reset Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply Reset Source #

type Reply Reset Source # 
Instance details

Defined in HOCD.Command

type Reply Reset = ()

data ResetMode Source #

Constructors

ResetMode_Run

Let the target run after reset

ResetMode_Halt

Halt target after reset

ResetMode_Init

Halt target after reset and execute reset-init script

Instances

Instances details
Show ResetMode Source # 
Instance details

Defined in HOCD.Command

Eq ResetMode Source # 
Instance details

Defined in HOCD.Command

Ord ResetMode Source # 
Instance details

Defined in HOCD.Command

data Resume Source #

Constructors

Resume (Maybe MemAddress) 

Instances

Instances details
Show Resume Source # 
Instance details

Defined in HOCD.Command

Command Resume Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply Resume Source #

type Reply Resume Source # 
Instance details

Defined in HOCD.Command

type Reply Resume = ()

data Step Source #

Constructors

Step (Maybe MemAddress) 

Instances

Instances details
Show Step Source # 
Instance details

Defined in HOCD.Command

Methods

showsPrec :: Int -> Step -> ShowS #

show :: Step -> String #

showList :: [Step] -> ShowS #

Command Step Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply Step Source #

type Reply Step Source # 
Instance details

Defined in HOCD.Command

type Reply Step = ()

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) = ()

data Registers Source #

Constructors

Registers 

Instances

Instances details
Show Registers Source # 
Instance details

Defined in HOCD.Command

Command Registers Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply Registers Source #

type Reply Registers Source # 
Instance details

Defined in HOCD.Command

data ReadRegister a Source #

Instances

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

Defined in HOCD.Command

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

Defined in HOCD.Command

Associated Types

type Reply (ReadRegister a) Source #

type Reply (ReadRegister a) Source # 
Instance details

Defined in HOCD.Command

type Reply (ReadRegister a) = a

data WriteRegister a Source #

Instances

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

Defined in HOCD.Command

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

Defined in HOCD.Command

Associated Types

type Reply (WriteRegister a) Source #

type Reply (WriteRegister a) Source # 
Instance details

Defined in HOCD.Command

type Reply (WriteRegister a) = ()

data Version Source #

Constructors

Version 

Instances

Instances details
Show Version Source # 
Instance details

Defined in HOCD.Command

Command Version Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply Version Source #

type Reply Version Source # 
Instance details

Defined in HOCD.Command

data Raw Source #

Constructors

Raw ByteString 

Instances

Instances details
Show Raw Source # 
Instance details

Defined in HOCD.Command

Methods

showsPrec :: Int -> Raw -> ShowS #

show :: Raw -> String #

showList :: [Raw] -> ShowS #

Command Raw Source # 
Instance details

Defined in HOCD.Command

Associated Types

type Reply Raw Source #

type Reply Raw Source # 
Instance details

Defined in HOCD.Command