[][src]Trait register::cpu::RegisterReadOnly

pub trait RegisterReadOnly<T: IntLike, R: RegisterLongName> {
    fn get(&self) -> T;

    fn read(&self, field: Field<T, R>) -> T { ... }
fn read_as_enum<E: TryFromValue<T, EnumType = E>>(
        &self,
        field: Field<T, R>
    ) -> Option<E> { ... }
fn extract(&self) -> LocalRegisterCopy<T, R> { ... }
fn is_set(&self, field: Field<T, R>) -> bool { ... }
fn matches_any(&self, field: FieldValue<T, R>) -> bool { ... }
fn matches_all(&self, field: FieldValue<T, R>) -> bool { ... } }

Trait for register RO functions.

Required methods

fn get(&self) -> T

Implement this as #[inline].

Loading content...

Provided methods

fn read(&self, field: Field<T, R>) -> T

fn read_as_enum<E: TryFromValue<T, EnumType = E>>(
    &self,
    field: Field<T, R>
) -> Option<E>

fn extract(&self) -> LocalRegisterCopy<T, R>

fn is_set(&self, field: Field<T, R>) -> bool

fn matches_any(&self, field: FieldValue<T, R>) -> bool

fn matches_all(&self, field: FieldValue<T, R>) -> bool

Loading content...

Implementors

Loading content...