nrfx 2.10
Enumerations | Functions
AES ECB encryption HAL

Hardware access layer (HAL) for managing the Advanced Encryption Standard (AES) Electronic Codebook (ECB) peripheral. More...

Enumerations

enum  nrf_ecb_task_t {
  NRF_ECB_TASK_STARTECB = offsetof(NRF_ECB_Type, TASKS_STARTECB) ,
  NRF_ECB_TASK_STOPECB = offsetof(NRF_ECB_Type, TASKS_STOPECB)
}
 ECB tasks. More...
 
enum  nrf_ecb_event_t {
  NRF_ECB_EVENT_ENDECB = offsetof(NRF_ECB_Type, EVENTS_ENDECB) ,
  NRF_ECB_EVENT_ERRORECB = offsetof(NRF_ECB_Type, EVENTS_ERRORECB)
}
 ECB events. More...
 
enum  nrf_ecb_int_mask_t {
  NRF_ECB_INT_ENDECB_MASK = ECB_INTENSET_ENDECB_Msk ,
  NRF_ECB_INT_ERRORECB_MASK = ECB_INTENSET_ERRORECB_Msk
}
 ECB interrupts. More...
 

Functions

NRF_STATIC_INLINE void nrf_ecb_task_trigger (NRF_ECB_Type *p_reg, nrf_ecb_task_t task)
 Function for activating the specified ECB task. More...
 
NRF_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 the specified ECB task register. More...
 
NRF_STATIC_INLINE void nrf_ecb_event_clear (NRF_ECB_Type *p_reg, nrf_ecb_event_t event)
 Function for clearing the specified ECB event. More...
 
NRF_STATIC_INLINE bool nrf_ecb_event_check (NRF_ECB_Type const *p_reg, nrf_ecb_event_t event)
 Function for retrieving the state of the ECB event. More...
 
NRF_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 the specified ECB event register. More...
 
NRF_STATIC_INLINE void nrf_ecb_int_enable (NRF_ECB_Type *p_reg, uint32_t mask)
 Function for enabling the specified interrupts. More...
 
NRF_STATIC_INLINE void nrf_ecb_int_disable (NRF_ECB_Type *p_reg, uint32_t mask)
 Function for disabling the specified interrupts. More...
 
NRF_STATIC_INLINE uint32_t nrf_ecb_int_enable_check (NRF_ECB_Type const *p_reg, uint32_t mask)
 Function for checking if the specified interrupts are enabled. More...
 
NRF_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. More...
 
NRF_STATIC_INLINE void * nrf_ecb_data_pointer_get (NRF_ECB_Type const *p_reg)
 Function for getting the pointer to the ECB data buffer. More...
 
NRF_STATIC_INLINE void nrf_ecb_subscribe_set (NRF_ECB_Type *p_reg, nrf_ecb_task_t task, uint8_t channel)
 Function for setting the subscribe configuration for a given ECB task. More...
 
NRF_STATIC_INLINE void nrf_ecb_subscribe_clear (NRF_ECB_Type *p_reg, nrf_ecb_task_t task)
 Function for clearing the subscribe configuration for a given ECB task. More...
 
NRF_STATIC_INLINE void nrf_ecb_publish_set (NRF_ECB_Type *p_reg, nrf_ecb_event_t event, uint8_t channel)
 Function for setting the publish configuration for a given ECB event. More...
 
NRF_STATIC_INLINE void nrf_ecb_publish_clear (NRF_ECB_Type *p_reg, nrf_ecb_event_t event)
 Function for clearing the publish configuration for a given ECB event. More...
 

Detailed Description

Hardware access layer (HAL) for managing the Advanced Encryption Standard (AES) Electronic Codebook (ECB) peripheral.

Enumeration Type Documentation

◆ nrf_ecb_event_t

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.

◆ nrf_ecb_int_mask_t

ECB interrupts.

Enumerator
NRF_ECB_INT_ENDECB_MASK 

Interrupt on ENDECB event.

NRF_ECB_INT_ERRORECB_MASK 

Interrupt on ERRORECB event.

◆ nrf_ecb_task_t

ECB tasks.

Enumerator
NRF_ECB_TASK_STARTECB 

Task for starting the ECB block encryption.

