[riot-notifications] [RIOT-OS/RIOT] [PoC] drivers/at86rf215: allow MR-O-QPSK & legacy O-QPSK at the same time (#16312)

Jean Pierre Dudey notifications at github.com
Tue Apr 13 16:23:00 CEST 2021


@jeandudey commented on this pull request.



> @@ -290,12 +292,56 @@ int at86rf215_tx_prepare(at86rf215_t *dev)
     return 0;
 }
 
+static void _mr_oqpsk_set_mode(at86rf215_t *dev, const uint8_t *data)
+{
+#ifdef MODULE_AT86RF215_MR_OQPSK_MULTIRATE
+    uint8_t addr[8];
+    le_uint16_t pan;
+    int addr_len;
+    netstats_nb_t stats;
+    gnrc_netif_t *netif;
+
+    if (dev->oqpsk_phr_default == 0) {
+        return;
+    }
+
+    addr_len = ieee802154_get_dst(data, addr, &pan);
+    netif = gnrc_netif_get_by_netdev(&dev->netdev.netdev);

> Ideally we could extend the .send function to also include PHY options and keep the look-up to the upper layer (sub-MAC?)

When we have it, this should be handled by a coordinator layer, in theory we should have a table for associated devices so there might be a place for these options for each connected device :-D

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16312#discussion_r612494204
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210413/8879c5a5/attachment-0001.htm>


More information about the notifications mailing list