ot::Mac::SubMac::SetPcapCallback() method
Registers a callback to provide received packet capture for IEEE 802.15.4 frames.
Arguments
aPcapCallback
A pointer to a function that is called when receiving an IEEE 802.15.4 link frame or `nullptr` to disable the callback.
aCallbackContext
A pointer to application-specific context.