Hardware access layer for managing the Access Control List (ACL) peripheral.
More...
|
| __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...
|
| |
| __STATIC_INLINE uint32_t | nrf_acl_region_address_get (NRF_ACL_Type *p_reg, uint32_t region_id) |
| | Function for getting the configured region address of a specific ACL region. More...
|
| |
| __STATIC_INLINE size_t | nrf_acl_region_size_get (NRF_ACL_Type *p_reg, uint32_t region_id) |
| | Function for getting the configured region size of a specific ACL region. More...
|
| |
| __STATIC_INLINE nrf_acl_perm_t | nrf_acl_region_perm_get (NRF_ACL_Type *p_reg, uint32_t region_id) |
| | Function for getting the configured region permissions of a specific ACL region. More...
|
| |
Hardware access layer for managing the Access Control List (ACL) peripheral.
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.
|
| __STATIC_INLINE uint32_t nrf_acl_region_address_get |
( |
NRF_ACL_Type * |
p_reg, |
|
|
uint32_t |
region_id |
|
) |
| |
Function for getting the configured region address of a specific ACL region.
- Parameters
-
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | region_id | ACL region index. |
- Returns
- Configured region address of given ACL region.
| __STATIC_INLINE nrf_acl_perm_t nrf_acl_region_perm_get |
( |
NRF_ACL_Type * |
p_reg, |
|
|
uint32_t |
region_id |
|
) |
| |
Function for getting the configured region permissions of a specific ACL region.
- Parameters
-
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | region_id | ACL region index. |
- Returns
- Configured region permissions of given ACL region.
| __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_reg | Pointer to the structure of registers of the peripheral. |
| [in] | region_id | ACL region index. |
| [in] | address | Start address. |
| [in] | size | Size of region to protect in bytes. |
| [in] | perm | Permissions to set for region to protect. |
| __STATIC_INLINE size_t nrf_acl_region_size_get |
( |
NRF_ACL_Type * |
p_reg, |
|
|
uint32_t |
region_id |
|
) |
| |
Function for getting the configured region size of a specific ACL region.
- Parameters
-
| [in] | p_reg | Pointer to the structure of registers of the peripheral. |
| [in] | region_id | ACL region index. |
- Returns
- Configured region size of given ACL region.