Function openthread_sys::otLinkSetPcapCallback

source ยท
pub unsafe extern "C" fn otLinkSetPcapCallback(
    aInstance: *mut otInstance,
    aPcapCallback: otLinkPcapCallback,
    aCallbackContext: *mut c_void,
)
Expand description

Registers a callback to provide received raw IEEE 802.15.4 frames.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aPcapCallback A pointer to a function that is called when receiving an IEEE 802.15.4 link frame or NULL to disable the callback. @param[in] aCallbackContext A pointer to application-specific context.