Struct runes::ppu::PPU[][src]

#[repr(C)]pub struct PPU<'a> {
    pub scanline: u16,
    pub cycle: u16,
    pub vblank_lines: bool,
    pub scr: &'a mut dyn Screen,
    // some fields omitted
}

Fields

scanline: u16cycle: u16vblank_lines: boolscr: &'a mut dyn Screen

Implementations

impl<'a> PPU<'a>[src]

pub fn write_ctl(&mut self, data: u8)[src]

pub fn write_mask(&mut self, data: u8)[src]

pub fn read_status(&mut self) -> u8[src]

pub fn write_oamaddr(&mut self, data: u8)[src]

pub fn write_oamdata(&mut self, data: u8)[src]

pub fn read_oamdata(&self) -> u8[src]

pub fn write_scroll(&mut self, data: u8)[src]

pub fn write_addr(&mut self, data: u8)[src]

pub fn read_data(&mut self) -> u8[src]

pub fn write_data(&mut self, data: u8)[src]

pub fn write_oamdma(&mut self, data: u8, bus: &CPUBus<'_>)[src]

pub fn get_flag_nmi(&self) -> bool[src]

pub fn get_show_bg(&self) -> bool[src]

pub fn get_show_sp(&self) -> bool[src]

pub fn new(mem: PPUMemory<'a>, scr: &'a mut dyn Screen) -> Self[src]

pub fn load(&mut self, reader: &mut dyn Read) -> bool[src]

pub fn save(&self, writer: &mut dyn Write) -> bool[src]

pub fn reset(&mut self)[src]

pub fn try_nmi(&mut self) -> bool[src]

pub fn tick(&mut self, bus: &CPUBus<'_>) -> bool[src]

Auto Trait Implementations

impl<'a> !Send for PPU<'a>[src]

impl<'a> !Sync for PPU<'a>[src]

impl<'a> Unpin for PPU<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.