Skip to content

kafka_dae_control: periods: attempt to prevent invalid configurations #103

Description

@Tom-Willemsen

In COMPUTER control mode:

  • If I try to set PERIODS:SP to larger than NUMPERIODS:MAX, I should get an error.
  • If I'm in period N and I try to change NUMPERIODS:MAX to less than N, put back to period 0 (user period 1)?
  • I probably shouldn't be allowed to set NUMPERIODS:MAX to zero
  • If I was previously in period N and this was done by EXTERNAL or LOOKUP control mode, then when I change to COMPUTER control mode this should be verified against NUMPERIODS:MAX and set back to something valid if N is larger than NUMPERIODS:MAX.
  • As per discussion below, NOT_USED is not a real control mode (it was meant to say that this bit-pattern does not correspond to anything in the hardware). Remove references to NOT_USED in our code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions