Hardware access layer for managing the Key Management Unit (KMU) peripheral. More...
Enumerations | |
enum | nrf_kmu_task_t { NRF_KMU_TASK_PUSH_KEYSLOT = offsetof(NRF_KMU_Type, TASKS_PUSH_KEYSLOT) } |
KMU tasks. More... | |
enum | nrf_kmu_event_t { NRF_KMU_EVENT_KEYSLOT_PUSHED = offsetof(NRF_KMU_Type, EVENTS_KEYSLOT_PUSHED), NRF_KMU_EVENT_KEYSLOT_REVOKED = offsetof(NRF_KMU_Type, EVENTS_KEYSLOT_REVOKED), NRF_KMU_EVENT_KEYSLOT_ERROR = offsetof(NRF_KMU_Type, EVENTS_KEYSLOT_ERROR) } |
KMU events. More... | |
enum | nrf_kmu_int_mask_t { NRF_KMU_INT_PUSHED_MASK = KMU_INTEN_KEYSLOT_PUSHED_Msk, NRF_KMU_INT_REVOKED_MASK = KMU_INTEN_KEYSLOT_REVOKED_Msk, NRF_KMU_INT_ERROR_MASK = KMU_INTEN_KEYSLOT_ERROR_Msk } |
KMU interrupts. More... | |
enum | nrf_kmu_status_t { NRF_KMU_STATUS_BLOCKED_MASK = KMU_STATUS_BLOCKED_Msk, NRF_KMU_STATUS_SELECTED_MASK = KMU_STATUS_SELECTED_Msk } |
KMU operation status. More... | |
Functions | |
NRF_STATIC_INLINE void | nrf_kmu_task_trigger (NRF_KMU_Type *p_reg, nrf_kmu_task_t task) |
Function for activating a specific KMU task. More... | |
NRF_STATIC_INLINE uint32_t | nrf_kmu_task_address_get (NRF_KMU_Type const *p_reg, nrf_kmu_task_t task) |
Function for getting the address of a specific KMU task register. More... | |
NRF_STATIC_INLINE void | nrf_kmu_event_clear (NRF_KMU_Type *p_reg, nrf_kmu_event_t event) |
Function for clearing a specific KMU event. More... | |
NRF_STATIC_INLINE bool | nrf_kmu_event_check (NRF_KMU_Type const *p_reg, nrf_kmu_event_t event) |
Function for retrieving the state of the KMU event. More... | |
NRF_STATIC_INLINE uint32_t | nrf_kmu_event_address_get (NRF_KMU_Type const *p_reg, nrf_kmu_event_t event) |
Function for getting the address of a specific KMU event register. More... | |
NRF_STATIC_INLINE void | nrf_kmu_int_enable (NRF_KMU_Type *p_reg, uint32_t mask) |
Function for enabling specified interrupts. More... | |
NRF_STATIC_INLINE void | nrf_kmu_int_disable (NRF_KMU_Type *p_reg, uint32_t mask) |
Function for disabling specified interrupts. More... | |
NRF_STATIC_INLINE uint32_t | nrf_kmu_int_enable_check (NRF_KMU_Type const *p_reg, uint32_t mask) |
Function for checking if the specified interrupts are enabled. More... | |
NRF_STATIC_INLINE uint32_t | nrf_kmu_intpend_get (NRF_KMU_Type const *p_reg) |
Function for retrieving the state of interrupts. More... | |
NRF_STATIC_INLINE uint32_t | nrf_kmu_status_get (NRF_KMU_Type const *p_reg) |
Function for getting status bits of the KMU operation. More... | |
NRF_STATIC_INLINE void | nrf_kmu_keyslot_set (NRF_KMU_Type *p_reg, uint8_t keyslot_id) |
Function for selecting the key slot ID. More... | |
NRF_STATIC_INLINE uint8_t | nrf_kmu_keyslot_get (NRF_KMU_Type const *p_reg) |
Function for getting the key slot ID. More... | |
Hardware access layer for managing the Key Management Unit (KMU) peripheral.
enum nrf_kmu_event_t |
enum nrf_kmu_int_mask_t |
enum nrf_kmu_status_t |
enum nrf_kmu_task_t |
NRF_STATIC_INLINE uint32_t nrf_kmu_event_address_get | ( | NRF_KMU_Type const * | p_reg, |
nrf_kmu_event_t | event | ||
) |
Function for getting the address of a specific KMU event register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Requested event. |
NRF_STATIC_INLINE bool nrf_kmu_event_check | ( | NRF_KMU_Type const * | p_reg, |
nrf_kmu_event_t | event | ||
) |
Function for retrieving the state of the KMU event.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be checked. |
true | The event has been generated. |
false | The event has not been generated. |
NRF_STATIC_INLINE void nrf_kmu_event_clear | ( | NRF_KMU_Type * | p_reg, |
nrf_kmu_event_t | event | ||
) |
Function for clearing a specific KMU event.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to clear. |
NRF_STATIC_INLINE void nrf_kmu_int_disable | ( | NRF_KMU_Type * | p_reg, |
uint32_t | mask | ||
) |
Function for disabling specified interrupts.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Interrupts to be disabled. |
NRF_STATIC_INLINE void nrf_kmu_int_enable | ( | NRF_KMU_Type * | p_reg, |
uint32_t | mask | ||
) |
Function for enabling specified interrupts.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Interrupts to be enabled. |
NRF_STATIC_INLINE uint32_t nrf_kmu_int_enable_check | ( | NRF_KMU_Type const * | p_reg, |
uint32_t | mask | ||
) |
Function for checking if the specified interrupts are enabled.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | mask | Mask of interrupts to be checked. |
NRF_STATIC_INLINE uint32_t nrf_kmu_intpend_get | ( | NRF_KMU_Type const * | p_reg | ) |
Function for retrieving the state of interrupts.
Function returns bitmask. Please use nrf_kmu_int_mask_t to check interrupts status.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE uint8_t nrf_kmu_keyslot_get | ( | NRF_KMU_Type const * | p_reg | ) |
Function for getting the key slot ID.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE void nrf_kmu_keyslot_set | ( | NRF_KMU_Type * | p_reg, |
uint8_t | keyslot_id | ||
) |
Function for selecting the key slot ID.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | keyslot_id | Key slot ID to be read over AHB or pushed over secure APB when TASKS_PUSH_KEYSLOT is started. |
NRF_STATIC_INLINE uint32_t nrf_kmu_status_get | ( | NRF_KMU_Type const * | p_reg | ) |
Function for getting status bits of the KMU operation.
Function returns bitmask. Please use nrf_kmu_status_t to check operations status.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
NRF_STATIC_INLINE uint32_t nrf_kmu_task_address_get | ( | NRF_KMU_Type const * | p_reg, |
nrf_kmu_task_t | task | ||
) |
Function for getting the address of a specific KMU task register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | task | Requested task. |
NRF_STATIC_INLINE void nrf_kmu_task_trigger | ( | NRF_KMU_Type * | p_reg, |
nrf_kmu_task_t | task | ||
) |
Function for activating a specific KMU task.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | task | Task to be activated. |