Skip to content

Add some sort of iterator for repeated registers #250

Description

@diondokter

Currently you can do:

for i in 0..10 {
    device.foo(i).write(|_|);
}

This is annoying. There's no way to get the max even.

Instead, something like this should be made possible:

for foo in  device.iter_foo() {
  foo .write(|_|);
}

However, this would introduce a new name that can clash, so don't know how to solve that: related #183

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestoutputThis has to do with the generated code output, diagnostics and check passes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions