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: Width
Width of the bus read.
cond: CheckCond
Condition to check — see CheckCond
.
address: u32
Address to read from. Unlike Write::address
, any address is valid.
mask: u32
Bitmask to check the value against — see CheckCond
.
count: Option<u32>
Optional poll count:
None
=> poll indefinitelySome(0)
=> equivalent toCommand::Nop
Some(x) if x > 0
=> poll at mostx
times; if the condition still is not satisfied, the boot ROM will abandon interpreting the rest of the DCD.
Trait Implementations§
source§impl PartialEq<Check> for Check
impl PartialEq<Check> for Check
impl Eq for Check
impl StructuralEq for Check
impl StructuralPartialEq for Check
Auto Trait Implementations§
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