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

Hardware access layer for managing the External Memory Interface (EXMIF) peripheral. More...

Data Structures

struct  nrf_exmif_config_t
 Structure for configuration of mapping of the memory device to the EXMIF peripheral. More...
 

Macros

#define NRF_EXMIF_MAX_MEMORY_DEVICE_SIZE   0x10000000UL
 Maximum EXMIF memory size.
 
#define NRF_EXMIF_MAX_NUMBER_OF_DEVICES   2
 Maximum number of EXMIF memory devices.
 

Enumerations

enum  nrf_exmif_task_t {
  NRF_EXMIF_TASK_START = offsetof(NRF_EXMIF_Type, TASKS_START) ,
  NRF_EXMIF_TASK_STOP = offsetof(NRF_EXMIF_Type, TASKS_STOP)
}
 EXMIF tasks. More...
 

Functions

NRF_STATIC_INLINE void nrf_exmif_task_trigger (NRF_EXMIF_Type *p_reg, nrf_exmif_task_t task)
 Function for activating the specified EXMIF task.
 
NRF_STATIC_INLINE uint32_t nrf_exmif_task_address_get (NRF_EXMIF_Type const *p_reg, nrf_exmif_task_t task)
 Function for getting the address of the specified EXMIF task register.
 
NRF_STATIC_INLINE void nrf_exmif_reset_set (NRF_EXMIF_Type *p_reg, bool enable)
 Function for enabling or disabling EXMIF reset state.
 
NRF_STATIC_INLINE void nrf_exmif_locked_access_set (NRF_EXMIF_Type *p_reg, bool enable)
 Function for enabling or disabling locked APB access to serial memory controller.
 
NRF_STATIC_INLINE void nrf_exmif_device_config (NRF_EXMIF_Type *p_reg, uint8_t device_idx, nrf_exmif_config_t const *p_device)
 Function for configuring mapping of the memory device to EXMIF peripheral.
 
NRF_STATIC_INLINE void nrf_exmif_device_enable (NRF_EXMIF_Type *p_reg, uint8_t device_idx)
 Function for enabling the EXMIF memory device.
 
NRF_STATIC_INLINE void nrf_exmif_device_disable (NRF_EXMIF_Type *p_reg, uint8_t device_idx)
 Function for disabling the EXMIF memory device.
 

Detailed Description

Hardware access layer for managing the External Memory Interface (EXMIF) peripheral.

Enumeration Type Documentation

◆ nrf_exmif_task_t

EXMIF tasks.

Enumerator
NRF_EXMIF_TASK_START 

Start EXMIF peripheral power and clocks.

NRF_EXMIF_TASK_STOP 

Stop EXMIF peripheral power and clocks.

Function Documentation

◆ nrf_exmif_device_config()

NRF_STATIC_INLINE void nrf_exmif_device_config ( NRF_EXMIF_Type *  p_reg,
uint8_t  device_idx,
nrf_exmif_config_t const *  p_device 
)

Function for configuring mapping of the memory device to EXMIF peripheral.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]device_idxDevice number to configure.
[in]p_devicePointer to the configuration structure of the memory device.

◆ nrf_exmif_device_disable()

NRF_STATIC_INLINE void nrf_exmif_device_disable ( NRF_EXMIF_Type *  p_reg,
uint8_t  device_idx 
)

Function for disabling the EXMIF memory device.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]device_idxDevice number to disable.

◆ nrf_exmif_device_enable()

NRF_STATIC_INLINE void nrf_exmif_device_enable ( NRF_EXMIF_Type *  p_reg,
uint8_t  device_idx 
)

Function for enabling the EXMIF memory device.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]device_idxDevice number to enable.

◆ nrf_exmif_locked_access_set()

NRF_STATIC_INLINE void nrf_exmif_locked_access_set ( NRF_EXMIF_Type *  p_reg,
bool  enable 
)

Function for enabling or disabling locked APB access to serial memory controller.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]enableTrue if locked APB access is to be enabled, false otherwise.

◆ nrf_exmif_reset_set()

NRF_STATIC_INLINE void nrf_exmif_reset_set ( NRF_EXMIF_Type *  p_reg,
bool  enable 
)

Function for enabling or disabling EXMIF reset state.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]enableTrue if reset state is to be enabled, false otherwise.

◆ nrf_exmif_task_address_get()

NRF_STATIC_INLINE uint32_t nrf_exmif_task_address_get ( NRF_EXMIF_Type const *  p_reg,
nrf_exmif_task_t  task 
)

Function for getting the address of the specified EXMIF task register.

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

◆ nrf_exmif_task_trigger()

NRF_STATIC_INLINE void nrf_exmif_task_trigger ( NRF_EXMIF_Type *  p_reg,
nrf_exmif_task_t  task 
)

Function for activating the specified EXMIF task.

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

Documentation feedback | Developer Zone | Subscribe | Updated