Skip to main content

el3356_view

Macro el3356_view 

Source
macro_rules! el3356_view {
    ($gm:expr, $prefix:ident) => { ... };
}
Expand description

Create an El3356View by projecting GlobalMemory fields with a common prefix.

Fields must follow the naming convention {prefix}_load, {prefix}_load_steady, {prefix}_load_error, {prefix}_load_overrange, and {prefix}_tare. See the module docs for the full table.

§Example

let mut view = el3356_view!(ctx.gm, impact);
self.load_cell.tick(&mut view, ctx.client);