Struct drone_svd::Register [−][src]
The description of a register.
Fields (Non-exhaustive)
Struct {{ .. }}
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.dim: Option<u32>
Define the number of elements in an array.
dim_increment: Option<u32>
Specify the address increment, in Bytes, between two neighboring array members in the address map.
name: String
String to identify the register.
description: String
String describing the details of the register.
alternate_register: Option<String>
This tag can reference a register that has been defined above to current location in the description and that describes the memory location already.
address_offset: u32
The address offset relative to the enclosing element.
size: Option<u32>
The bit-width of the register.
access: Option<Access>
The access rights for the register.
reset_value: Option<u32>
The default value for the register at RESET.
Implementations
impl Register
[src]
pub fn field(&mut self, name: &str) -> &mut Field
[src]
Returns a mutable reference to the field with name name
.
pub fn add_field(&mut self, field: Field)
[src]
Adds a new field field
.
pub fn new_field(&mut self, f: impl FnOnce(&mut Field))
[src]
Adds a new field initialized by f
.
pub fn remove_field(&mut self, name: &str) -> Field
[src]
Removes the field with name name
.
Trait Implementations
impl Clone for Register
[src]
impl Debug for Register
[src]
impl Default for Register
[src]
impl<'de> Deserialize<'de> for Register
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for Register
impl Send for Register
impl Sync for Register
impl Unpin for Register
impl UnwindSafe for Register
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,