ACL HAL

group nrf_acl_hal

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

Enums

enum nrf_acl_perm_t

ACL permissions.

Values:

enumerator NRF_ACL_PERM_READ_NO_WRITE

Read allowed, write disallowed.

enumerator NRF_ACL_PERM_NO_READ_WRITE

Read disallowed, write allowed.

enumerator NRF_ACL_PERM_NO_READ_NO_WRITE

Read disallowed, write disallowed.

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.

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

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • region_id[in] ACL region index.

  • address[in] Start address.

  • size[in] Size of region to protect in bytes.

  • perm[in] Permissions to set for region to protect.

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:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • region_id[in] ACL region index.

Returns:

Configured region address of given ACL region.

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:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • region_id[in] ACL region index.

Returns:

Configured region size of given ACL region.

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:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • region_id[in] ACL region index.

Returns:

Configured region permissions of given ACL region.