#[repr(C)]pub struct DcfgGeneric32WatchdogAction {
pub addr: u64,
pub clr_mask: u32,
pub set_mask: u32,
}
Expand description
Defines a register write action for a generic kernel watchdog driver. An action consists of the following steps.
- Read from the register located a physical address |addr|
- Clear all of the bits in the value which was read using the |clr_mask|
- Set all of the bits in the value using the |set_mask|
- Write this value back to the address located at addr
Fields§
§addr: u64
§clr_mask: u32
§set_mask: u32
Trait Implementations§
Source§impl Clone for DcfgGeneric32WatchdogAction
impl Clone for DcfgGeneric32WatchdogAction
Source§fn clone(&self) -> DcfgGeneric32WatchdogAction
fn clone(&self) -> DcfgGeneric32WatchdogAction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DcfgGeneric32WatchdogAction
impl Debug for DcfgGeneric32WatchdogAction
Source§impl FromBytes for DcfgGeneric32WatchdogAction
impl FromBytes for DcfgGeneric32WatchdogAction
Source§impl FromZeros for DcfgGeneric32WatchdogAction
impl FromZeros for DcfgGeneric32WatchdogAction
Source§impl IntoBytes for DcfgGeneric32WatchdogAction
impl IntoBytes for DcfgGeneric32WatchdogAction
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§impl TryFromBytes for DcfgGeneric32WatchdogAction
impl TryFromBytes for DcfgGeneric32WatchdogAction
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for DcfgGeneric32WatchdogAction
impl Eq for DcfgGeneric32WatchdogAction
impl StructuralPartialEq for DcfgGeneric32WatchdogAction
Auto Trait Implementations§
impl Freeze for DcfgGeneric32WatchdogAction
impl RefUnwindSafe for DcfgGeneric32WatchdogAction
impl Send for DcfgGeneric32WatchdogAction
impl Sync for DcfgGeneric32WatchdogAction
impl Unpin for DcfgGeneric32WatchdogAction
impl UnwindSafe for DcfgGeneric32WatchdogAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)