Struct stm32_metapac::xspi::regs::Ar
#[repr(transparent)]pub struct Ar(pub u32);
Expand description
XSPIaddress register
Tuple Fields§
§0: u32
Implementations§
§impl Ar
impl Ar
pub const fn address(&self) -> u32
pub const fn address(&self) -> u32
Address Address to be sent to the external device. In HyperBus protocol, this field must be even as this protocol is 16-bit word oriented. In dual-memory configuration, AR[0] is forced to 0. Writes to this field are ignored when BUSY = 1 or when FMODE = 11 (memory-mapped mode). Some memory specifications consider that each address corresponds to a 16-bit value. XSPI considers that each address corresponds to an 8-bit value. So the software needs to multiple the address by two when accessing the memory registers.
pub fn set_address(&mut self, val: u32)
pub fn set_address(&mut self, val: u32)
Address Address to be sent to the external device. In HyperBus protocol, this field must be even as this protocol is 16-bit word oriented. In dual-memory configuration, AR[0] is forced to 0. Writes to this field are ignored when BUSY = 1 or when FMODE = 11 (memory-mapped mode). Some memory specifications consider that each address corresponds to a 16-bit value. XSPI considers that each address corresponds to an 8-bit value. So the software needs to multiple the address by two when accessing the memory registers.
Trait Implementations§
impl Copy for Ar
impl Eq for Ar
impl StructuralPartialEq for Ar
Auto Trait Implementations§
impl Freeze for Ar
impl RefUnwindSafe for Ar
impl Send for Ar
impl Sync for Ar
impl Unpin for Ar
impl UnwindSafe for Ar
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)