ot::Mac::LinkRaw::EnergyScan() method
Starts a (single) Energy Scan on the link-layer.
Arguments
aScanChannel
The channel to perform the energy scan on.
aScanDuration
The duration, in milliseconds, for the channel to be scanned.
aCallback
A pointer to a function called on completion of a scanned channel.
Return value
kErrorNone Successfully started scanning the channel. kErrorBusy The radio is performing energy scanning. kErrorNotImplemented The radio doesn't support energy scanning. kErrorInvalidState If the raw link-layer isn't enabled.
ot::Mac::LinkRaw::EnergyScan() calls 1 function:
![]()
ot::Mac::LinkRaw::EnergyScan()
ot::Mac::LinkRaw::EnergyScan() reads 2 variables and writes 1 variable:
![]()
ot::Mac::LinkRaw::EnergyScan()