Struct drone_svd::Field[][src]

#[non_exhaustive]pub struct Field {
    pub dim: Option<u32>,
    pub dim_increment: Option<u32>,
    pub name: String,
    pub description: String,
    pub bit_offset: Option<u32>,
    pub bit_width: Option<u32>,
    pub lsb: Option<u32>,
    pub msb: Option<u32>,
    pub access: Option<Access>,
}

Bit-field properties of a register.

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 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

Name string used to identify the field.

description: String

String 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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.