summaryrefslogtreecommitdiff
path: root/model/driver
diff options
context:
space:
mode:
Diffstat (limited to 'model/driver')
-rw-r--r--model/driver/resistive_load.dfa44
1 files changed, 44 insertions, 0 deletions
diff --git a/model/driver/resistive_load.dfa b/model/driver/resistive_load.dfa
new file mode 100644
index 0000000..a2bf3dd
--- /dev/null
+++ b/model/driver/resistive_load.dfa
@@ -0,0 +1,44 @@
+codegen:
+ instance: resistiveLoad
+ includes:
+ - driver/resistive_load.h
+ flags:
+ - drivers=resistive_load
+ setup:
+ - resistiveLoad.setup();
+
+states:
+ - UNINITIALIZED
+ - SLEEP
+ - P14MW
+ - P11MW
+ - P4_4MW
+ - P3_4MW
+ - P1_1MW
+ - P235UW
+
+transition:
+ setup:
+ src: [UNINITIALIZED]
+ dst: SLEEP
+ switchToNone:
+ src: [UNINITIALIZED, SLEEP, P14MW, P11MW, P4_4MW, P3_4MW, P1_1MW, P235UW]
+ dst: SLEEP
+ switchTo750:
+ src: [UNINITIALIZED, SLEEP, P14MW, P11MW, P4_4MW, P3_4MW, P1_1MW, P235UW]
+ dst: P14MW
+ switchTo1K0:
+ src: [UNINITIALIZED, SLEEP, P14MW, P11MW, P4_4MW, P3_4MW, P1_1MW, P235UW]
+ dst: P11MW
+ switchTo2K4:
+ src: [UNINITIALIZED, SLEEP, P14MW, P11MW, P4_4MW, P3_4MW, P1_1MW, P235UW]
+ dst: P4_4MW
+ switchTo3K3:
+ src: [UNINITIALIZED, SLEEP, P14MW, P11MW, P4_4MW, P3_4MW, P1_1MW, P235UW]
+ dst: P3_4MW
+ switchTo10K:
+ src: [UNINITIALIZED, SLEEP, P14MW, P11MW, P4_4MW, P3_4MW, P1_1MW, P235UW]
+ dst: P1_1MW
+ switchTo47K:
+ src: [UNINITIALIZED, SLEEP, P14MW, P11MW, P4_4MW, P3_4MW, P1_1MW, P235UW]
+ dst: P235UW