[riot-notifications] [RIOT-OS/RIOT] drivers/cc110x: add power off (sleep) functions (#16232)

Marian Buschsieweke notifications at github.com
Tue Jun 8 11:49:53 CEST 2021


@maribu commented on this pull request.



> +            return -EINVAL;
+        }
+    }
+        return sizeof(uint16_t);
+    case NETOPT_PROMISCUOUSMODE:
+        assert(len == sizeof(netopt_enable_t));
+        return cc110x_set_promiscuous_mode(dev, *((const netopt_enable_t *)val));
+    case NETOPT_STATE:
+        assert(len == sizeof(netopt_state_t));
+        switch (*((netopt_state_t *)val)) {
+        case NETOPT_STATE_RESET:
+        case NETOPT_STATE_IDLE:
+            if (cc110x_acquire(dev)) {
+                return -EIO;
+            }
+            cc110x_enter_rx_mode(dev);

good question. Fixed

-- 
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/16232#discussion_r647293126
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210608/dfd3e181/attachment-0001.htm>


More information about the notifications mailing list