Trait drone_riscv::reg::field::RegField[][src]

pub trait RegField<T>: Token + Sync where
    T: RegTag
{ type Reg: Reg<T>; type URegField: RegField<Urt>; type SRegField: RegField<Srt>; type CRegField: RegField<Crt>; pub const OFFSET: usize; pub const WIDTH: usize; pub fn into_unsync(self) -> Self
    where
        Self: RegField<Urt>
, { ... }
pub fn into_sync(self) -> Self
    where
        Self: RegField<Srt>
, { ... }
pub fn into_copy(self) -> Self::CRegField
    where
        T: RegAtomic
, { ... }
pub fn as_sync(&self) -> &Self::SRegField
    where
        T: RegAtomic
, { ... } }

The base trait for a field token of a memory-mapped register.

Associated Types

type Reg: Reg<T>[src]

Parent register token.

type URegField: RegField<Urt>[src]

Corresponding unsynchronized register field token.

type SRegField: RegField<Srt>[src]

Corresponding synchronized register field token.

type CRegField: RegField<Crt>[src]

Corresponding copyable register field token.

Loading content...

Associated Constants

pub const OFFSET: usize[src]

The offset of the field inside the parent register.

pub const WIDTH: usize[src]

The bit-width of the field.

Loading content...

Provided methods

pub fn into_unsync(self) -> Self where
    Self: RegField<Urt>, 
[src]

Converts into unsynchronized register field token.

pub fn into_sync(self) -> Self where
    Self: RegField<Srt>, 
[src]

Converts into synchronized register field token.

pub fn into_copy(self) -> Self::CRegField where
    T: RegAtomic
[src]

Converts into copyable register field token.

pub fn as_sync(&self) -> &Self::SRegField where
    T: RegAtomic
[src]

Returns a reference to the synchronized field token.

Loading content...

Implementors

Loading content...