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

José Alamos notifications at github.com
Mon Nov 30 17:55:31 CET 2020


@jia200x 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);

that sounds like a clean approach to me

-- 
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/15120#discussion_r532747771
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201130/560c0ce0/attachment.htm>


More information about the notifications mailing list