Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce enum types #4

Open
rohieb opened this issue Jun 28, 2018 · 0 comments
Open

introduce enum types #4

rohieb opened this issue Jun 28, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@rohieb
Copy link
Contributor

rohieb commented Jun 28, 2018

As per #3:

@jluebbe commented:

I'd prefer to have the enums be declared as types, but for now this is an improvement. We can change it later as we don't guarantee compatibility anyway. ;)

A enum type could look like this and allow reuse in the whole cluster:

clusters:
  PINCTRL:
    types:
      e2 CALIB:
        values:
          0: Disabled
          1: 1-step adjustment
          2: 2-step adjustment
          3: 3-step adjustment
      r32 EMI_ODT_CTRL:
        fields:
          e2 CALIB 26…27:
            name: ADDRESS_CALIB
          e2 CALIB 22…23:
            name: CONTROL_CALIB
          e2 CALIB 18…19:
            name: DUALPAD_CALIB
@jluebbe jluebbe added the enhancement New feature or request label Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants