nrfx 2.5
Enumerations | Functions
ACL HAL

Hardware access layer for managing the Access Control List (ACL) peripheral. More...

Enumerations

enum  nrf_acl_perm_t {
  NRF_ACL_PERM_READ_NO_WRITE = ACL_ACL_PERM_WRITE_Msk,
  NRF_ACL_PERM_NO_READ_WRITE = ACL_ACL_PERM_READ_Msk,
  NRF_ACL_PERM_NO_READ_NO_WRITE = ACL_ACL_PERM_READ_Msk | ACL_ACL_PERM_WRITE_Msk
}
 ACL permissions. More...
 

Functions

NRF_STATIC_INLINE void nrf_acl_region_set (NRF_ACL_Type *p_reg, uint32_t region_id, uint32_t address, size_t size, nrf_acl_perm_t perm)
 Function for setting region parameters for given ACL region. More...
 
NRF_STATIC_INLINE uint32_t nrf_acl_region_address_get (NRF_ACL_Type const *p_reg, uint32_t region_id)
 Function for getting the configured region address of a specific ACL region. More...
 
NRF_STATIC_INLINE size_t nrf_acl_region_size_get (NRF_ACL_Type const *p_reg, uint32_t region_id)
 Function for getting the configured region size of a specific ACL region. More...
 
NRF_STATIC_INLINE nrf_acl_perm_t nrf_acl_region_perm_get (NRF_ACL_Type const *p_reg, uint32_t region_id)
 Function for getting the configured region permissions of a specific ACL region. More...
 

Detailed Description

Hardware access layer for managing the Access Control List (ACL) peripheral.

Enumeration Type Documentation

◆ nrf_acl_perm_t

ACL permissions.

Enumerator
NRF_ACL_PERM_READ_NO_WRITE 

Read allowed, write disallowed.

NRF_ACL_PERM_NO_READ_WRITE 

Read disallowed, write allowed.

NRF_ACL_PERM_NO_READ_NO_WRITE 

Read disallowed, write disallowed.

Function Documentation

◆ nrf_acl_region_address_get()

NRF_STATIC_INLINE uint32_t nrf_acl_region_address_get ( NRF_ACL_Type const *  p_reg,
uint32_t  region_id 
)

Function for getting the configured region address of a specific ACL region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]region_idACL region index.
Returns
Configured region address of given ACL region.

◆ nrf_acl_region_perm_get()

NRF_STATIC_INLINE nrf_acl_perm_t nrf_acl_region_perm_get ( NRF_ACL_Type const *  p_reg,
uint32_t  region_id 
)

Function for getting the configured region permissions of a specific ACL region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]region_idACL region index.
Returns
Configured region permissions of given ACL region.

◆ nrf_acl_region_set()

NRF_STATIC_INLINE void nrf_acl_region_set ( NRF_ACL_Type *  p_reg,
uint32_t  region_id,
uint32_t  address,
size_t  size,
nrf_acl_perm_t  perm 
)

Function for setting region parameters for given ACL region.

Address must be word and page aligned. Size must be page aligned.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]region_idACL region index.
[in]addressStart address.
[in]sizeSize of region to protect in bytes.
[in]permPermissions to set for region to protect.

◆ nrf_acl_region_size_get()

NRF_STATIC_INLINE size_t nrf_acl_region_size_get ( NRF_ACL_Type const *  p_reg,
uint32_t  region_id 
)

Function for getting the configured region size of a specific ACL region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]region_idACL region index.
Returns
Configured region size of given ACL region.

Documentation feedback | Developer Zone | Subscribe | Updated