diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-07-25 17:01:06 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-07-25 17:01:06 +0200 |
commit | 323fefbfd6df1005981bbaf92efeaeff6ff40aef (patch) | |
tree | b82eadeb06a2987688a6e196e6cc2acd51bdae6f /model/driver/nrf24l01.dfa | |
parent | bf855bbc0752c75aa0f4ab961db40e7ffcc4a749 (diff) |
nrf24l01: Add parameter normalization information
Diffstat (limited to 'model/driver/nrf24l01.dfa')
-rw-r--r-- | model/driver/nrf24l01.dfa | 24 |
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 |