NRF_ECB_TASK_STOPECB 

Task for stopping the ECB block encryption.

Function Documentation

◆ nrf_ecb_data_pointer_get()

NRF_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_regPointer to the peripheral register structure.
Returns
Pointer to the ECB data buffer.

◆ nrf_ecb_data_pointer_set()

NRF_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_regPointer to the peripheral register structure.
[in]p_bufferPointer to the ECB data buffer.

◆ nrf_ecb_event_address_get()

NRF_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 the specified ECB event register.

Parameters
[in]p_regPointer to the peripheral register structure.
[in]eventRequested event.
Returns
Address of the specified event register.

◆ nrf_ecb_event_check()

NRF_STATIC_INLINE bool nrf_ecb_event_check ( NRF_ECB_Type const *  p_reg,
nrf_ecb_event_t  event 
)

Function for retrieving the state of the ECB event.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent to be checked.
Return values
trueThe event has been generated.
falseThe event has not been generated.

◆ nrf_ecb_event_clear()

NRF_STATIC_INLINE void nrf_ecb_event_clear ( NRF_ECB_Type *  p_reg,
nrf_ecb_event_t  event 
)

Function for clearing the specified ECB event.

Parameters
[in]p_regPointer to the peripheral register structure.
[in]eventEvent to clear.

◆ nrf_ecb_int_disable()

NRF_STATIC_INLINE void nrf_ecb_int_disable ( NRF_ECB_Type *  p_reg,
uint32_t  mask 
)

Function for disabling the specified interrupts.

Parameters
[in]p_regPointer to the peripheral register structure.
[in]maskInterrupts to be disabled.

◆ nrf_ecb_int_enable()

NRF_STATIC_INLINE void nrf_ecb_int_enable ( NRF_ECB_Type *  p_reg,
uint32_t  mask 
)

Function for enabling the specified interrupts.

Parameters
[in]p_regPointer to the peripheral register structure.
[in]maskInterrupts to be enabled.

◆ nrf_ecb_int_enable_check()

NRF_STATIC_INLINE uint32_t nrf_ecb_int_enable_check ( NRF_ECB_Type const *  p_reg,
uint32_t  mask 
)

Function for checking if the specified interrupts are enabled.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be checked.
Returns
Mask of enabled interrupts.

◆ nrf_ecb_publish_clear()

NRF_STATIC_INLINE void nrf_ecb_publish_clear ( NRF_ECB_Type *  p_reg,
nrf_ecb_event_t  event 
)

Function for clearing the publish configuration for a given ECB event.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent for which to clear the configuration.

◆ nrf_ecb_publish_set()

NRF_STATIC_INLINE void nrf_ecb_publish_set ( NRF_ECB_Type *  p_reg,
nrf_ecb_event_t  event,
uint8_t  channel 
)

Function for setting the publish configuration for a given ECB event.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent for which to set the configuration.
[in]channelChannel through which to publish the event.

◆ nrf_ecb_subscribe_clear()

NRF_STATIC_INLINE void nrf_ecb_subscribe_clear ( NRF_ECB_Type *  p_reg,
nrf_ecb_task_t  task 
)

Function for clearing the subscribe configuration for a given ECB task.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]taskTask for which to clear the configuration.

◆ nrf_ecb_subscribe_set()

NRF_STATIC_INLINE void nrf_ecb_subscribe_set ( NRF_ECB_Type *  p_reg,
nrf_ecb_task_t  task,
uint8_t  channel 
)

Function for setting the subscribe configuration for a given ECB task.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]taskTask for which to set the configuration.
[in]channelChannel through which to subscribe events.

◆ nrf_ecb_task_address_get()

NRF_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 the specified ECB task register.

Parameters
[in]p_regPointer to the peripheral register structure.
[in]taskRequested task.
Returns
Address of the specified task register.

◆ nrf_ecb_task_trigger()

NRF_STATIC_INLINE void nrf_ecb_task_trigger ( NRF_ECB_Type *  p_reg,
nrf_ecb_task_t  task 
)

Function for activating the specified ECB task.

Parameters
[in]p_regPointer to the peripheral register structure.
[in]taskTask to be activated.

Documentation feedback | Developer Zone | Subscribe | Updated