ot::Mac::LinkRaw::SetReceiveDone() method
Enables/disables the raw link-layer.
Arguments
aCallback
A pointer to a function called on receipt of a IEEE 802.15.4 frame, `nullptr` to disable raw link-layer.
Return value
kErrorInvalidState Thread stack is enabled. kErrorFailed The radio could not be enabled/disabled. kErrorNone Successfully enabled/disabled raw link.