Struct drone_svd::Field [−][src]
Bit-field properties 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: StringName string used to identify the field.
description: StringString describing the details of the register.
bit_offset: Option<u32>The position of the least significant bit of the field within the register.
bit_width: Option<u32>The bit-width of the bitfield within the register.
lsb: Option<u32>The bit position of the least significant bit within the register.
msb: Option<u32>The bit position of the most significant bit within the register.
access: Option<Access>The access type.
Implementations
impl Field[src]
pub fn bit_offset(&self) -> u32[src]
Returns the position of the least significant bit of the field within the register.
pub fn bit_width(&self) -> u32[src]
Returns the bit-width of the bitfield within the register.
Trait Implementations
impl Clone for Field[src]
impl Debug for Field[src]
impl Default for Field[src]
impl<'de> Deserialize<'de> for Field[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl PartialEq<Field> for Field[src]
impl StructuralPartialEq for Field[src]
Auto Trait Implementations
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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>,