// SPDX-License-Identifier: MIT //! ay8910-rust: General Instrument's AY-3-8910 programmable sound generator and its relatives, //! the AY-3-8912 and 8913, Yamaha's YM2149 and the sound half of Sunsoft's 5B. //! //! The chip is [`PSG`]; the parts are [`AY8910`], [`AY8912`], [`AY8913`], [`YM2149`] and //! [`SUNSOFT_5B`]. The contract (the bus, the time unit, the outputs) is ay8910-python's //! docs/contract.md; the README says how its names read in Rust. //! //! A transcription of ay8910-python (`src/ay8910_python/` at a3bb485), module for module: //! `chip.rs` is `chip.py`, `variants.rs` is `variants.py`, `conformance.rs` is //! `conformance.py`. The names of Python's `__all__` are re-exported here; the modules are //! public too, because the reference's tests (and so this crate's) reach into them, and a //! board's save state reads the chip's fields. //! //! Save states (not in ay8910-python, whose state is plain attributes a board copies): with //! the `serde` feature `PSG` and `PSGVariant` are `Serialize`/`Deserialize`, every field //! included. Without the feature the crate imports nothing. pub mod chip; pub mod conformance; pub mod variants; pub use chip::{Levels, CLOCKS_PER_STEP, COUNT_PHASE, PSG, STROBE_PHASE}; pub use variants::{ variant, PSGVariant, AY8910, AY8912, AY8913, DAC_5B, DAC_AY_LOGARITHMIC, DAC_AY_MEASURED, DAC_YM_DATASHEET, DAC_YM_MEASURED, SUNSOFT_5B, VARIANTS, YM2149, }; /// ay8910-python's `__version__` at the pin this crate transcribes. pub const REFERENCE_VERSION: &str = "0.1.0.dev0";