summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-06-25 14:16:53 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-06-25 14:16:53 +0200
commite50587344e4977fcc04c04df53caee9b6ebf85f6 (patch)
tree6330470ac71f2678294f475c38a7a9dc4547904f /include
parentf0ad73ff8fe391d2aac4bc437128618647d46b4f (diff)
RF24: toggles, add setPayloadSize
Diffstat (limited to 'include')
-rw-r--r--include/driver/nrf24l01.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/driver/nrf24l01.h b/include/driver/nrf24l01.h
index 82297bd..ae88640 100644
--- a/include/driver/nrf24l01.h
+++ b/include/driver/nrf24l01.h
@@ -271,12 +271,16 @@ public:
*
* This way you don't always have to send large packets just to send them
* once in a while. This enables dynamic payloads on ALL pipes.
+ *
+ * @param enable desired DynamicPayloads status
*
*/
- void enableDynamicPayloads(void);
+ void enableDynamicPayloads(bool enabled);
/**
* Enable dynamic ACKs (single write multicast or unicast) for chosen messages
+ *
+ * @param enable desired DynamicAck status
*
* @note To enable full multicast or per-pipe multicast, use setAutoAck()
*
@@ -287,7 +291,7 @@ public:
* radio.write(&data,32,0); // Sends a payload using auto-retry/autoACK
* @endcode
*/
- void enableDynamicAck();
+ void enableDynamicAck(bool enabled);
/**
* Be sure to call openWritingPipe() first to set the destination