MCPcopy Index your code
hub / github.com/ciniml/rust-dap

github.com/ciniml/rust-dap @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
311 symbols 642 edges 19 files 17 documented · 5%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

A CMSIS-DAP implementation in Rust

English 日本語

概要

デバッグボード

Arm用のデバッグ・アダプタのプロトコルおよびファームウェアの規格であるCMSIS-DAPのRust実装です。

現時点では他の実装と比較して性能やデバッグ・アダプタとしての機能面での優位性はありませんが、正しいWCID (Windows Compatibility ID) を返すことにより、Windowsでドライバの手動インストールを行わずに使用できます。

対応ボード

現在対応しているボードは以下の通りです。 各ボードごとのの実装については、 boards ディレクトリ以下に含まれています。

ボード名 対応機能 ディレクトリ
Seeeduino XIAO CMSIS-DAP ./boards/xiao_m0
XIAO RP2040 CMSIS-DAP, UART ./boards/xiao_rp2040
Raspberry Pi Pico CMSIS-DAP, UART ./boards/rpi_pico

ライセンス

ライセンスは Apache-2.0 License に従います。詳しくは LICENSE ファイルを確認してください。

Extension points exported contracts — how you extend this code

CmsisDapCommandInner (Interface)
(no doc) [4 implementers]
rust-dap/src/cmsis_dap.rs
SwdIo (Interface)
(no doc) [3 implementers]
rust-dap/src/cmsis_dap.rs
JtagIo (Interface)
(no doc) [2 implementers]
rust-dap/src/cmsis_dap.rs
CmsisDapCommand (Interface)
(no doc) [2 implementers]
rust-dap/src/cmsis_dap.rs
DelayFunc (Interface)
(no doc) [2 implementers]
rust-dap/src/bitbang.rs

Core symbols most depended-on inside this repo

write_bit
called by 32
rust-dap/src/bitbang.rs
write
called by 20
rust-dap/src/cursor.rs
u16_lo
called by 15
rust-dap/src/interface.rs
u16_hi
called by 15
rust-dap/src/interface.rs
clock_wait
called by 12
rust-dap/src/bitbang.rs
set_low
called by 12
boards/xiao_m0/src/swdio_pin.rs
write_tms
called by 12
rust-dap-rp2040/src/pio/jtag.rs
read
called by 11
rust-dap/src/cursor.rs

Shape

Method 212
Function 44
Class 34
Interface 12
Enum 9

Languages

Rust100%

Modules by API surface

rust-dap/src/bitbang.rs81 symbols
rust-dap/src/cmsis_dap.rs75 symbols
rust-dap-rp2040/src/pio/swd.rs30 symbols
rust-dap-rp2040/src/pio/jtag.rs29 symbols
rust-dap/src/interface.rs22 symbols
rust-dap/src/cursor.rs11 symbols
rust-dap-rp2040/src/swdio_pin.rs11 symbols
boards/xiao_m0/src/swdio_pin.rs11 symbols
boards/xiao_rp2040/src/main.rs8 symbols
boards/rpi_pico/src/main.rs8 symbols
rust-dap-rp2040/src/util.rs7 symbols
rust-dap-rp2040/src/line_coding.rs7 symbols

For agents

$ claude mcp add rust-dap \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact