Macro BITFIELD

Source
macro_rules! BITFIELD {
    ($base:ident $field:ident: $fieldtype:ty [
        $($thing:ident $set_thing:ident[$r:expr],)+
    ]) => { ... };
}
Expand description

A generic bit-field which makes it easier to get and set bit-level fields