macro_rules! bitmask { ($(#[$attr: meta])* $bitmask_name: ident) => { ... }; ($(#[$attr: meta])* $bitmask_name: ident, $reg_value_type: ty) => { ... }; }
Expand description
Convenience macro to define a bitmask as a RegisterValue- directly from avrd::<device>::*
identifiers. Requires you to have RegisterValue from this module and avrd::<your-device> as avr_device in scope. By default, $reg_value_type is set to u8. Additionally, one can
provide documentation for the RegisterValue inside the macro’s parenthesis.