Skip to content

Repository files navigation

Virtual Driver Master (VDM)

Master per emulazione logica di periferiche (GPIO, CAN, ADC, PWM) con API su Unix Domain Socket e GUI in Rust (ratatui). Config default in sge09.toml (vedi docs/CONFIG.md).

Build C++

cmake -S . -B .build_debug
cmake --build .build_debug

Avvio server:

./.build_debug/vdm_server /tmp/vdm.sock sge09.toml

Build GUI Rust

Richiede cargo e accesso a Internet per scaricare le crate.

cargo build --manifest-path rust_tui/Cargo.toml
./rust_tui/target/debug/vdm_tui /tmp/vdm.sock

Test

ctest --test-dir .build

CMake presets

cmake --workflow --preset build-all
cmake --workflow --preset build-all-release
cmake --workflow --preset test-all
cmake --workflow --preset coverage

Coverage richiede gcovr disponibile nel PATH. build-all copia compile_commands.json nella root per aiutare LSP/clangd.

Demo scripts

./scripts/run_all.sh /tmp/vdm.sock
python3 scripts/random_writer.py /tmp/vdm.sock writer1
python3 scripts/random_reader.py /tmp/vdm.sock reader1

Protocollo

Vedi docs/PROTOCOL.md e docs/EXAMPLE.md.

Board SDK (header/src autogenerati)

./scripts/gen_board_sdk.sh

Vedi docs/BOARD_SDK.md. cmake --workflow --preset build-all rigenera automaticamente generated/<board>/....

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages