[riot-notifications] [RIOT-OS/RIOT] drivers/at86rf215: Add driver for the AT86RF215 dual-band IEEE 802.15.4-2015 radio (#12128)

tinstructor notifications at github.com
Mon Sep 30 12:28:38 CEST 2019

> I mean you can try `pkt_len = at86rf215_reg_read(dev, dev->BBC->RG_RXFLL);` but I don't see why that would work and `at86rf215_reg_read_bytes()` would not.
> That function had to work at least once [on init](https://github.com/RIOT-OS/RIOT/pull/12128/files#diff-28cd85d734e0e394280eaa56722acaa9R98) or else you wouldn't have any interfaces.

My suspicions are confirmed, i added `pkt_len = at86rf215_reg_read(dev, dev->BBC->RG_RXFLL) + ((at86rf215_reg_read(dev, dev->BBC->RG_RXFLH) & 0x07) << 8);` instead of `at86rf215_reg_read_bytes(dev, dev->BBC->RG_RXFLL, &pkt_len, sizeof(pkt_len));` and now `_recv()` is called twice. However, the payload now isn't copied correctly because that also relies on `at86rf215_reg_read_bytes()`.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190930/06d6a618/attachment.htm>

More information about the notifications mailing list