summaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-12-19 16:51:38 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2019-12-19 16:51:38 +0100
commit04ea15ee64dfa578def9c07daba15f761253a865 (patch)
treec7caf08f7aa913dcc83e31ac7c577c57bea8db99 /model
parent3f1c385cf8f2b3878365ff652d22393593104817 (diff)
nrf24: Add setDataRate method
Diffstat (limited to 'model')
-rw-r--r--model/driver/nrf24l01.dfa8
1 files changed, 8 insertions, 0 deletions
diff --git a/model/driver/nrf24l01.dfa b/model/driver/nrf24l01.dfa
index 8ac5528..8d8d0b7 100644
--- a/model/driver/nrf24l01.dfa
+++ b/model/driver/nrf24l01.dfa
@@ -1,4 +1,5 @@
codegen:
+ class: Nrf24l01
instance: nrf24l01
includes: ['driver/nrf24l01.h']
flags: ['drivers=nrf24l01', 'arch_drivers=spi_b']
@@ -82,6 +83,13 @@ transition:
- name: palevel
values: ['Nrf24l01::RF24_PA_MIN', 'Nrf24l01::RF24_PA_LOW', 'Nrf24l01::RF24_PA_HIGH', 'Nrf24l01::RF24_PA_MAX']
parameter: tx_power
+ setDataRate:
+ src: [STANDBY1]
+ dst: STANDBY1
+ arguments:
+ - name: datarate
+ values: ['Nrf24l01::RF24_1MBPS', 'Nrf24l01::RF24_2MBPS', 'Nrf24l01::RF24_250KBPS']
+ parameter: datarate
startListening:
src: [STANDBY1]
dst: RX