nrfx 3.3
Data Structures | Macros | Enumerations | Functions
MPC HAL

Hardware access layer for managing the Memory Privilege Controller (MPC) peripheral. More...

Data Structures

struct  nrf_mpc_region_config_t
 Region configuration. More...
 
struct  nrf_mpc_override_config_t
 Override region configuration. More...
 

Macros

#define NRF_MPC_HAS_RTCHOKE   1
 Symbol indicating whether RTCHOKE functionality is present.
 
#define NRF_MPC_HAS_SECDOM   1
 Symbol indicating whether SECDOM functionality is present.
 
#define NRF_MPC_HAS_OVERRIDE_OFFSET   1
 Symbol indicating whether OVERRIDE OFFSET functionality is present.
 
#define NRF_MPC_REGION_COUNT   MPC_REGION_MaxCount
 Number of regions.
 
#define NRF_MPC_OVERRIDE_COUNT   MPC_OVERRIDE_MaxCount
 Number of override regions.
 
#define NRF_MPC_MASTER_PORTS_COUNT   MPC_MASTER_PORTS_MaxCount
 Number of master ports.
 
#define NRF_MPC_RTCHOKE_COUNT   MPC_RTCHOKE_DELAY_MaxCount
 Number of Real Time Choke slaves.
 

Enumerations

enum  nrf_mpc_event_t { NRF_MPC_EVENT_MEMACCERR = offsetof(NRF_MPC_Type, EVENTS_MEMACCERR) }
 MPC events. More...
 
enum  nrf_mpc_int_mask_t { NRF_MPC_INT_MEMACCERR_MASK = MPC_INTENSET_MEMACCERR_Msk }
 MPC interrupts. More...
 
enum  nrf_mpc_errorsource_t {
  NRF_MPC_ERRORSOURCE_SLAVE = MPC_MEMACCERR_INFO_ERRORSOURCE_Slave ,
  NRF_MPC_ERRORSOURCE_MPC = MPC_MEMACCERR_INFO_ERRORSOURCE_MPC
}
 Error sources. More...
 
enum  nrf_mpc_permission_mask_t {
  NRF_MPC_PERM_READ_MASK = MPC_OVERRIDE_PERM_READ_Msk ,
  NRF_MPC_PERM_WRITE_MASK = MPC_OVERRIDE_PERM_WRITE_Msk ,
  NRF_MPC_PERM_EXECUTE_MASK = MPC_OVERRIDE_PERM_EXECUTE_Msk ,
  NRF_MPC_PERM_SECURE_MASK = MPC_OVERRIDE_PERM_SECATTR_Msk
}
 Permissions mask. More...
 
enum  nrf_mpc_masterport_mask_t {
  NRF_MPC_MASTERPORT_0_MASK = MPC_REGION_MASTERPORT_ENABLE0_Msk ,
  NRF_MPC_MASTERPORT_1_MASK = MPC_REGION_MASTERPORT_ENABLE1_Msk ,
  NRF_MPC_MASTERPORT_2_MASK = MPC_REGION_MASTERPORT_ENABLE2_Msk ,
  NRF_MPC_MASTERPORT_3_MASK = MPC_REGION_MASTERPORT_ENABLE3_Msk ,
  NRF_MPC_MASTERPORT_4_MASK = MPC_REGION_MASTERPORT_ENABLE4_Msk ,
  NRF_MPC_MASTERPORT_5_MASK = MPC_REGION_MASTERPORT_ENABLE5_Msk ,
  NRF_MPC_MASTERPORT_6_MASK = MPC_REGION_MASTERPORT_ENABLE6_Msk ,
  NRF_MPC_MASTERPORT_7_MASK = MPC_REGION_MASTERPORT_ENABLE7_Msk ,
  NRF_MPC_MASTERPORT_8_MASK = MPC_REGION_MASTERPORT_ENABLE8_Msk ,
  NRF_MPC_MASTERPORT_9_MASK = MPC_REGION_MASTERPORT_ENABLE9_Msk ,
  NRF_MPC_MASTERPORT_10_MASK = MPC_REGION_MASTERPORT_ENABLE10_Msk ,
  NRF_MPC_MASTERPORT_11_MASK = MPC_REGION_MASTERPORT_ENABLE11_Msk ,
  NRF_MPC_MASTERPORT_12_MASK = MPC_REGION_MASTERPORT_ENABLE12_Msk ,
  NRF_MPC_MASTERPORT_13_MASK = MPC_REGION_MASTERPORT_ENABLE13_Msk ,
  NRF_MPC_MASTERPORT_14_MASK = MPC_REGION_MASTERPORT_ENABLE14_Msk
}
 Masterport mask. More...
 

Functions

NRF_STATIC_INLINE bool nrf_mpc_event_check (NRF_MPC_Type const *p_reg, nrf_mpc_event_t event)
 Function for retrieving the state of the specified MPC event.
 
NRF_STATIC_INLINE void nrf_mpc_event_clear (NRF_MPC_Type *p_reg, nrf_mpc_event_t event)
 Function for clearing the specified MPC event.
 
NRF_STATIC_INLINE uint32_t nrf_mpc_event_address_get (NRF_MPC_Type const *p_reg, nrf_mpc_event_t event)
 Function for getting the address of the specified MPC event register.
 
NRF_STATIC_INLINE void nrf_mpc_int_enable (NRF_MPC_Type *p_reg, uint32_t mask)
 Function for enabling the specified interrupts.
 
NRF_STATIC_INLINE uint32_t nrf_mpc_int_enable_check (NRF_MPC_Type const *p_reg, uint32_t mask)
 Function for checking if the specified interrupts are enabled.
 
NRF_STATIC_INLINE void nrf_mpc_int_disable (NRF_MPC_Type *p_reg, uint32_t mask)
 Function for disabling the specified interrupts.
 
NRF_STATIC_INLINE void nrf_mpc_region_config_set (NRF_MPC_Type *p_reg, uint8_t index, nrf_mpc_region_config_t const *p_config)
 Function for setting configuration of the region.
 
NRF_STATIC_INLINE nrf_mpc_region_config_t nrf_mpc_region_config_get (NRF_MPC_Type const *p_reg, uint8_t index)
 Function for getting configuration of the region.
 
NRF_STATIC_INLINE void nrf_mpc_region_startaddr_set (NRF_MPC_Type *p_reg, uint8_t index, uint32_t address)
 Function for setting start address of the region.
 
NRF_STATIC_INLINE uint32_t nrf_mpc_region_startaddr_get (NRF_MPC_Type const *p_reg, uint8_t index)
 Function for getting start address of the region.
 
NRF_STATIC_INLINE void nrf_mpc_region_addrmask_set (NRF_MPC_Type *p_reg, uint8_t index, uint32_t address)
 Function for setting address mask of the region.
 
NRF_STATIC_INLINE uint32_t nrf_mpc_region_addrmask_get (NRF_MPC_Type const *p_reg, uint8_t index)
 Function for getting address mask of the region.
 
NRF_STATIC_INLINE void nrf_mpc_region_masterport_set (NRF_MPC_Type *p_reg, uint8_t index, uint32_t mask)
 Function for enabling the specified master ports of the region.
 
NRF_STATIC_INLINE uint32_t nrf_mpc_region_masterport_get (NRF_MPC_Type const *p_reg, uint8_t index)
 Function for getting enabled master ports of the region.
 
NRF_STATIC_INLINE void nrf_mpc_override_config_set (NRF_MPC_Type *p_reg, uint8_t index, nrf_mpc_override_config_t const *p_config)
 Function for setting configuration of the override region.
 
NRF_STATIC_INLINE nrf_mpc_override_config_t nrf_mpc_override_config_get (NRF_MPC_Type const *p_reg, uint8_t index)
 Function for getting configuration of the override region.
 
NRF_STATIC_INLINE void nrf_mpc_override_startaddr_set (NRF_MPC_Type *p_reg, uint8_t index, uint32_t address)
 Function for setting start address of the override region.
 
NRF_STATIC_INLINE uint32_t nrf_mpc_override_startaddr_get (NRF_MPC_Type const *p_reg, uint8_t index)
 Function for getting start address of the override region.
 
NRF_STATIC_INLINE void nrf_mpc_override_endaddr_set (NRF_MPC_Type *p_reg, uint8_t index, uint32_t address)
 Function for setting end address of the override region.
 
NRF_STATIC_INLINE uint32_t nrf_mpc_override_endaddr_get (NRF_MPC_Type const *p_reg, uint8_t index)
 Function for getting end address of the override region.
 
NRF_STATIC_INLINE void nrf_mpc_override_offset_set (NRF_MPC_Type *p_reg, uint8_t index, uint32_t offset)
 Function for setting offset of the override region.
 
NRF_STATIC_INLINE uint32_t nrf_mpc_override_offset_get (NRF_MPC_Type const *p_reg, uint8_t index)
 Function for getting offset of the override region.
 
NRF_STATIC_INLINE void nrf_mpc_override_perm_set (NRF_MPC_Type *p_reg, uint8_t index, uint32_t permissions)
 Function for setting permission settings for the override region.
 
NRF_STATIC_INLINE uint32_t nrf_mpc_override_perm_get (NRF_MPC_Type const *p_reg, uint8_t index)
 Function for getting permission settings of the override region.
 
NRF_STATIC_INLINE void nrf_mpc_override_permmask_set (NRF_MPC_Type *p_reg, uint8_t index, uint32_t permissions)
 Function for setting permission settings mask for the override region.
 
NRF_STATIC_INLINE uint32_t nrf_mpc_override_permmask_get (NRF_MPC_Type const *p_reg, uint8_t index)
 Function for getting permission settings mask of the override region.
 
NRF_STATIC_INLINE void nrf_mpc_override_ownerid_set (NRF_MPC_Type *p_reg, uint8_t index, nrf_owner_t owner_id)
 Function for setting owner ID for the override region.
 
NRF_STATIC_INLINE nrf_owner_t nrf_mpc_override_ownerid_get (NRF_MPC_Type *p_reg, uint8_t index)
 Function for getting owner ID of the override region.
 
NRF_STATIC_INLINE void nrf_mpc_override_masterport_set (NRF_MPC_Type *p_reg, uint8_t index, uint32_t mask)
 Function for enabling the specified master ports of the override region.
 
NRF_STATIC_INLINE uint32_t nrf_mpc_override_masterport_get (NRF_MPC_Type const *p_reg, uint8_t index)
 Function for getting enabled master ports of the override region.
 
NRF_STATIC_INLINE uint32_t nrf_mpc_memaccerr_address_get (NRF_MPC_Type const *p_reg)
 Function for getting the memory address of memory access error.
 
NRF_STATIC_INLINE nrf_owner_t nrf_mpc_memaccerr_info_ownerid_get (NRF_MPC_Type const *p_reg)
 Function for getting the owner identifier of the transaction that triggered memory access error.
 
NRF_STATIC_INLINE uint8_t nrf_mpc_memaccerr_info_masterport_get (NRF_MPC_Type const *p_reg)
 Function for getting the master port of the transaction that triggered memory access error.
 
NRF_STATIC_INLINE uint32_t nrf_mpc_memaccerr_info_perm_get (NRF_MPC_Type const *p_reg)
 Function for getting the permissions of the transaction that triggered memory access error.
 
NRF_STATIC_INLINE nrf_mpc_errorsource_t nrf_mpc_memaccerr_info_errorsource_get (NRF_MPC_Type const *p_reg)
 Function for getting the source of the transaction that triggered memory access error.
 
NRF_STATIC_INLINE void nrf_mpc_globalslave_masterport_set (NRF_MPC_Type *p_reg, uint32_t mask)
 Function for enabling the specified master ports connection to global slave.
 
NRF_STATIC_INLINE uint32_t nrf_mpc_globalslave_masterport_get (NRF_MPC_Type const *p_reg)
 Function for getting enabled master ports connection to global slave.
 
NRF_STATIC_INLINE void nrf_mpc_globalslave_lock_enable (NRF_MPC_Type *p_reg)
 Function for enabling the global slave registers lock.
 
NRF_STATIC_INLINE bool nrf_mpc_globalslave_lock_check (NRF_MPC_Type const *p_reg)
 Function for getting the status of the global slave registers lock.
 
NRF_STATIC_INLINE void nrf_mpc_rtchoke_writeaccess_set (NRF_MPC_Type *p_reg, uint32_t mask)
 Function for enabling the AXI Write Address Channel Real Time Choke for specified master ports.
 
NRF_STATIC_INLINE uint32_t nrf_mpc_rtchoke_writeaccess_get (NRF_MPC_Type const *p_reg)
 Function for getting master ports with enabled AXI Write Address Channel Real Time Choke.
 
NRF_STATIC_INLINE void nrf_mpc_rtchoke_readaccess_set (NRF_MPC_Type *p_reg, uint32_t mask)
 Function for enabling the AXI Read Address Channel Real Time Choke for specified master ports.
 
NRF_STATIC_INLINE uint32_t nrf_mpc_rtchoke_readaccess_get (NRF_MPC_Type const *p_reg)
 Function for getting master ports with enabled AXI Read Address Channel Real Time Choke.
 
NRF_STATIC_INLINE void nrf_mpc_rtchoke_delay_set (NRF_MPC_Type *p_reg, uint8_t slave, uint8_t delay)
 Function for setting the Real Time Choke delay for the specified slave.
 
NRF_STATIC_INLINE uint8_t nrf_mpc_rtchoke_delay_get (NRF_MPC_Type const *p_reg, uint8_t slave)
 Function for getting the Real Time Choke delay for the specified slave.
 

Detailed Description

Hardware access layer for managing the Memory Privilege Controller (MPC) peripheral.

Enumeration Type Documentation

◆ nrf_mpc_errorsource_t

Error sources.

Enumerator
NRF_MPC_ERRORSOURCE_SLAVE 

Error was triggered by an AXI slave.

NRF_MPC_ERRORSOURCE_MPC 

Error was triggered by MCP module.

◆ nrf_mpc_event_t

MPC events.

Enumerator
NRF_MPC_EVENT_MEMACCERR 

Memory access error.

◆ nrf_mpc_int_mask_t

MPC interrupts.

Enumerator
NRF_MPC_INT_MEMACCERR_MASK 

Interrupt on MEMACCERR event.

◆ nrf_mpc_masterport_mask_t

Masterport mask.

Enumerator
NRF_MPC_MASTERPORT_0_MASK 

Enable master port 0.

NRF_MPC_MASTERPORT_1_MASK 

Enable master port 1.

NRF_MPC_MASTERPORT_2_MASK 

Enable master port 2.

NRF_MPC_MASTERPORT_3_MASK 

Enable master port 3.

NRF_MPC_MASTERPORT_4_MASK 

Enable master port 4.

NRF_MPC_MASTERPORT_5_MASK 

Enable master port 5.

NRF_MPC_MASTERPORT_6_MASK 

Enable master port 6.

NRF_MPC_MASTERPORT_7_MASK 

Enable master port 7.

NRF_MPC_MASTERPORT_8_MASK 

Enable master port 8.

NRF_MPC_MASTERPORT_9_MASK 

Enable master port 9.

NRF_MPC_MASTERPORT_10_MASK 

Enable master port 10.

NRF_MPC_MASTERPORT_11_MASK 

Enable master port 11.

NRF_MPC_MASTERPORT_12_MASK 

Enable master port 12.

NRF_MPC_MASTERPORT_13_MASK 

Enable master port 13.

NRF_MPC_MASTERPORT_14_MASK 

Enable master port 14.

◆ nrf_mpc_permission_mask_t

Permissions mask.

Note
This enum may be used for both permission settings and permission settings mask.
Enumerator
NRF_MPC_PERM_READ_MASK 

Read access.

NRF_MPC_PERM_WRITE_MASK 

Write access.

NRF_MPC_PERM_EXECUTE_MASK 

Software execute.

NRF_MPC_PERM_SECURE_MASK 

Security mapping.

Function Documentation

◆ nrf_mpc_event_address_get()

NRF_STATIC_INLINE uint32_t nrf_mpc_event_address_get ( NRF_MPC_Type const *  p_reg,
nrf_mpc_event_t  event 
)

Function for getting the address of the specified MPC event register.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent to get the address of.
Returns
Address of the specified event register.

◆ nrf_mpc_event_check()

NRF_STATIC_INLINE bool nrf_mpc_event_check ( NRF_MPC_Type const *  p_reg,
nrf_mpc_event_t  event 
)

Function for retrieving the state of the specified MPC 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_mpc_event_clear()

NRF_STATIC_INLINE void nrf_mpc_event_clear ( NRF_MPC_Type *  p_reg,
nrf_mpc_event_t  event 
)

Function for clearing the specified MPC event.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent to be cleared.

◆ nrf_mpc_globalslave_lock_check()

NRF_STATIC_INLINE bool nrf_mpc_globalslave_lock_check ( NRF_MPC_Type const *  p_reg)

Function for getting the status of the global slave registers lock.

Note
When global slave registers is enabled, modifying the global slave configuration is not possible.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
True if global slave registers are locked, false otherwise.

◆ nrf_mpc_globalslave_lock_enable()

NRF_STATIC_INLINE void nrf_mpc_globalslave_lock_enable ( NRF_MPC_Type *  p_reg)

Function for enabling the global slave registers lock.

Note
When global slave registers is enabled, modifying the global slave configuration is not possible.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.

◆ nrf_mpc_globalslave_masterport_get()

NRF_STATIC_INLINE uint32_t nrf_mpc_globalslave_masterport_get ( NRF_MPC_Type const *  p_reg)

Function for getting enabled master ports connection to global slave.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Mask of master ports connected, constructed from nrf_mpc_masterport_mask_t enumerator values.

◆ nrf_mpc_globalslave_masterport_set()

NRF_STATIC_INLINE void nrf_mpc_globalslave_masterport_set ( NRF_MPC_Type *  p_reg,
uint32_t  mask 
)

Function for enabling the specified master ports connection to global slave.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of master ports to be connected, constructed from nrf_mpc_masterport_mask_t enumerator values.

◆ nrf_mpc_int_disable()

NRF_STATIC_INLINE void nrf_mpc_int_disable ( NRF_MPC_Type *  p_reg,
uint32_t  mask 
)

Function for disabling the specified interrupts.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be disabled. Use nrf_mpc_int_mask_t values for bit masking.

◆ nrf_mpc_int_enable()

NRF_STATIC_INLINE void nrf_mpc_int_enable ( NRF_MPC_Type *  p_reg,
uint32_t  mask 
)

Function for enabling the specified interrupts.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of interrupts to be enabled. Use nrf_mpc_int_mask_t values for bit masking.

◆ nrf_mpc_int_enable_check()

