[−][src]Struct register::InMemoryRegister
In memory volatile register.
Methods
impl<T, R> InMemoryRegister<T, R> where
R: RegisterLongName,
T: IntLike,
[src]
R: RegisterLongName,
T: IntLike,
pub const fn new(value: T) -> InMemoryRegister<T, R>
[src]
pub fn get(&self) -> T
[src]
pub fn set(&self, value: T)
[src]
pub fn read(&self, field: Field<T, R>) -> T
[src]
pub fn read_as_enum<E>(&self, field: Field<T, R>) -> Option<E> where
E: TryFromValue<T, EnumType = E>,
[src]
E: TryFromValue<T, EnumType = E>,
pub fn extract(&self) -> LocalRegisterCopy<T, R>
[src]
pub fn write(&self, field: FieldValue<T, R>)
[src]
pub fn modify(&self, field: FieldValue<T, R>)
[src]
pub fn modify_no_read(
&self,
original: LocalRegisterCopy<T, R>,
field: FieldValue<T, R>
)
[src]
&self,
original: LocalRegisterCopy<T, R>,
field: FieldValue<T, R>
)
pub fn is_set(&self, field: Field<T, R>) -> bool
[src]
pub fn matches_any(&self, field: FieldValue<T, R>) -> bool
[src]
pub fn matches_all(&self, field: FieldValue<T, R>) -> bool
[src]
Auto Trait Implementations
impl<T, R> Send for InMemoryRegister<T, R> where
R: Send,
T: Send,
R: Send,
T: Send,
impl<T, R> Sync for InMemoryRegister<T, R> where
R: Sync,
T: Sync,
R: Sync,
T: Sync,
impl<T, R> Unpin for InMemoryRegister<T, R> where
R: Unpin,
T: Unpin,
R: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,