[riot-notifications] [RIOT-OS/RIOT] netdev_ieee802154: add radio capabilities (#11473)

Martine Lenders notifications at github.com
Thu May 2 13:23:09 CEST 2019

> Mhhhh, since these are things that do not change at runtime: is there maybe a way how to figure this out at compile-time (ideally with keeping multi-device support and keeping code-duplication low ;-))?

Just tossing some ideas, but how about a link-layer specific "MAC driver" struct (names are just examples take from the flags, please don't consider them to be serious)?

typedef struct {
    int tx_checksum(netdev_ieee802154_t *dev, ...);
    int csma(netdev_ieee802154_t *dev, ...);
    /* ... */
} netdev_ieee802154_mac_ops_t;

A driver then can set the once it supports in hardware to NOP, and otherwise use some common MAC implementation.

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/20190502/47d34661/attachment-0001.html>

More information about the notifications mailing list