NRF_STATIC_INLINE uint32_t nrf_mpc_int_enable_check ( NRF_MPC_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. Use nrf_mpc_int_mask_t values for bit masking.
Returns
Mask of enabled interrupts.

◆ nrf_mpc_memaccerr_address_get()

NRF_STATIC_INLINE uint32_t nrf_mpc_memaccerr_address_get ( NRF_MPC_Type const *  p_reg)

Function for getting the memory address of memory access error.

Note
Register content will not be changed as long as MEMACCERR event is active.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Target address for the errroneous access.

◆ nrf_mpc_memaccerr_info_errorsource_get()

NRF_STATIC_INLINE nrf_mpc_errorsource_t nrf_mpc_memaccerr_info_errorsource_get ( NRF_MPC_Type const *  p_reg)

Function for getting the source of the transaction that triggered memory access error.

Note
Register content will not be changed as long as MEMACCERR event is active.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Source of the errorneous access.

◆ nrf_mpc_memaccerr_info_masterport_get()

NRF_STATIC_INLINE uint8_t nrf_mpc_memaccerr_info_masterport_get ( NRF_MPC_Type const *  p_reg)

Function for getting the master port of the transaction that triggered memory access error.

Note
Register content will not be changed as long as MEMACCERR event is active.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Master port where errorneous access is detected.

◆ nrf_mpc_memaccerr_info_ownerid_get()

NRF_STATIC_INLINE nrf_owner_t nrf_mpc_memaccerr_info_ownerid_get ( NRF_MPC_Type const *  p_reg)

Function for getting the owner identifier of the transaction that triggered memory access error.

Note
Register content will not be changed as long as MEMACCERR event is active.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Owner identifier of the errorneous access.

◆ nrf_mpc_memaccerr_info_perm_get()

NRF_STATIC_INLINE uint32_t nrf_mpc_memaccerr_info_perm_get ( NRF_MPC_Type const *  p_reg)

Function for getting the permissions of the transaction that triggered memory access error.

Note
Register content will not be changed as long as MEMACCERR event is active.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Permission settings of the errorneous access.

◆ nrf_mpc_override_config_get()

NRF_STATIC_INLINE nrf_mpc_override_config_t nrf_mpc_override_config_get ( NRF_MPC_Type const *  p_reg,
uint8_t  index 
)

Function for getting configuration of the override region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexOverride region index.
Returns
Structure with configuration of the override region.

◆ nrf_mpc_override_config_set()

NRF_STATIC_INLINE void nrf_mpc_override_config_set ( NRF_MPC_Type *  p_reg,
uint8_t  index,
nrf_mpc_override_config_t const *  p_config 
)

Function for setting configuration of the override region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexOverride region index.
[in]p_configPointer to the structure of the override region configuration parameters.

◆ nrf_mpc_override_endaddr_get()

NRF_STATIC_INLINE uint32_t nrf_mpc_override_endaddr_get ( NRF_MPC_Type const *  p_reg,
uint8_t  index 
)

Function for getting end address of the override region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexOverride region index.
Returns
End address of the override region.

◆ nrf_mpc_override_endaddr_set()

NRF_STATIC_INLINE void nrf_mpc_override_endaddr_set ( NRF_MPC_Type *  p_reg,
uint8_t  index,
uint32_t  address 
)

Function for setting end address of the override region.

Note
Address must be on a 4kB memory boundary.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexOverride region index.
[in]addressAddress to be set.

◆ nrf_mpc_override_masterport_get()

NRF_STATIC_INLINE uint32_t nrf_mpc_override_masterport_get ( NRF_MPC_Type const *  p_reg,
uint8_t  index 
)

Function for getting enabled master ports of the override region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexOverride region index.
Returns
Mask of enabled master ports, constructed from nrf_mpc_masterport_mask_t enumerator values.

◆ nrf_mpc_override_masterport_set()

NRF_STATIC_INLINE void nrf_mpc_override_masterport_set ( NRF_MPC_Type *  p_reg,
uint8_t  index,
uint32_t  mask 
)

Function for enabling the specified master ports of the override region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexOverride region index.
[in]maskMask of master ports to be enabled, constructed from nrf_mpc_masterport_mask_t enumerator values.

◆ nrf_mpc_override_offset_get()

NRF_STATIC_INLINE uint32_t nrf_mpc_override_offset_get ( NRF_MPC_Type const *  p_reg,
uint8_t  index 
)

Function for getting offset of the override region.

Note
Offset is left shifted before applying, creating a 33-bit signed integer.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexOverride region index.
Returns
Address offset value divided by 2.

◆ nrf_mpc_override_offset_set()

NRF_STATIC_INLINE void nrf_mpc_override_offset_set ( NRF_MPC_Type *  p_reg,
uint8_t  index,
uint32_t  offset 
)

Function for setting offset of the override region.

Note
Offset will be left shifted before applying, creating a 33-bit signed integer.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexOverride region index.
[in]offsetAddress offset value divided by 2.

◆ nrf_mpc_override_ownerid_get()

NRF_STATIC_INLINE nrf_owner_t nrf_mpc_override_ownerid_get ( NRF_MPC_Type *  p_reg,
uint8_t  index 
)

Function for getting owner ID of the override region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexOverride region index.
Returns
Owner ID of the overridde region.

◆ nrf_mpc_override_ownerid_set()

NRF_STATIC_INLINE void nrf_mpc_override_ownerid_set ( NRF_MPC_Type *  p_reg,
uint8_t  index,
nrf_owner_t  owner_id 
)

Function for setting owner ID for the override region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexOverride region index.
[in]owner_idOwner ID to be set.

◆ nrf_mpc_override_perm_get()

NRF_STATIC_INLINE uint32_t nrf_mpc_override_perm_get ( NRF_MPC_Type const *  p_reg,
uint8_t  index 
)

Function for getting permission settings of the override region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexOverride region index.
Returns
Mask of permissions, constructed from nrf_mpc_permission_mask_t enumerator values.

◆ nrf_mpc_override_perm_set()

NRF_STATIC_INLINE void nrf_mpc_override_perm_set ( NRF_MPC_Type *  p_reg,
uint8_t  index,
uint32_t  permissions 
)

Function for setting permission settings for the override region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexOverride region index.
[in]permissionsMask of permissions to be set, constructed from nrf_mpc_permission_mask_t enumerator values.

◆ nrf_mpc_override_permmask_get()

NRF_STATIC_INLINE uint32_t nrf_mpc_override_permmask_get ( NRF_MPC_Type const *  p_reg,
uint8_t  index 
)

Function for getting permission settings mask of the override region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexOverride region index.
Returns
Mask of permissions settings mask, constructed from nrf_mpc_permission_mask_t enumerator values.

◆ nrf_mpc_override_permmask_set()

NRF_STATIC_INLINE void nrf_mpc_override_permmask_set ( NRF_MPC_Type *  p_reg,
uint8_t  index,
uint32_t  permissions 
)

Function for setting permission settings mask for the override region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexOverride region index.
[in]permissionsMask of permissions settings mask to be set, constructed from nrf_mpc_permission_mask_t enumerator values.

◆ nrf_mpc_override_startaddr_get()

NRF_STATIC_INLINE uint32_t nrf_mpc_override_startaddr_get ( NRF_MPC_Type const *  p_reg,
uint8_t  index 
)

Function for getting start address of the override region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexOverride region index.
Returns
Start address of the override region.

◆ nrf_mpc_override_startaddr_set()

NRF_STATIC_INLINE void nrf_mpc_override_startaddr_set ( NRF_MPC_Type *  p_reg,
uint8_t  index,
uint32_t  address 
)

Function for setting start address of the override region.

Note
Address must be on a 4kB memory boundary.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexOverride region index.
[in]addressAddress to be set.

◆ nrf_mpc_region_addrmask_get()

NRF_STATIC_INLINE uint32_t nrf_mpc_region_addrmask_get ( NRF_MPC_Type const *  p_reg,
uint8_t  index 
)

Function for getting address mask of the region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexRegion index.
Returns
Address mask of the region.

◆ nrf_mpc_region_addrmask_set()

NRF_STATIC_INLINE void nrf_mpc_region_addrmask_set ( NRF_MPC_Type *  p_reg,
uint8_t  index,
uint32_t  address 
)

Function for setting address mask of the region.

Note
Mask must be on a 4kB memory boundary.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexRegion index.
[in]addressAddress to be set.

◆ nrf_mpc_region_config_get()

NRF_STATIC_INLINE nrf_mpc_region_config_t nrf_mpc_region_config_get ( NRF_MPC_Type const *  p_reg,
uint8_t  index 
)

Function for getting configuration of the region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexRegion index.
Returns
Structure with configuration of the region.

◆ nrf_mpc_region_config_set()

NRF_STATIC_INLINE void nrf_mpc_region_config_set ( NRF_MPC_Type *  p_reg,
uint8_t  index,
nrf_mpc_region_config_t const *  p_config 
)

Function for setting configuration of the region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexRegion index.
[in]p_configPointer to the structure of the region configuration parameters.

◆ nrf_mpc_region_masterport_get()

NRF_STATIC_INLINE uint32_t nrf_mpc_region_masterport_get ( NRF_MPC_Type const *  p_reg,
uint8_t  index 
)

Function for getting enabled master ports of the region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexRegion index.
Returns
Mask of enabled master ports, constructed from nrf_mpc_masterport_mask_t enumerator values.

◆ nrf_mpc_region_masterport_set()

NRF_STATIC_INLINE void nrf_mpc_region_masterport_set ( NRF_MPC_Type *  p_reg,
uint8_t  index,
uint32_t  mask 
)

Function for enabling the specified master ports of the region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexRegion index.
[in]maskMask of master ports to be enabled, constructed from nrf_mpc_masterport_mask_t enumerator values.

◆ nrf_mpc_region_startaddr_get()

NRF_STATIC_INLINE uint32_t nrf_mpc_region_startaddr_get ( NRF_MPC_Type const *  p_reg,
uint8_t  index 
)

Function for getting start address of the region.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexRegion index.
Returns
Start address of the region.

◆ nrf_mpc_region_startaddr_set()

NRF_STATIC_INLINE void nrf_mpc_region_startaddr_set ( NRF_MPC_Type *  p_reg,
uint8_t  index,
uint32_t  address 
)

Function for setting start address of the region.

Note
Address must be on a 4kB memory boundary.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexRegion index.
[in]addressAddress to be set.

◆ nrf_mpc_rtchoke_delay_get()

NRF_STATIC_INLINE uint8_t nrf_mpc_rtchoke_delay_get ( NRF_MPC_Type const *  p_reg,
uint8_t  slave 
)

Function for getting the Real Time Choke delay for the specified slave.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]slaveSlave number.
Returns
Delay value for slave.

