Struct Psx

Source
pub struct Psx { /* private fields */ }

Implementations§

Source§

impl Psx

Source

pub fn new<BiosPath: AsRef<Path>, DiskPath: AsRef<Path>>( bios_file_path: BiosPath, disk_file: Option<DiskPath>, config: PsxConfig, device: Arc<Device>, queue: Arc<Queue>, ) -> Result<Self, PsxError>

Source

pub fn reset(&mut self)

Source

pub fn clock_based_on_audio(&mut self, max_clocks: u32) -> (bool, CpuState)

Return true if the frame is finished, false otherwise. Return the CPU state.

Source

pub fn clock_based_on_video(&mut self, max_clocks: u32) -> (bool, CpuState)

Return true if the frame is finished, false otherwise. Return the CPU state.

Source

pub fn clock_full_audio_frame(&mut self) -> CpuState

Source

pub fn clock_full_video_frame(&mut self) -> CpuState

Source

pub fn change_controller_key_state( &mut self, key: DigitalControllerKey, pressed: bool, )

Source

pub fn change_cdrom_shell_open_state(&mut self, open: bool)

Source

pub fn blit_to_front( &mut self, dest_image: Arc<Image>, full_vram: bool, in_future: Box<dyn GpuFuture>, ) -> Box<dyn GpuFuture>

Source

pub fn take_audio_buffer(&mut self) -> Vec<f32>

Source

pub fn cpu(&mut self) -> &mut Cpu

Source

pub fn bus_read_u32(&mut self, addr: u32) -> Result<u32, String>

Source

pub fn bus_read_u16(&mut self, addr: u32) -> Result<u16, String>

Source

pub fn bus_read_u8(&mut self, addr: u32) -> Result<u8, String>

Source

pub fn print_spu_state(&self)

Auto Trait Implementations§

§

impl !Freeze for Psx

§

impl !RefUnwindSafe for Psx

§

impl !Send for Psx

§

impl !Sync for Psx

§

impl Unpin for Psx

§

impl !UnwindSafe for Psx

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.