macro_rules! read_only_csr_field { ($ty:ident, $(#[$field_doc:meta])+ $field:ident: $bit:literal$(,)?) => { ... }; ($ty:ident, $(#[$field_doc:meta])+ $field:ident: $bit_start:literal..=$bit_end:literal$(,)?) => { ... }; ($ty:ident, $(#[$field_doc:meta])+ $field:ident: [$bit_start:literal : $bit_end:literal]$(,)?) => { ... }; ($ty:ident, $(#[$field_doc:meta])+ $field:ident, $field_ty:ident: [$field_start:literal : $field_end:literal]$(,)? ) => { ... }; }
Expand description
Defines field accesor functions for a read-only CSR type.