Hardware access layer for managing the AES Electronic Codebook (ECB) peripheral.
More...
Hardware access layer for managing the AES Electronic Codebook (ECB) peripheral.
ECB events.
Enumerator |
---|
NRF_ECB_EVENT_ENDECB |
ECB block encrypt complete.
|
NRF_ECB_EVENT_ERRORECB |
ECB block encrypt aborted because of a STOPECB task or due to an error.
|
ECB interrupts.
Enumerator |
---|
NRF_ECB_INT_ENDECB_MASK |
Interrupt on ENDECB event.
|
NRF_ECB_INT_ERRORECB_MASK |
Interrupt on ERRORECB event.
|
ECB tasks.
Enumerator |
---|
NRF_ECB_TASK_STARTECB |
Task for starting ECB block encryption.
|
NRF_ECB_TASK_STOPECB |
Task for stopping ECB block encryption.
|
__STATIC_INLINE void* nrf_ecb_data_pointer_get |
( |
NRF_ECB_Type const * |
p_reg | ) |
|
Function for getting the pointer to the ECB data buffer.
- Parameters
-
[in] | p_reg | Pointer to the peripheral register structure. |
- Returns
- Pointer to the ECB data buffer.
__STATIC_INLINE void nrf_ecb_data_pointer_set |
( |
NRF_ECB_Type * |
p_reg, |
|
|
void const * |
p_buffer |
|
) |
| |
Function for setting the pointer to the ECB data buffer.
- Note
- The buffer has to be placed in the Data RAM region. For description of the data structure in this buffer, see the Product Specification.
- Parameters
-
[in] | p_reg | Pointer to the peripheral register structure. |
[in] | p_buffer | Pointer to the ECB data buffer. |
__STATIC_INLINE uint32_t nrf_ecb_event_address_get |
( |
NRF_ECB_Type const * |
p_reg, |
|
|
nrf_ecb_event_t |
event |
|
) |
| |
Function for getting the address of a specific ECB event register.
- Parameters
-
[in] | p_reg | Pointer to the peripheral register structure. |
[in] | event | Requested event. |
- Returns
- Address of the specified event register.
__STATIC_INLINE bool nrf_ecb_event_check |
( |
NRF_ECB_Type const * |
p_reg, |
|
|
nrf_ecb_event_t |
event |
|
) |
| |
Function for checking the state of a specific ECB event.
- Parameters
-
[in] | p_reg | Pointer to the peripheral register structure. |
[in] | event | Event to check. |
- Return values
-
true | If the event is set. |
false | If the event is not set. |
__STATIC_INLINE void nrf_ecb_event_clear |
( |
NRF_ECB_Type * |
p_reg, |
|
|
nrf_ecb_event_t |
event |
|
) |
| |
Function for clearing a specific ECB event.
- Parameters
-
[in] | p_reg | Pointer to the peripheral register structure. |
[in] | event | Event to clear. |
__STATIC_INLINE void nrf_ecb_int_disable |
( |
NRF_ECB_Type * |
p_reg, |
|
|
uint32_t |
mask |
|
) |
| |
Function for disabling specified interrupts.
- Parameters
-
[in] | p_reg | Pointer to the peripheral register structure. |
[in] | mask | Interrupts to disable. |
__STATIC_INLINE void nrf_ecb_int_enable |
( |
NRF_ECB_Type * |
p_reg, |
|
|
uint32_t |
mask |
|
) |
| |
Function for enabling specified interrupts.
- Parameters
-
[in] | p_reg | Pointer to the peripheral register structure. |
[in] | mask | Interrupts to enable. |
__STATIC_INLINE bool nrf_ecb_int_enable_check |
( |
NRF_ECB_Type const * |
p_reg, |
|
|
nrf_ecb_int_mask_t |
ecb_int |
|
) |
| |
Function for retrieving the state of a given interrupt.
- Parameters
-
[in] | p_reg | Pointer to the peripheral register structure. |
[in] | ecb_int | Interrupt to check. |
- Return values
-
true | If the interrupt is enabled. |
false | If the interrupt is not enabled. |
__STATIC_INLINE uint32_t nrf_ecb_task_address_get |
( |
NRF_ECB_Type const * |
p_reg, |
|
|
nrf_ecb_task_t |
task |
|
) |
| |
Function for getting the address of a specific ECB task register.
- Parameters
-
[in] | p_reg | Pointer to the peripheral register structure. |
[in] | task | Requested task. |
- Returns
- Address of the specified task register.
__STATIC_INLINE void nrf_ecb_task_trigger |
( |
NRF_ECB_Type * |
p_reg, |
|
|
nrf_ecb_task_t |
task |
|
) |
| |
Function for activating a specific ECB task.
- Parameters
-
[in] | p_reg | Pointer to the peripheral register structure. |
[in] | task | Task to activate. |