diff options
Diffstat (limited to 'model')
-rw-r--r-- | model/driver/max44009.dfa | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/model/driver/max44009.dfa b/model/driver/max44009.dfa new file mode 100644 index 0000000..bdf1f2c --- /dev/null +++ b/model/driver/max44009.dfa @@ -0,0 +1,22 @@ +state: + UNINITIALIZED: + ACTIVE: + power: + static: 4 + function: + raw: parameter(voltage_v) * regression_arg(0) + regression_args: [1.2] + +parameters: +# acceptable voltage range: 1.7 .. 3.6 V +- voltage_v + +transition: + setup: + src: [UNINITIALIZED] + dst: ACTIVE + set_param: + voltage_v: 3.3 + # TODO I2C pull-up cost + getLux: + loop: [ACTIVE] |