Macro imxrt_dcd::check_all_clear
source · macro_rules! check_all_clear { ($periph:path, $instance:ident, $reg:ident $([$offset:expr])*, $($args:tt)+) => { ... }; }
Expand description
Creates a DCD command that polls (indefinitely) to check if all specified bits / fields are 0
in the specified RAL register, i.e. (register & (arg1 | arg2 | ...)) == 0
.
Syntax:
ⓘ
check_all_clear!(ral::path::to::peripheral, INSTANCE, REGISTER, ...args)
Each arg
can be FIELD: value
, @FIELD
(= all bits of the field), or an arbitrary expression.
All args are bitwise-OR’d together to form the final check mask.
See crate-level docs for details on args
.
Returns a crate::Command::Check
with crate::CheckCond::AllClear
.
Example
dcd::check_all_clear!(ral::ccm, CCM, CDHIPR, @PERIPH_CLK_SEL_BUSY, @PERIPH2_CLK_SEL_BUSY)