[][src]Struct ruspiro_register::ReadOnly

pub struct ReadOnly<T: RegisterType> { /* fields omitted */ }

This struct allows read only access to a register.

Implementations

impl<T: RegisterType> ReadOnly<T>[src]

pub fn new(addr: u32) -> Self[src]

Create a new instance of the register access struct.

pub fn get(&self) -> T[src]

Read raw content of a register.

pub fn read(&self, field: RegisterField<T>) -> T[src]

Read the value of a specific register field

pub fn read_value(&self, field: RegisterField<T>) -> RegisterFieldValue<T>[src]

Read the value of the register into a RegisterFieldValue structure

Trait Implementations

impl<T: Clone + RegisterType> Clone for ReadOnly<T>[src]

impl<T: Debug + RegisterType> Debug for ReadOnly<T>[src]

Auto Trait Implementations

impl<T> !Send for ReadOnly<T>

impl<T> !Sync for ReadOnly<T>

impl<T> Unpin for ReadOnly<T>

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> From<T> for T[src]

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

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.