pub struct PcEngineCd {
pub system_card: Vec<u8>,
pub disc: Option<Disc>,
pub super_system_card: Option<bool>,
pub region_us: bool,
pub bram: Option<Vec<u8>>,
pub arcade_card: bool,
pub switches: CdSwitches,
pub board: BoardOptions,
}Expand description
A CD-ROM² system. system_card is the BIOS image (bring your own).
Fields§
§system_card: Vec<u8>§disc: Option<Disc>§super_system_card: Option<bool>None: a 256 KiB image is a Super System Card (U37)
region_us: bool§bram: Option<Vec<u8>>the backup RAM’s content (None: formatted and empty, U36)
arcade_card: bool§switches: CdSwitches§board: BoardOptionsThe base board’s options (machine row, pad, switches); card and port are replaced.
Implementations§
Source§impl PcEngineCd
impl PcEngineCd
pub fn new(system_card: &[u8], disc: Option<Disc>) -> PcEngineCd
Sourcepub fn make_unit(
disc: Option<Disc>,
bram: Option<&[u8]>,
arcade_card: bool,
switches: &CdSwitches,
) -> CdUnit
pub fn make_unit( disc: Option<Disc>, bram: Option<&[u8]>, arcade_card: bool, switches: &CdSwitches, ) -> CdUnit
The unit as this description builds it (the tests drive it without a board).
Sourcepub fn build_board(self) -> Result<Board, String>
pub fn build_board(self) -> Result<Board, String>
The board with the System Card in the slot and the unit on the port.
Auto Trait Implementations§
impl !Freeze for PcEngineCd
impl !RefUnwindSafe for PcEngineCd
impl !Send for PcEngineCd
impl !Sync for PcEngineCd
impl Unpin for PcEngineCd
impl !UnwindSafe for PcEngineCd
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more