![]() |
nrfx 4.5.0
|
Hardware access layer for managing the Crypto Accelerator Engine (CRACEN) peripheral. More...
Enumerations | |
| enum | nrf_cracen_event_t { NRF_CRACEN_EVENT_CRYPTOMASTER = offsetof(NRF_CRACEN_Type, EVENTS_CRYPTOMASTER) , NRF_CRACEN_EVENT_RNG = offsetof(NRF_CRACEN_Type, EVENTS_RNG) , NRF_CRACEN_EVENT_PKE_IKG = offsetof(NRF_CRACEN_Type, EVENTS_PKEIKG) } |
| CRACEN events. More... | |
| enum | nrf_cracen_int_mask_t { NRF_CRACEN_INT_CRYPTOMASTER_MASK = CRACEN_INTENSET_CRYPTOMASTER_Msk , NRF_CRACEN_INT_RNG_MASK = CRACEN_INTENSET_RNG_Msk , NRF_CRACEN_INT_PKE_IKG_MASK = CRACEN_INTENSET_PKEIKG_Msk } |
| CRACEN interrupts. More... | |
| enum | nrf_cracen_module_mask_t { NRF_CRACEN_MODULE_CRYPTOMASTER_MASK = CRACEN_ENABLE_CRYPTOMASTER_Msk , NRF_CRACEN_MODULE_RNG_MASK = CRACEN_ENABLE_RNG_Msk , NRF_CRACEN_MODULE_PKE_IKG_MASK = CRACEN_ENABLE_PKEIKG_Msk } |
| CRACEN modules mask. More... | |
Functions | |
| NRF_STATIC_INLINE uint32_t | nrf_cracen_event_address_get (NRF_CRACEN_Type const *p_reg, nrf_cracen_event_t event) |
| Function for getting the address of the specified CRACEN event. | |
| NRF_STATIC_INLINE void | nrf_cracen_event_clear (NRF_CRACEN_Type *p_reg, nrf_cracen_event_t event) |
| Function for clearing the specified CRACEN event. | |
| NRF_STATIC_INLINE bool | nrf_cracen_event_check (NRF_CRACEN_Type const *p_reg, nrf_cracen_event_t event) |
| Function for checking the state of the specified CRACEN event. | |
| NRF_STATIC_INLINE void | nrf_cracen_int_enable (NRF_CRACEN_Type *p_reg, uint32_t mask) |
| Function for enabling the specified interrupts. | |
| NRF_STATIC_INLINE uint32_t | nrf_cracen_int_enable_check (NRF_CRACEN_Type const *p_reg, uint32_t mask) |
| Function for checking if the specified interrupts are enabled. | |
| NRF_STATIC_INLINE void | nrf_cracen_int_disable (NRF_CRACEN_Type *p_reg, uint32_t mask) |
| Function for disabling the specified interrupts. | |
| NRF_STATIC_INLINE void | nrf_cracen_module_enable (NRF_CRACEN_Type *p_reg, uint32_t modules) |
| Function for enabling CRACEN modules. | |
| NRF_STATIC_INLINE void | nrf_cracen_module_disable (NRF_CRACEN_Type *p_reg, uint32_t modules) |
| Function for disabling CRACEN modules. | |
| NRF_STATIC_INLINE uint32_t | nrf_cracen_module_get (NRF_CRACEN_Type const *p_reg) |
| Function for getting enabled CRACEN modules. | |
| NRF_STATIC_INLINE void | nrf_cracen_seedram_lock_enable_set (NRF_CRACEN_Type *p_reg, bool enable) |
| Function for enabling or disabling lock on access to the RAM used for the seed. | |
| NRF_STATIC_INLINE bool | nrf_cracen_seedram_lock_check (NRF_CRACEN_Type const *p_reg) |
| Function for checking if access to the RAM used for the seed is locked. | |
| NRF_STATIC_INLINE void | nrf_cracen_seed_set (NRF_CRACEN_Type *p_reg, uint8_t idx, uint32_t value) |
| Function for setting specified seed word for private key generation. | |
Hardware access layer for managing the Crypto Accelerator Engine (CRACEN) peripheral.
| enum nrf_cracen_event_t |
| NRF_STATIC_INLINE uint32_t nrf_cracen_event_address_get | ( | NRF_CRACEN_Type const * | p_reg, |
| nrf_cracen_event_t | event ) |
Function for getting the address of the specified CRACEN event.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | CRACEN event. |
| NRF_STATIC_INLINE bool nrf_cracen_event_check | ( | NRF_CRACEN_Type const * | p_reg, |
| nrf_cracen_event_t | event ) |
Function for checking the state of the specified CRACEN event.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | CRACEN event to be checked. |
| true | The event has been generated. |
| false | The event has not been generated. |
| NRF_STATIC_INLINE void nrf_cracen_event_clear | ( | NRF_CRACEN_Type * | p_reg, |
| nrf_cracen_event_t | event ) |
Function for clearing the specified CRACEN event.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | event | CRACEN event to be cleared. |
| NRF_STATIC_INLINE void nrf_cracen_int_disable | ( | NRF_CRACEN_Type * | p_reg, |
| uint32_t | mask ) |
Function for disabling the specified interrupts.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be disabled. Use nrf_cracen_int_mask_t values for bit masking. |
| NRF_STATIC_INLINE void nrf_cracen_int_enable | ( | NRF_CRACEN_Type * | p_reg, |
| uint32_t | mask ) |
Function for enabling the specified interrupts.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | mask | Mask of interrupts to be enabled. Use nrf_cracen_int_mask_t values for bit masking. |
| NRF_STATIC_INLINE uint32_t nrf_cracen_int_enable_check | ( | NRF_CRACEN_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. Use nrf_cracen_int_mask_t values for bit masking. |
| NRF_STATIC_INLINE void nrf_cracen_module_disable | ( | NRF_CRACEN_Type * | p_reg, |
| uint32_t | modules ) |
Function for disabling CRACEN modules.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | modules | Mask of modules to be disabled. See nrf_cracen_module_mask_t. |
| NRF_STATIC_INLINE void nrf_cracen_module_enable | ( | NRF_CRACEN_Type * | p_reg, |
| uint32_t | modules ) |
Function for enabling CRACEN modules.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | modules | Mask of modules to be enabled. See nrf_cracen_module_mask_t. |
| NRF_STATIC_INLINE uint32_t nrf_cracen_module_get | ( | NRF_CRACEN_Type const * | p_reg | ) |
Function for getting enabled CRACEN modules.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| NRF_STATIC_INLINE void nrf_cracen_seed_set | ( | NRF_CRACEN_Type * | p_reg, |
| uint8_t | idx, | ||
| uint32_t | value ) |
Function for setting specified seed word for private key generation.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | idx | Index of the seed word. |
| [in] | value | Seed value to be set. |
| NRF_STATIC_INLINE bool nrf_cracen_seedram_lock_check | ( | NRF_CRACEN_Type const * | p_reg | ) |
Function for checking if access to the RAM used for the seed is locked.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| true | Access to the RAM used for the seed is locked. |
| false | Access to the RAM used for the seed is unlocked. |
| NRF_STATIC_INLINE void nrf_cracen_seedram_lock_enable_set | ( | NRF_CRACEN_Type * | p_reg, |
| bool | enable ) |
Function for enabling or disabling lock on access to the RAM used for the seed.
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | enable | True if lock is to be enabled, false otherwise. |