| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
HOCD.Command
Documentation
class Command req where Source #
Minimal complete definition
Methods
request :: req -> ByteString Source #
default request :: Show req => req -> ByteString Source #
reply :: req -> ByteString -> Either OCDError (Reply req) Source #
Instances
Constructors
| Halt |
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
| Show ResetMode Source # | |
| Eq ResetMode Source # | |
| Ord ResetMode Source # | |
Constructors
| Resume (Maybe MemAddress) |
Constructors
| Step (Maybe MemAddress) |
Constructors
| Capture a |
data ReadMemory a Source #
Constructors
| ReadMemory | |
Fields | |
Instances
| (FiniteBits a, Num a) => Show (ReadMemory a) Source # | |
Defined in HOCD.Command Methods showsPrec :: Int -> ReadMemory a -> ShowS # show :: ReadMemory a -> String # showList :: [ReadMemory a] -> ShowS # | |
| (FiniteBits a, Integral a) => Command (ReadMemory a) Source # | |
Defined in HOCD.Command Associated Types type Reply (ReadMemory a) Source # Methods request :: ReadMemory a -> ByteString Source # reply :: ReadMemory a -> ByteString -> Either OCDError (Reply (ReadMemory a)) Source # | |
| type Reply (ReadMemory a) Source # | |
Defined in HOCD.Command | |
data WriteMemory a Source #
Constructors
| WriteMemory | |
Fields
| |
Instances
| (FiniteBits a, PrintfArg a, Integral a) => Show (WriteMemory a) Source # | |
Defined in HOCD.Command Methods showsPrec :: Int -> WriteMemory a -> ShowS # show :: WriteMemory a -> String # showList :: [WriteMemory a] -> ShowS # | |
| (FiniteBits a, Integral a, PrintfArg a) => Command (WriteMemory a) Source # | |
Defined in HOCD.Command Associated Types type Reply (WriteMemory a) Source # Methods request :: WriteMemory a -> ByteString Source # reply :: WriteMemory a -> ByteString -> Either OCDError (Reply (WriteMemory a)) Source # | |
| type Reply (WriteMemory a) Source # | |
Defined in HOCD.Command | |
Constructors
| Registers |
data ReadRegister a Source #
Constructors
| ReadRegister RegisterName |
Instances
| (FiniteBits a, Num a) => Show (ReadRegister a) Source # | |
Defined in HOCD.Command Methods showsPrec :: Int -> ReadRegister a -> ShowS # show :: ReadRegister a -> String # showList :: [ReadRegister a] -> ShowS # | |
| (FiniteBits a, Integral a) => Command (ReadRegister a) Source # | |
Defined in HOCD.Command Associated Types type Reply (ReadRegister a) Source # Methods request :: ReadRegister a -> ByteString Source # reply :: ReadRegister a -> ByteString -> Either OCDError (Reply (ReadRegister a)) Source # | |
| type Reply (ReadRegister a) Source # | |
Defined in HOCD.Command | |
data WriteRegister a Source #
Constructors
| WriteRegister | |
Fields | |
Instances
| (FiniteBits a, Num a, PrintfArg a) => Show (WriteRegister a) Source # | |
Defined in HOCD.Command Methods showsPrec :: Int -> WriteRegister a -> ShowS # show :: WriteRegister a -> String # showList :: [WriteRegister a] -> ShowS # | |
| (FiniteBits a, Integral a, PrintfArg a) => Command (WriteRegister a) Source # | |
Defined in HOCD.Command Associated Types type Reply (WriteRegister a) Source # Methods request :: WriteRegister a -> ByteString Source # reply :: WriteRegister a -> ByteString -> Either OCDError (Reply (WriteRegister a)) Source # | |
| type Reply (WriteRegister a) Source # | |
Defined in HOCD.Command | |
Constructors
| Version |