Copyright | (c) Marc Fontaine 2017 |
---|---|
License | BSD3 |
Maintainer | [email protected] |
Stability | experimental |
Portability | GHC-only |
Safe Haskell | Safe |
Language | Haskell2010 |
STM32.STLinkUSB.Commands
Description
The bits, bytes and constants of the STLink protocoll. The constants have been looked up a corresponding driver that is part of the openocd library. Some parts have been added for completeness (but have not been tested so far).
- data Version = Version {}
- data API
- type Addr = Word32
- data DebugCmd
- = ENTER_JTAG
- | GETSTATUS
- | FORCEDEBUG
- | READMEM_32BIT Addr Word16
- | WRITEMEM_32BIT Addr Word16
- | RUNCORE
- | STEPCORE
- | READMEM_8BIT Addr Word16
- | WRITEMEM_8BIT Addr Word16
- | APIV1_CLEARFP
- | APIV1_SETWATCHPOINT
- | ENTER_SWD
- | EXIT
- | READCOREID
- | APIV1_SETFP
- | ENTER API
- | APIV2_READ_IDCODES
- | RESETSYS API
- | READREG API
- | WRITEREG API
- | WRITEDEBUGREG API Addr Word32
- | APIV2_READDEBUGREG Addr
- | READALLREGS API
- | GETLASTRWSTATUS
- | APIV2_DRIVE_NRST
- | APIV2_START_TRACE_RX Word16 Word32
- | APIV2_STOP_TRACE_RX
- | APIV2_GET_TRACE_NB
- | APIV2_SWD_SET_FREQ
- | APIV2_DRIVE_NRST_LOW
- | APIV2_DRIVE_NRST_HIGH
- | APIV2_DRIVE_NRST_PULSE
- data Cmd
- data SWIM_Cmd
- cmdToByteString :: Cmd -> ByteString
- data DevMode
- data Status
- toStatus :: Word8 -> Status
Documentation
APIV1 is NOT supported ! Todo remove old APIV1 stuff. | todo
Constructors
cmdToByteString :: Cmd -> ByteString Source #