nrfxlib API 2.8.99
|
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.
[in] | p_key | Pointer 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. |
NRF_802154_SECURITY_ERROR_NONE | Storing of key is successful. |
NRF_802154_SECURITY_ERROR_TYPE_NOT_SUPPORTED | Type of the key is not supported. |
NRF_802154_SECURITY_ERROR_MODE_NOT_SUPPORTED | ID mode of the key is not supported. |
NRF_802154_SECURITY_ERROR_ALREADY_PRESENT | Failed to store the key - key of such id is already present. Remove the key first to overwrite. |
NRF_802154_SECURITY_ERROR_STORAGE_FULL | Failed to store the key - storage full. |