pub unsafe extern "C" fn otLinkRawSetMacKey(
aInstance: *mut otInstance,
aKeyIdMode: u8,
aKeyIndex: u8,
aPrevKey: *const otMacKey,
aCurrKey: *const otMacKey,
aNextKey: *const otMacKey,
) -> otErrorExpand description
Update MAC keys and key index.
The input @p aKeyIdMode parameter is ignored and is always treated as Key ID Mode 1. This API mirrors the
otPlatRadioSetMacKey() platform API. See otPlatRadioSetMacKey() for more information on Key ID Mode.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aKeyIdMode The key ID mode (ignored). @param[in] aKeyIndex The key index. @param[in] aPrevKey The previous MAC key. @param[in] aCurrKey The current MAC key. @param[in] aNextKey The next MAC key.
@retval OT_ERROR_NONE If successful. @retval OT_ERROR_INVALID_STATE If the raw link-layer isn’t enabled.