◆ nrf_mpc_rtchoke_delay_set()

NRF_STATIC_INLINE void nrf_mpc_rtchoke_delay_set ( NRF_MPC_Type *  p_reg,
uint8_t  slave,
uint8_t  delay 
)

Function for setting the Real Time Choke delay for the specified slave.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]slaveSlave number.
[in]delayDelay value to be set.

◆ nrf_mpc_rtchoke_readaccess_get()

NRF_STATIC_INLINE uint32_t nrf_mpc_rtchoke_readaccess_get ( NRF_MPC_Type const *  p_reg)

Function for getting master ports with enabled AXI Read Address Channel Real Time Choke.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Mask of master ports with the Read Real Time Choke enabled, constructed from nrf_mpc_masterport_mask_t enumerator values.

◆ nrf_mpc_rtchoke_readaccess_set()

NRF_STATIC_INLINE void nrf_mpc_rtchoke_readaccess_set ( NRF_MPC_Type *  p_reg,
uint32_t  mask 
)

Function for enabling the AXI Read Address Channel Real Time Choke for specified master ports.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of master ports to have the Read Real Time Choke enabled, constructed from nrf_mpc_masterport_mask_t enumerator values.

◆ nrf_mpc_rtchoke_writeaccess_get()

NRF_STATIC_INLINE uint32_t nrf_mpc_rtchoke_writeaccess_get ( NRF_MPC_Type const *  p_reg)

Function for getting master ports with enabled AXI Write Address Channel Real Time Choke.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Mask of master ports with the Write Real Time Choke enabled, constructed from nrf_mpc_masterport_mask_t enumerator values.

◆ nrf_mpc_rtchoke_writeaccess_set()

NRF_STATIC_INLINE void nrf_mpc_rtchoke_writeaccess_set ( NRF_MPC_Type *  p_reg,
uint32_t  mask 
)

Function for enabling the AXI Write Address Channel Real Time Choke for specified master ports.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]maskMask of master ports to have the Write Real Time Choke enabled, constructed from nrf_mpc_masterport_mask_t enumerator values.

Documentation feedback | Developer Zone | Subscribe | Updated