#[repr(C)]pub struct GB_apu_t {Show 20 fields
pub global_enable: bool,
pub apu_cycles: u16,
pub samples: [u8; 4],
pub is_active: [bool; 4],
pub div_divider: u8,
pub lf_div: u8,
pub square_sweep_countdown: u8,
pub square_sweep_calculate_countdown: u8,
pub square_sweep_calculate_countdown_reload_timer: u8,
pub sweep_length_addend: u16,
pub shadow_sweep_sample_length: u16,
pub unshifted_sweep: bool,
pub square_sweep_instant_calculation_done: bool,
pub channel_1_restart_hold: u8,
pub channel1_completed_addend: u16,
pub square_channels: [GB_apu_t__bindgen_ty_1; 2],
pub wave_channel: GB_apu_t__bindgen_ty_2,
pub noise_channel: GB_apu_t__bindgen_ty_3,
pub skip_div_event: GB_apu_t__bindgen_ty_4,
pub pcm_mask: [u8; 2],
}Fields§
§global_enable: bool§apu_cycles: u16§samples: [u8; 4]§is_active: [bool; 4]§div_divider: u8§lf_div: u8§square_sweep_countdown: u8§square_sweep_calculate_countdown: u8§square_sweep_calculate_countdown_reload_timer: u8§sweep_length_addend: u16§shadow_sweep_sample_length: u16§unshifted_sweep: bool§square_sweep_instant_calculation_done: bool§channel_1_restart_hold: u8§channel1_completed_addend: u16§square_channels: [GB_apu_t__bindgen_ty_1; 2]§wave_channel: GB_apu_t__bindgen_ty_2§noise_channel: GB_apu_t__bindgen_ty_3§skip_div_event: GB_apu_t__bindgen_ty_4§pcm_mask: [u8; 2]Trait Implementations§
Auto Trait Implementations§
impl Freeze for GB_apu_t
impl RefUnwindSafe for GB_apu_t
impl Send for GB_apu_t
impl Sync for GB_apu_t
impl Unpin for GB_apu_t
impl UnwindSafe for GB_apu_t
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