summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--model/driver/nrf24l01.dfa24
1 files changed, 23 insertions, 1 deletions
diff --git a/model/driver/nrf24l01.dfa b/model/driver/nrf24l01.dfa
index 53c4b07..787f429 100644
--- a/model/driver/nrf24l01.dfa
+++ b/model/driver/nrf24l01.dfa
@@ -14,6 +14,21 @@ parameters:
- datarate
- channel
+parameter_normalization:
+ tx_power:
+ unit: dBm
+ enum:
+ Nrf24l01::RF24_PA_MIN: 0
+ Nrf24l01::RF24_PA_LOW: 6
+ Nrf24l01::RF24_PA_HIGH: 12
+ Nrf24l01::RF24_PA_MAX: 18
+ datarate:
+ unit: 'kbit/s'
+ enum:
+ Nrf24l01::RF24_1MBPS: 1000
+ Nrf24l01::RF24_2MBPS: 2000
+ Nrf24l01::RF24_250KBPS: 250
+
states:
- UNINITIALIZED
- POWEROFF
@@ -39,7 +54,7 @@ transition:
arguments:
- name: enable
values: [0, 1]
- parameter: auto_ack
+ parameter: 'auto_ack!'
setPALevel:
src: [STANDBY1]
dst: STANDBY1
@@ -53,6 +68,13 @@ transition:
stopListening:
src: [RX]
dst: STANDBY1
+ setDynamicPayloads:
+ src: [STANDBY1]
+ dst: STANDBY1
+ arguments:
+ - name: enabled
+ values: [0, 1]
+ parameter: 'dynamic_payloads_enabled!'
setRetries:
src: [STANDBY1]
dst: STANDBY1