[−][src]Struct tock_registers::registers::FieldValue
Values for the specific register fields.
Fields
mask: Tvalue: TMethods
impl<R: RegisterLongName> FieldValue<u8, R>[src]
pub const fn new(mask: u8, shift: usize, value: u8) -> Self[src]
pub fn mask(self) -> u8[src]
Get the raw bitmask represented by this FieldValue.
pub fn read(&self, field: Field<u8, R>) -> u8[src]
impl<R: RegisterLongName> FieldValue<u16, R>[src]
pub const fn new(mask: u16, shift: usize, value: u16) -> Self[src]
pub fn mask(self) -> u16[src]
Get the raw bitmask represented by this FieldValue.
pub fn read(&self, field: Field<u16, R>) -> u16[src]
impl<R: RegisterLongName> FieldValue<u32, R>[src]
pub const fn new(mask: u32, shift: usize, value: u32) -> Self[src]
pub fn mask(self) -> u32[src]
Get the raw bitmask represented by this FieldValue.
pub fn read(&self, field: Field<u32, R>) -> u32[src]
impl<R: RegisterLongName> FieldValue<u64, R>[src]
pub const fn new(mask: u64, shift: usize, value: u64) -> Self[src]
pub fn mask(self) -> u64[src]
Get the raw bitmask represented by this FieldValue.
pub fn read(&self, field: Field<u64, R>) -> u64[src]
impl<T: IntLike, R: RegisterLongName> FieldValue<T, R>[src]
Trait Implementations
impl<T: IntLike, R: RegisterLongName> Add<FieldValue<T, R>> for FieldValue<T, R>[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: Self) -> Self[src]
impl<T: IntLike, R: RegisterLongName> AddAssign<FieldValue<T, R>> for FieldValue<T, R>[src]
fn add_assign(&mut self, rhs: FieldValue<T, R>)[src]
impl<T: Clone + IntLike, R: Clone + RegisterLongName> Clone for FieldValue<T, R>[src]
fn clone(&self) -> FieldValue<T, R>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<T: Copy + IntLike, R: Copy + RegisterLongName> Copy for FieldValue<T, R>[src]
impl<R: RegisterLongName> From<FieldValue<u16, R>> for u16[src]
fn from(val: FieldValue<u16, R>) -> u16[src]
impl<R: RegisterLongName> From<FieldValue<u32, R>> for u32[src]
fn from(val: FieldValue<u32, R>) -> u32[src]
impl<R: RegisterLongName> From<FieldValue<u64, R>> for u64[src]
fn from(val: FieldValue<u64, R>) -> u64[src]
impl<R: RegisterLongName> From<FieldValue<u8, R>> for u8[src]
fn from(val: FieldValue<u8, R>) -> u8[src]
Auto Trait Implementations
impl<T, R> Send for FieldValue<T, R> where
R: Send,
T: Send,
R: Send,
T: Send,
impl<T, R> Sync for FieldValue<T, R> where
R: Sync,
T: Sync,
R: Sync,
T: Sync,
impl<T, R> Unpin for FieldValue<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 = Infallible
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>,