MCPcopy Index your code
hub / github.com/card-io-ecg/card-io-fw

github.com/card-io-ecg/card-io-fw @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
999 symbols 2,081 edges 133 files 29 documented · 3%

Browse by type

Functions 746 Types & classes 253
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Card/IO firmware

This repository contains the firmware source code for the Card/IO open source ECG device, built with an ESP32-C6 or ESP32-S3 MCU.

This firmware is in its early stages of development.

Setup

Tools you need to build the firmware:

  • Espressif's Xtensa-enabled rust compiler - espup

    Make sure to run . ~/export-esp.sh before trying to work with the firmware

  • cargo install cargo-espflash
  • cargo install cargo-watch

Enable External / USB JTAG selector solder bridge

  • pip install esptool
  • python -m espefuse burn_efuse --port COM4 STRAP_JTAG_SEL 1

Commands

  • cargo xtask -h: Prints information about available commands. Most of the commands have short aliasses, listed below.
  • cargo xbuild <hw>: Build the firmware for a <hw> version board.
  • cargo xrun <hw>: Build and run the firmware on a <hw> version board.
  • cargo monitor: Connect to the Card/IO device and display serial output. <hw> can be omitted, or one of: v4, v6s3, v6c6. Defaults to v6c6.
  • cargo xcheck <hw>: runs cargo check
  • cargo xclippy <hw>: runs cargo clippy
  • cargo xdoc <hw> [--open]: runs cargo doc and optionally opens the generated documentation.
  • cargo xtest: runs cargo test.
  • cargo example <package> <example> [--watch]: runs an example. Use --watch to enable automatic reload when a file changes.
  • To run the config site on your PC, run cargo example config-site simple --watch and open 127.0.0.1:8080 in a browser.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 592
Class 177
Function 154
Enum 50
Interface 26

Languages

Rust100%

Modules by API surface

src/board/wifi/sta.rs43 symbols
ads129x/src/lib.rs34 symbols
signal-processing/src/buffer.rs31 symbols
signal-processing/src/compressing_buffer.rs28 symbols
max17055/src/lib.rs25 symbols
bad-server/src/request_body.rs25 symbols
xtask/src/main.rs24 symbols
src/states/upload_or_store_measurement.rs24 symbols
src/board/ota/mod.rs24 symbols
signal-processing/src/filter/iir.rs24 symbols
src/board/initialized.rs22 symbols
bad-server/src/response.rs21 symbols

For agents

$ claude mcp add card-io-fw \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page