pub unsafe extern "C" fn otLinkRawSetAlternateShortAddress(
aInstance: *mut otInstance,
aShortAddress: otShortAddress,
) -> otError
Expand description
Set the alternate short address.
This is an optional API. Support for this is indicated by including the capability OT_RADIO_CAPS_ALT_SHORT_ADDR
in
otLinkRawGetCaps()
.
When supported, the radio will accept received frames destined to the specified alternate short address in addition
to the short address provided in otLinkRawSetShortAddress()
.
The @p aShortAddress can be set to OT_RADIO_INVALID_SHORT_ADDR
(0xfffe) to clear any previously set alternate
short address.
@param[in] aInstance The OpenThread instance structure.
@param[in] aShortAddress The alternate short address. OT_RADIO_INVALID_SHORT_ADDR
to clear.
@retval OT_ERROR_NONE Successfully set the alternate short address. @retval OT_ERROR_INVALID_STATE The raw link-layer is not enabled.