pub struct Check {
pub width: Width,
pub cond: CheckCond,
pub address: u32,
pub mask: u32,
pub count: Option<u32>,
}Expand description
DCD command for polling an address until the value matches a given bitmask condition.
Fields§
§width: WidthWidth of the bus read.
cond: CheckCondCondition to check — see CheckCond.
address: u32Address to read from. Unlike Write::address, any address is valid.
mask: u32Bitmask to check the value against — see CheckCond.
count: Option<u32>Optional poll count:
None=> poll indefinitelySome(0)=> equivalent toCommand::NopSome(x) if x > 0=> poll at mostxtimes; if the condition still is not satisfied, the boot ROM will abandon interpreting the rest of the DCD.
Trait Implementations§
impl Eq for Check
impl StructuralPartialEq for Check
Auto Trait Implementations§
impl Freeze for Check
impl RefUnwindSafe for Check
impl Send for Check
impl Sync for Check
impl Unpin for Check
impl UnwindSafe for Check
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more