Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class Command req where Source #
request :: req -> ByteString Source #
default request :: Show req => req -> ByteString Source #
reply :: req -> ByteString -> Either OCDError (Reply req) Source #
Instances
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 |
Capture a |
data ReadMemory a Source #
Instances
(FiniteBits a, Num a) => Show (ReadMemory a) Source # | |
Defined in HOCD.Command 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 type Reply (ReadMemory a) Source # 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 #
WriteMemory | |
|
Instances
(FiniteBits a, PrintfArg a, Integral a) => Show (WriteMemory a) Source # | |
Defined in HOCD.Command 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 type Reply (WriteMemory a) Source # request :: WriteMemory a -> ByteString Source # reply :: WriteMemory a -> ByteString -> Either OCDError (Reply (WriteMemory a)) Source # | |
type Reply (WriteMemory a) Source # | |
Defined in HOCD.Command |
data ReadRegister a Source #
Instances
(FiniteBits a, Num a) => Show (ReadRegister a) Source # | |
Defined in HOCD.Command 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 type Reply (ReadRegister a) Source # 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 #
Instances
(FiniteBits a, Num a, PrintfArg a) => Show (WriteRegister a) Source # | |
Defined in HOCD.Command 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 type Reply (WriteRegister a) Source # request :: WriteRegister a -> ByteString Source # reply :: WriteRegister a -> ByteString -> Either OCDError (Reply (WriteRegister a)) Source # | |
type Reply (WriteRegister a) Source # | |
Defined in HOCD.Command |