[riot-notifications] [RIOT-OS/RIOT] drivers/cc110x: Complete rewrite from scratch (#10340)

Marian Buschsieweke notifications at github.com
Wed Jun 12 17:25:14 CEST 2019


maribu commented on this pull request.



> + */
+static netdev_event_t cc110x_rx_done(cc110x_t *dev)
+{
+    uint8_t lqi_crc;
+    int8_t rssi;
+
+    cc110x_read(dev, CC110X_REG_LQI, &lqi_crc);
+    cc110x_read(dev, CC110X_REG_RSSI, (uint8_t *)&rssi);
+
+    /* CRC_OK bit is most significant bit, see page 92 in the data sheet */
+    if (!(lqi_crc & 0x80)) {
+        DEBUG("[cc110x] ISR: CRC error, dropping frame\n");
+        /* Drop frame and go back to RX */
+        cc110x_rx(dev);
+        return NETDEV_EVENT_CRC_ERROR;
+    }

This driver does not allow to disable hardware CRC calculation/validation at the moment. If that feature would be added, this would need to be updated as you implied.

-- 
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/10340#discussion_r292976804
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190612/6b55e05a/attachment.html>


More information about the notifications mailing list