pcengine_rust/vdc/mod.rs
1//! The HuC6270 VDC (`vdc/`): instances, no module state.
2//!
3//! It uses only `machine` constants from the rest of the board, so it can move to a core of its
4//! own if PC-FX or a second consumer needs it: broken out, never copied.
5//!
6//! Differences forced by Rust: the reference's `Vdc`, `Sequencer` and `DmaEngine` are three
7//! objects that call each other through references. Here `Sequencer` and `DmaEngine` are the
8//! state of each (fields of `Vdc`: `seq`, `dma`) and their methods are `impl Vdc` blocks in
9//! `sequencer.rs` and `dma.rs`, with the reference's names behind a `seq_` or `dma_` prefix.
10
11pub mod background;
12pub mod chip;
13pub mod dma;
14pub mod regs;
15pub mod sequencer;
16pub mod sprites;
17
18pub use chip::{Vdc, VRAM_WORDS};
19pub use regs::VdcRegisters;
20pub use sequencer::VPhase;