pub struct AddressBlockSpec {
pub offset: u32,
pub size: u32,
pub usage: String,
}
Expand description
Describes an address range uniquely mapped to a peripheral.
Fields§
§offset: u32
The start address of the address block relative to the peripheral’s base address.
size: u32
The number of address unit bits covered by this address block. The end of an address block is the sum of the peripheral’s base address and the address block’s offset and size.
usage: String
What the address block is used for. The following predefined values are expected:
registers
buffer
reserved
Trait Implementations§
Source§impl Clone for AddressBlockSpec
impl Clone for AddressBlockSpec
Source§fn clone(&self) -> AddressBlockSpec
fn clone(&self) -> AddressBlockSpec
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AddressBlockSpec
impl Debug for AddressBlockSpec
Source§impl PartialEq for AddressBlockSpec
impl PartialEq for AddressBlockSpec
impl StructuralPartialEq for AddressBlockSpec
Auto Trait Implementations§
impl Freeze for AddressBlockSpec
impl RefUnwindSafe for AddressBlockSpec
impl Send for AddressBlockSpec
impl Sync for AddressBlockSpec
impl Unpin for AddressBlockSpec
impl UnwindSafe for AddressBlockSpec
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