Closed dzamlo closed 8 years ago
If there is only one group of fields for one register, it should somehow implement Index/IndexMut. So that you could do that:
let mut moder = STM32F7x7::GPIOB::read_MODER();
moder[0] = 1;
moder[3] = 0;
if moder[0] == 1 {
// ...
},
The criteria to merge fields should be the following:
Very similar field should be merged together.
For example, instead of:
It would be possible to use: