Struct ruspiro_mmio_register::WriteOnly[][src]

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

This struct allows write only access to a register.

Implementations

impl WriteOnly<u8>[src]

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

Create a new instance of the register access struct.

pub fn set(&self, value: u8)[src]

Write raw content value to the register.

pub fn write(&self, field: RegisterField<u8>, value: u8)[src]

Write the value of a specific register field, this will set all bits not coverd by this field to 0 !

pub fn write_value(&self, fieldvalue: RegisterFieldValue<u8>)[src]

Write the value of a given RegisterFieldValue to the register, this will set all bits not coverd by this field to 0 !

impl WriteOnly<u16>[src]

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

Create a new instance of the register access struct.

pub fn set(&self, value: u16)[src]

Write raw content value to the register.

pub fn write(&self, field: RegisterField<u16>, value: u16)[src]

Write the value of a specific register field, this will set all bits not coverd by this field to 0 !

pub fn write_value(&self, fieldvalue: RegisterFieldValue<u16>)[src]

Write the value of a given RegisterFieldValue to the register, this will set all bits not coverd by this field to 0 !

impl WriteOnly<u32>[src]

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

Create a new instance of the register access struct.

pub fn set(&self, value: u32)[src]

Write raw content value to the register.

pub fn write(&self, field: RegisterField<u32>, value: u32)[src]

Write the value of a specific register field, this will set all bits not coverd by this field to 0 !

pub fn write_value(&self, fieldvalue: RegisterFieldValue<u32>)[src]

Write the value of a given RegisterFieldValue to the register, this will set all bits not coverd by this field to 0 !

impl WriteOnly<u64>[src]

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

Create a new instance of the register access struct.

pub fn set(&self, value: u64)[src]

Write raw content value to the register.

pub fn write(&self, field: RegisterField<u64>, value: u64)[src]

Write the value of a specific register field, this will set all bits not coverd by this field to 0 !

pub fn write_value(&self, fieldvalue: RegisterFieldValue<u64>)[src]

Write the value of a given RegisterFieldValue to the register, this will set all bits not coverd by this field to 0 !

Trait Implementations

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

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

Auto Trait Implementations

impl<T> !Send for WriteOnly<T>

impl<T> !Sync for WriteOnly<T>

impl<T> Unpin for WriteOnly<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.