pub struct MmioResource {
pub name: String,
pub kind: ResourceKind,
pub logical_size: u64,
pub mapped_size: u64,
}Expand description
Description of a resource offered by the parent node. Descriptions never contain physical addresses or raw handles.
Fields§
§name: StringStable logical name.
kind: ResourceKindResource kind.
logical_size: u64Size of the logical resource in bytes.
mapped_size: u64Size of the actual backing mapping in bytes. Accesses must fit both the logical and the mapped size.
Implementations§
Source§impl MmioResource
impl MmioResource
pub fn mmio( name: impl Into<String>, logical_size: u64, mapped_size: u64, ) -> Self
pub fn gpio(name: impl Into<String>) -> Self
pub fn i2c(name: impl Into<String>) -> Self
pub fn spi(name: impl Into<String>) -> Self
pub fn interrupt(name: impl Into<String>) -> Self
pub fn clock(name: impl Into<String>) -> Self
pub fn reset(name: impl Into<String>) -> Self
pub fn serial(name: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for MmioResource
impl Clone for MmioResource
Source§impl Debug for MmioResource
impl Debug for MmioResource
impl Eq for MmioResource
Source§impl PartialEq for MmioResource
impl PartialEq for MmioResource
impl StructuralPartialEq for MmioResource
Auto Trait Implementations§
impl Freeze for MmioResource
impl RefUnwindSafe for MmioResource
impl Send for MmioResource
impl Sync for MmioResource
impl Unpin for MmioResource
impl UnsafeUnpin for MmioResource
impl UnwindSafe for MmioResource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.