#[repr(C, packed(1))]pub struct MathAccelerator {
pub divout_fraction: RO<u32>,
pub divout_whole: RO<u32>,
pub multin_a: WO<u32>,
pub multin_b: WO<u32>,
pub multout: RO<u64>,
}Expand description
Registers for Math Acceleration
See the MEGA64 book, Section G-19. The hardware registers use little endian storage.
Fields§
§divout_fraction: RO<u32>32-bit fractional part DIVOUT(0-3) of MULTINA divided by MULTINB
divout_whole: RO<u32>32-bit whole part DIVOUT(4-7) of MULTINA divided by MULTINB
multin_a: WO<u32>32-bit input A
multin_b: WO<u32>32-bit input B
multout: RO<u64>64-bit product MULTOUT of MULTINA and MULTINB
Implementations§
Auto Trait Implementations§
impl !Freeze for MathAccelerator
impl !RefUnwindSafe for MathAccelerator
impl Send for MathAccelerator
impl !Sync for MathAccelerator
impl Unpin for MathAccelerator
impl UnwindSafe for MathAccelerator
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