macro_rules! io_read {
($io:expr, $($proj:tt)*) => { ... };
}Expand description
Read from I/O memory.
The syntax is of form io_read!(io, proj) where io is an expression to a type that
implements Io and proj is a projection specification.
ยงExamples
#[repr(C)]
struct MyStruct { field: u32, }
// let mmio: Mmio<'_, [MyStruct]>;
let field: u32 = kernel::io::io_read!(mmio, [try: 2].field);