[riot-notifications] [RIOT-OS/RIOT] driver/at86rf215: add functions to configure trim & clock output at run-time (#15120)

benpicco notifications at github.com
Mon Nov 30 17:49:27 CET 2020

@benpicco commented on this pull request.

> @@ -565,6 +565,19 @@ int gnrc_netif_get_from_netdev(gnrc_netif_t *netif, gnrc_netapi_opt_t *opt);
 int gnrc_netif_set_from_netdev(gnrc_netif_t *netif,
                                const gnrc_netapi_opt_t *opt);
+ * @brief Search the list of netifs for a netdev of a certain type.
+ *
+ * @pre The netdev has been registered with @ref netdev_register
+ *
+ * @param[in]  type         driver type of the netdev
+ * @param[in]  index        index of the netdev
+ *
+ * @return  The netdev that matches the type and index
+ *          NULL if no matching netdev could be found
+ */
+netdev_t *gnrc_netif_get_netdev(netdev_type_t type, uint8_t index);

How about `gnrc_netif_get_by_type()` (in the same spirit as the other `gnrc_netif_get_by_` functions)?

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/20201130/af119f8c/attachment.htm>

More information about the notifications mailing list