Safe Haskell | None |
---|---|
Language | Haskell2010 |
- module System.Hardware.Sump.Types
- data Channel
- ch :: Int -> Channel
- data ChannelGroup
- data Stage
- data Sump
- open :: FilePath -> ExceptT String IO Sump
- reset :: Sump -> ExceptT String IO ()
- data ProtocolVersion
- identify :: Sump -> ExceptT String IO (ByteString, ProtocolVersion)
- data Trigger
- = SerialTrigger { }
- | ParallelTrigger {
- triggerDelay :: Word16
- triggerLevel :: Word8
- triggerStart :: Bool
- triggerValues :: [(Channel, Level)]
- levelTrigger :: [(Channel, Level)] -> Trigger
- configureTrigger :: Sump -> Stage -> Trigger -> ExceptT String IO ()
- setDivider :: Sump -> Int -> ExceptT String IO ()
- setReadDelayCounts :: Sump -> Word16 -> Word16 -> ExceptT String IO ()
- data Flags = Flags {
- demux :: Bool
- inputFilter :: Bool
- enabledGroups :: [ChannelGroup]
- externalClock :: Bool
- invertedClock :: Bool
- setFlags :: Sump -> Flags -> ExceptT String IO ()
- newtype Sample = Sample Word32
- channelLevel :: Channel -> Sample -> Level
- run :: Sump -> ExceptT String IO (Vector Sample)
Basic Types
module System.Hardware.Sump.Types
A logic analyzer channel
data ChannelGroup Source #
A trigger stage
Initialization
data ProtocolVersion Source #
identify :: Sump -> ExceptT String IO (ByteString, ProtocolVersion) Source #
Trigger configuration
SerialTrigger | |
| |
ParallelTrigger | |
|
levelTrigger :: [(Channel, Level)] -> Trigger Source #
Trigger on the simultaneous levels of a set of channels
Other configuration
Flags | |
|