MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / netdev_set_status_callback

Function netdev_set_status_callback

components/net/netdev/src/netdev.c:847–853  ·  view source on GitHub ↗

* This function will set callback to be called when the network interface device status has been changed. * * @param netdev the network interface device to change * @param status_callback the callback be called when the status has been changed. */

Source from the content-addressed store, hash-verified

845 * @param status_callback the callback be called when the status has been changed.
846 */
847void netdev_set_status_callback(struct netdev *netdev, netdev_callback_fn status_callback)
848{
849 RT_ASSERT(netdev);
850 RT_ASSERT(status_callback);
851
852 netdev->status_callback = status_callback;
853}
854
855/**
856 * This function will set callback to be called when the network interface device address has been changed.

Callers 2

netdev_addFunction · 0.85
test_netdev_callbacksFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_netdev_callbacksFunction · 0.68