nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_802154_security_key_store()

nrf_802154_security_error_t nrf_802154_security_key_store ( nrf_802154_key_t p_key)

#include <nrf_802154/common/include/nrf_802154.h>

Store the 802.15.4 MAC Security Key inside the nRF 802.15.4 Radio Driver.

Parameters
[in]p_keyPointer to the key to store. Refer to nrf_802154_key_t for details. Storing the key copies the content of the key and key ID into the Radio Driver. This input parameter can be destroyed after the call.
Note
This function is not reentrant and must be called from thread context only.
Return values
NRF_802154_SECURITY_ERROR_NONEStoring of key is successful.
NRF_802154_SECURITY_ERROR_TYPE_NOT_SUPPORTEDType of the key is not supported.
NRF_802154_SECURITY_ERROR_MODE_NOT_SUPPORTEDID mode of the key is not supported.
NRF_802154_SECURITY_ERROR_ALREADY_PRESENTFailed to store the key - key of such id is already present. Remove the key first to overwrite.
NRF_802154_SECURITY_ERROR_STORAGE_FULLFailed to store the key - storage full.