nrfx 3.3
Macros | Enumerations | Functions
MVDMA HAL

Hardware access layer for managing the Memory-to-Memory Vector DMA (MVDMA) peripheral. More...

Macros

#define NRF_MVDMA_HAS_NEW_VER   1
 Symbol indicating whether MVDMA uses new or old version.
 
#define NRF_MVDMA_HAS_AXIMODE   1
 Symbol indicating whether AXIMODE configuration is present.
 
#define NRF_MVDMA_HAS_MULTIMODE   1
 Macro for checking if multi-mode operation is available.
 

Enumerations

enum  nrf_mvdma_task_t {
  NRF_MVDMA_TASK_PAUSE = offsetof(NRF_MVDMA_Type, TASKS_PAUSE) ,
  NRF_MVDMA_TASK_RESET = offsetof(NRF_MVDMA_Type, TASKS_RESET) ,
  NRF_MVDMA_TASK_START0 = offsetof(NRF_MVDMA_Type, TASKS_START[0]) ,
  NRF_MVDMA_TASK_START1 = offsetof(NRF_MVDMA_Type, TASKS_START[1]) ,
  NRF_MVDMA_TASK_START2 = offsetof(NRF_MVDMA_Type, TASKS_START[2]) ,
  NRF_MVDMA_TASK_START3 = offsetof(NRF_MVDMA_Type, TASKS_START[3]) ,
  NRF_MVDMA_TASK_START4 = offsetof(NRF_MVDMA_Type, TASKS_START[4]) ,
  NRF_MVDMA_TASK_START5 = offsetof(NRF_MVDMA_Type, TASKS_START[5]) ,
  NRF_MVDMA_TASK_START6 = offsetof(NRF_MVDMA_Type, TASKS_START[6]) ,
  NRF_MVDMA_TASK_START7 = offsetof(NRF_MVDMA_Type, TASKS_START[7])
}
 MVDMA tasks. More...
 
enum  nrf_mvdma_event_t {
  NRF_MVDMA_EVENT_END = offsetof(NRF_MVDMA_Type, EVENTS_END) ,
  NRF_MVDMA_EVENT_STARTED = offsetof(NRF_MVDMA_Type, EVENTS_STARTED) ,
  NRF_MVDMA_EVENT_PAUSED = offsetof(NRF_MVDMA_Type, EVENTS_PAUSED) ,
  NRF_MVDMA_EVENT_RESET = offsetof(NRF_MVDMA_Type, EVENTS_RESET) ,
  NRF_MVDMA_EVENT_SOURCEBUSERROR = offsetof(NRF_MVDMA_Type, EVENTS_SOURCE.BUSERROR) ,
  NRF_MVDMA_EVENT_SOURCESELECTJOBDONE = offsetof(NRF_MVDMA_Type, EVENTS_SOURCE.SELECTJOBDONE) ,
  NRF_MVDMA_EVENT_SINKBUSERROR = offsetof(NRF_MVDMA_Type, EVENTS_SINK.BUSERROR) ,
  NRF_MVDMA_EVENT_SINKSELECTJOBDONE = offsetof(NRF_MVDMA_Type, EVENTS_SINK.SELECTJOBDONE)
}
 MVDMA events. More...
 
enum  nrf_mvdma_int_mask_t {
  NRF_MVDMA_INT_END_MASK = MVDMA_INTENSET_END_Msk ,
  NRF_MVDMA_INT_STARTED_MASK = MVDMA_INTENSET_STARTED_Msk ,
  NRF_MVDMA_INT_PAUSED_MASK = MVDMA_INTENSET_PAUSED_Msk ,
  NRF_MVDMA_INT_RESET_MASK = MVDMA_INTENSET_RESET_Msk ,
  NRF_MVDMA_INT_SOURCEBUSERROR_MASK = MVDMA_INTENSET_SOURCEBUSERROR_Msk ,
  NRF_MVDMA_INT_SINKBUSERROR_MASK = MVDMA_INTENSET_SINKBUSERROR_Msk ,
  NRF_MVDMA_INT_SOURCESELECTJOBDONE_MASK = MVDMA_INTENSET_SOURCESELECTJOBDONE_Msk ,
  NRF_MVDMA_INT_SINKSELECTJOBDONE_MASK = MVDMA_INTENSET_SINKSELECTJOBDONE_Msk
}
 MVDMA interrupts. More...
 
enum  nrf_mvdma_mode_t {
  NRF_MVDMA_MODE_SINGLE = MVDMA_CONFIG_MODE_MODE_SingleMode ,
  NRF_MVDMA_MODE_MULTI = MVDMA_CONFIG_MODE_MODE_MultiMode
}
 MVDMA modes of operation. More...
 
enum  nrf_mvdma_aximode_t {
  NRF_MVDMA_AXIMODE_AXI = MVDMA_CONFIG_AXIMODE_AXIMODE_AXI ,
  NRF_MVDMA_AXIMODE_AXILITE = MVDMA_CONFIG_AXIMODE_AXIMODE_AXILITE
}
 MVDMA AXI modes. More...
 
enum  nrf_mvdma_fifo_status_t {
  NRF_MVDMA_FIFO_STATUS_EMPTY = MVDMA_STATUS_FIFO_FIFOSTATUS_Empty ,
  NRF_MVDMA_FIFO_STATUS_NOT_EMPTY = MVDMA_STATUS_FIFO_FIFOSTATUS_NotEmpty ,
  NRF_MVDMA_FIFO_STATUS_FULL = MVDMA_STATUS_FIFO_FIFOSTATUS_Full
}
 MVDMA FIFO status. More...
 
enum  nrf_mvdma_source_error_t {
  NRF_MVDMA_SOURCE_ERROR_NONE = MVDMA_SOURCE_BUSERROR_BUSERROR_NoError ,
  NRF_MVDMA_SOURCE_ERROR_READ = MVDMA_SOURCE_BUSERROR_BUSERROR_ReadError ,
  NRF_MVDMA_SOURCE_ERROR_READ_DECODE = MVDMA_SOURCE_BUSERROR_BUSERROR_ReadDecodeError
}
 MVDMA data source errors. More...
 
enum  nrf_mvdma_sink_error_t {
  NRF_MVDMA_SINK_ERROR_NONE = MVDMA_SINK_BUSERROR_BUSERROR_NoError ,
  NRF_MVDMA_SINK_ERROR_READ = MVDMA_SINK_BUSERROR_BUSERROR_ReadError ,
  NRF_MVDMA_SINK_ERROR_WRITE = MVDMA_SINK_BUSERROR_BUSERROR_WriteError ,
  NRF_MVDMA_SINK_ERROR_DECODE_READ = MVDMA_SINK_BUSERROR_BUSERROR_ReadDecodeError ,
  NRF_MVDMA_SINK_ERROR_DECODE_WRITE = MVDMA_SINK_BUSERROR_BUSERROR_WriteDecodeError
}
 MVDMA data sink errors. More...
 

Functions

NRF_STATIC_INLINE void nrf_mvdma_task_trigger (NRF_MVDMA_Type *p_reg, nrf_mvdma_task_t task)
 Function for activating the specified MVDMA task.
 
NRF_STATIC_INLINE uint32_t nrf_mvdma_task_address_get (NRF_MVDMA_Type const *p_reg, nrf_mvdma_task_t task)
 Function for getting the address of the specified MVDMA task register.
 
NRF_STATIC_INLINE nrf_mvdma_task_t nrf_mvdma_start_task_get (NRF_MVDMA_Type const *p_reg, uint8_t index)
 Function for getting START task by its index.
 
NRF_STATIC_INLINE void nrf_mvdma_event_clear (NRF_MVDMA_Type *p_reg, nrf_mvdma_event_t event)
 Function for clearing the specified MVDMA event.
 
NRF_STATIC_INLINE bool nrf_mvdma_event_check (NRF_MVDMA_Type const *p_reg, nrf_mvdma_event_t event)
 Function for retrieving the state of the MVDMA event.
 
NRF_STATIC_INLINE uint32_t nrf_mvdma_event_address_get (NRF_MVDMA_Type const *p_reg, nrf_mvdma_event_t event)
 Function for getting the address of the specified MVDMA event register.
 
NRF_STATIC_INLINE void nrf_mvdma_int_enable (NRF_MVDMA_Type *p_reg, uint32_t mask)
 Function for enabling specified interrupts.
 
NRF_STATIC_INLINE void nrf_mvdma_int_disable (NRF_MVDMA_Type *p_reg, uint32_t mask)
 Function for disabling specified interrupts.
 
NRF_STATIC_INLINE uint32_t nrf_mvdma_int_enable_check (NRF_MVDMA_Type const *p_reg, uint32_t mask)
 Function for checking if the specified interrupts are enabled.
 
NRF_STATIC_INLINE uint32_t nrf_mvdma_int_pending_get (NRF_MVDMA_Type const *p_reg)
 Function for retrieving the state of pending interrupts.
 
NRF_STATIC_INLINE void nrf_mvdma_subscribe_set (NRF_MVDMA_Type *p_reg, nrf_mvdma_task_t task, uint8_t channel)
 Function for setting the subscribe configuration for a given MVDMA task.
 
NRF_STATIC_INLINE void nrf_mvdma_subscribe_clear (NRF_MVDMA_Type *p_reg, nrf_mvdma_task_t task)
 Function for clearing the subscribe configuration for a given MVDMA task.
 
NRF_STATIC_INLINE void nrf_mvdma_publish_set (NRF_MVDMA_Type *p_reg, nrf_mvdma_event_t event, uint8_t channel)
 Function for setting the publish configuration for a given MVDMA event.
 
NRF_STATIC_INLINE void nrf_mvdma_publish_clear (NRF_MVDMA_Type *p_reg, nrf_mvdma_event_t event)
 Function for clearing the publish configuration for a given MVDMA event.
 
NRF_STATIC_INLINE void nrf_mvdma_mode_set (NRF_MVDMA_Type *p_reg, nrf_mvdma_mode_t mode)
 Function for setting the MVDMA mode.
 
NRF_STATIC_INLINE void nrf_mvdma_aximode_set (NRF_MVDMA_Type *p_reg, nrf_mvdma_aximode_t aximode)
 Function for setting the AXI mode.
 
NRF_STATIC_INLINE void nrf_mvdma_source_list_ptr_set (NRF_MVDMA_Type *p_reg, nrf_vdma_job_t const *p_job)
 Function for setting the pointer to the source descriptor list or pointer to the list of descriptor list pointers, depending on configured nrf_mvdma_mode_t mode.
 
NRF_STATIC_INLINE nrf_vdma_job_tnrf_mvdma_source_list_ptr_get (NRF_MVDMA_Type const *p_reg)
 Function for getting the pointer to the source descriptor list or pointer to the list of descriptor list pointers, depending on configured nrf_mvdma_mode_t mode.
 
NRF_STATIC_INLINE void nrf_mvdma_sink_list_ptr_set (NRF_MVDMA_Type *p_reg, nrf_vdma_job_t const *p_job)
 Function for getting the pointer to the sink descriptor list or pointer to the list of descriptor list pointers, depending on configured nrf_mvdma_mode_t mode.
 
NRF_STATIC_INLINE nrf_vdma_job_tnrf_mvdma_sink_list_ptr_get (NRF_MVDMA_Type const *p_reg)
 Function for getting the pointer to the sink descriptor list or pointer to the list of descriptor list pointers, depending on configured nrf_mvdma_mode_t mode.
 
NRF_STATIC_INLINE uint32_t nrf_mvdma_crc_result_get (NRF_MVDMA_Type const *p_reg)
 Function for getting the result of CRC checksum calculation.
 
NRF_STATIC_INLINE nrf_mvdma_fifo_status_t nrf_mvdma_fifo_status_get (NRF_MVDMA_Type const *p_reg)
 Function for getting the status of intermediate FIFO.
 
NRF_STATIC_INLINE bool nrf_mvdma_activity_check (NRF_MVDMA_Type const *p_reg)
 Function for checking the MVDMA activity.
 
NRF_STATIC_INLINE nrf_mvdma_source_error_t nrf_mvdma_source_error_get (NRF_MVDMA_Type const *p_reg)
 Function for getting the bus error of MVDMA data source.
 
NRF_STATIC_INLINE nrf_mvdma_sink_error_t nrf_mvdma_sink_error_get (NRF_MVDMA_Type const *p_reg)
 Function for getting the bus error of MVDMA data source.
 
NRF_STATIC_INLINE uint32_t nrf_mvdma_last_source_address_get (NRF_MVDMA_Type const *p_reg)
 Function for getting the latest address being accessed on the source AXI channel.
 
NRF_STATIC_INLINE uint32_t nrf_mvdma_last_sink_address_get (NRF_MVDMA_Type const *p_reg)
 Function for getting the latest address being accessed on the sink AXI channel.
 
NRF_STATIC_INLINE uint32_t nrf_mvdma_source_job_count_get (NRF_MVDMA_Type const *p_reg)
 Function for getting the number of completed jobs in the current source descriptor list.
 
NRF_STATIC_INLINE uint32_t nrf_mvdma_sink_job_count_get (NRF_MVDMA_Type const *p_reg)
 Function for getting the number of completed jobs in the current sink descriptor list.
 

Detailed Description

Hardware access layer for managing the Memory-to-Memory Vector DMA (MVDMA) peripheral.

Enumeration Type Documentation

◆ nrf_mvdma_aximode_t

MVDMA AXI modes.

Enumerator
NRF_MVDMA_AXIMODE_AXI 

AXI burst transactions may be longer than one beat.

NRF_MVDMA_AXIMODE_AXILITE 

All AXI transactions are one-beat accesses.

◆ nrf_mvdma_event_t

MVDMA events.

Enumerator
NRF_MVDMA_EVENT_END 

Sink data descriptor list has been completed.

NRF_MVDMA_EVENT_STARTED 

Data descriptor list processing has been started.

NRF_MVDMA_EVENT_PAUSED 

Data transfer has been paused.

NRF_MVDMA_EVENT_RESET 

MVDMA has been reset.

NRF_MVDMA_EVENT_SOURCEBUSERROR 

Bus error has been received on the source channel.

NRF_MVDMA_EVENT_SOURCESELECTJOBDONE 

Job on the source channel with event enable attribute bit active has been processed.

NRF_MVDMA_EVENT_SINKBUSERROR 

Bus error has been received on the sink channel.

NRF_MVDMA_EVENT_SINKSELECTJOBDONE 

Job on the sink channel with event enable attribute bit active has been processed.

◆ nrf_mvdma_fifo_status_t

MVDMA FIFO status.

Enumerator
NRF_MVDMA_FIFO_STATUS_EMPTY 

No data in intermediate FIFO.

NRF_MVDMA_FIFO_STATUS_NOT_EMPTY 

Intermediate FIFO contains data.

NRF_MVDMA_FIFO_STATUS_FULL 

Intermediate FIFO is full.

◆ nrf_mvdma_int_mask_t

MVDMA interrupts.

Enumerator
NRF_MVDMA_INT_END_MASK 

Interrupt on END event.

NRF_MVDMA_INT_STARTED_MASK 

Interrupt on STARTED event.

NRF_MVDMA_INT_PAUSED_MASK 

Interrupt on PAUSED event.

NRF_MVDMA_INT_RESET_MASK 

Interrupt on RESET event.

NRF_MVDMA_INT_SOURCEBUSERROR_MASK 

Interrupt on SOURCEBUSERROR event.

NRF_MVDMA_INT_SINKBUSERROR_MASK 

Interrupt on SINKBUSERROR event.

NRF_MVDMA_INT_SOURCESELECTJOBDONE_MASK 

Interrupt on SOURCESELECTJOBDONE event.

NRF_MVDMA_INT_SINKSELECTJOBDONE_MASK 

Interrupt on SINKSELECTJOBDONE event.

◆ nrf_mvdma_mode_t

MVDMA modes of operation.

Enumerator
NRF_MVDMA_MODE_SINGLE 

Descriptor list pointers are stored in SOURCELISTPTR and SINKLISTPTR registers.

NRF_MVDMA_MODE_MULTI 

Descriptor list pointers are stored in a list in the memory.

◆ nrf_mvdma_sink_error_t

MVDMA data sink errors.

Enumerator
NRF_MVDMA_SINK_ERROR_NONE 

No error.

NRF_MVDMA_SINK_ERROR_READ 

Error related to memory when reading joblist.

NRF_MVDMA_SINK_ERROR_WRITE 

Error related to memory/register when writing data.

NRF_MVDMA_SINK_ERROR_DECODE_READ 

Error related to the joblist address when reading joblist.

NRF_MVDMA_SINK_ERROR_DECODE_WRITE 

Error related to the memory/register address when writing data.

◆ nrf_mvdma_source_error_t

MVDMA data source errors.

Enumerator
NRF_MVDMA_SOURCE_ERROR_NONE 

No error.

NRF_MVDMA_SOURCE_ERROR_READ 

Error related to memory when reading joblist or memory/register when reading data.

NRF_MVDMA_SOURCE_ERROR_READ_DECODE 

Error related to the joblist address or address when reading memory/register.

◆ nrf_mvdma_task_t

MVDMA tasks.

Enumerator
NRF_MVDMA_TASK_PAUSE 

Pause DMA transaction at next idle stage on memory bus.

NRF_MVDMA_TASK_RESET 

Return all registers to default state and FSMs to IDLE.

NRF_MVDMA_TASK_START0 

Start or continue processing of descriptor list 0.

NRF_MVDMA_TASK_START1 

Start or continue processing of descriptor list 1.

NRF_MVDMA_TASK_START2 

Start or continue processing of descriptor list 2.

NRF_MVDMA_TASK_START3 

Start or continue processing of descriptor list 3.

NRF_MVDMA_TASK_START4 

Start or continue processing of descriptor list 4.

NRF_MVDMA_TASK_START5 

Start or continue processing of descriptor list 5.

NRF_MVDMA_TASK_START6 

Start or continue processing of descriptor list 6.

NRF_MVDMA_TASK_START7 

Start or continue processing of descriptor list 7.

Function Documentation

◆ nrf_mvdma_activity_check()

NRF_STATIC_INLINE bool nrf_mvdma_activity_check ( NRF_MVDMA_Type const *  p_reg)

Function for checking the MVDMA activity.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Return values
trueMVDMA is processing data.
falseMVDMA is idle.

◆ nrf_mvdma_aximode_set()

NRF_STATIC_INLINE void nrf_mvdma_aximode_set ( NRF_MVDMA_Type *  p_reg,
nrf_mvdma_aximode_t  aximode 
)

Function for setting the AXI mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]aximodeDesired AXI mode for MVDMA.

◆ nrf_mvdma_crc_result_get()

NRF_STATIC_INLINE uint32_t nrf_mvdma_crc_result_get ( NRF_MVDMA_Type const *  p_reg)

Function for getting the result of CRC checksum calculation.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Result of CRC checksum calculation.

◆ nrf_mvdma_event_address_get()

NRF_STATIC_INLINE uint32_t nrf_mvdma_event_address_get ( NRF_MVDMA_Type const *  p_reg,
nrf_mvdma_event_t  event 
)

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

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

◆ nrf_mvdma_event_check()

NRF_STATIC_INLINE bool nrf_mvdma_event_check ( NRF_MVDMA_Type const *  p_reg,
nrf_mvdma_event_t  event 
)

Function for retrieving the state of the MVDMA 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_mvdma_event_clear()

NRF_STATIC_INLINE void nrf_mvdma_event_clear ( NRF_MVDMA_Type *  p_reg,
nrf_mvdma_event_t  event 
)

Function for clearing the specified MVDMA event.

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

◆ nrf_mvdma_fifo_status_get()

NRF_STATIC_INLINE nrf_mvdma_fifo_status_t nrf_mvdma_fifo_status_get ( NRF_MVDMA_Type const *  p_reg)

Function for getting the status of intermediate FIFO.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Intermediate FIFO status.

◆ nrf_mvdma_int_disable()

NRF_STATIC_INLINE void nrf_mvdma_int_disable ( NRF_MVDMA_Type *  p_reg,
uint32_t  mask 
)

Function for disabling specified interrupts.

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

◆ nrf_mvdma_int_enable()

NRF_STATIC_INLINE void nrf_mvdma_int_enable ( NRF_MVDMA_Type *  p_reg,
uint32_t  mask 
)

Function for enabling specified interrupts.

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

◆ nrf_mvdma_int_enable_check()

NRF_STATIC_INLINE uint32_t nrf_mvdma_int_enable_check ( NRF_MVDMA_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_mvdma_int_mask_t values for bit masking.
Returns
Mask of enabled interrupts.

◆ nrf_mvdma_int_pending_get()

NRF_STATIC_INLINE uint32_t nrf_mvdma_int_pending_get ( NRF_MVDMA_Type const *  p_reg)

Function for retrieving the state of pending interrupts.

Note
States of pending interrupt are saved as a bitmask. One set at particular position means that interrupt for event is pending.
Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Bitmask with information about pending interrupts. Use nrf_mvdma_int_mask_t values for bit masking.

◆ nrf_mvdma_last_sink_address_get()

NRF_STATIC_INLINE uint32_t nrf_mvdma_last_sink_address_get ( NRF_MVDMA_Type const *  p_reg)

Function for getting the latest address being accessed on the sink AXI channel.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Latest address being accessed on the sink AXI channel.

◆ nrf_mvdma_last_source_address_get()

NRF_STATIC_INLINE uint32_t nrf_mvdma_last_source_address_get ( NRF_MVDMA_Type const *  p_reg)

Function for getting the latest address being accessed on the source AXI channel.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Latest address being accessed on the source AXI channel.

◆ nrf_mvdma_mode_set()

NRF_STATIC_INLINE void nrf_mvdma_mode_set ( NRF_MVDMA_Type *  p_reg,
nrf_mvdma_mode_t  mode 
)

Function for setting the MVDMA mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]modeDesired operating mode for MVDMA.

◆ nrf_mvdma_publish_clear()

NRF_STATIC_INLINE void nrf_mvdma_publish_clear ( NRF_MVDMA_Type *  p_reg,
nrf_mvdma_event_t  event 
)

Function for clearing the publish configuration for a given MVDMA event.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent for which to clear the configuration.

◆ nrf_mvdma_publish_set()

NRF_STATIC_INLINE void nrf_mvdma_publish_set ( NRF_MVDMA_Type *  p_reg,
nrf_mvdma_event_t  event,
uint8_t  channel 
)

Function for setting the publish configuration for a given MVDMA event.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]eventEvent for which to set the configuration.
[in]channelChannel through which to publish the event.

◆ nrf_mvdma_sink_error_get()

NRF_STATIC_INLINE nrf_mvdma_sink_error_t nrf_mvdma_sink_error_get ( NRF_MVDMA_Type const *  p_reg)

Function for getting the bus error of MVDMA data source.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Bus error of data sink.

◆ nrf_mvdma_sink_job_count_get()

NRF_STATIC_INLINE uint32_t nrf_mvdma_sink_job_count_get ( NRF_MVDMA_Type const *  p_reg)

Function for getting the number of completed jobs in the current sink descriptor list.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Number of completed jobs in the current sink descriptor list.

◆ nrf_mvdma_sink_list_ptr_get()

NRF_STATIC_INLINE nrf_vdma_job_t * nrf_mvdma_sink_list_ptr_get ( NRF_MVDMA_Type const *  p_reg)

Function for getting the pointer to the sink descriptor list or pointer to the list of descriptor list pointers, depending on configured nrf_mvdma_mode_t mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Pointer to a job list.

◆ nrf_mvdma_sink_list_ptr_set()

NRF_STATIC_INLINE void nrf_mvdma_sink_list_ptr_set ( NRF_MVDMA_Type *  p_reg,
nrf_vdma_job_t const *  p_job 
)

Function for getting the pointer to the sink descriptor list or pointer to the list of descriptor list pointers, depending on configured nrf_mvdma_mode_t mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]p_jobPointer to a job list.

◆ nrf_mvdma_source_error_get()

NRF_STATIC_INLINE nrf_mvdma_source_error_t nrf_mvdma_source_error_get ( NRF_MVDMA_Type const *  p_reg)

Function for getting the bus error of MVDMA data source.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Bus error of data source.

◆ nrf_mvdma_source_job_count_get()

NRF_STATIC_INLINE uint32_t nrf_mvdma_source_job_count_get ( NRF_MVDMA_Type const *  p_reg)

Function for getting the number of completed jobs in the current source descriptor list.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Number of completed jobs in the current source descriptor list.

◆ nrf_mvdma_source_list_ptr_get()

NRF_STATIC_INLINE nrf_vdma_job_t * nrf_mvdma_source_list_ptr_get ( NRF_MVDMA_Type const *  p_reg)

Function for getting the pointer to the source descriptor list or pointer to the list of descriptor list pointers, depending on configured nrf_mvdma_mode_t mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
Returns
Pointer to a job list.

◆ nrf_mvdma_source_list_ptr_set()

NRF_STATIC_INLINE void nrf_mvdma_source_list_ptr_set ( NRF_MVDMA_Type *  p_reg,
nrf_vdma_job_t const *  p_job 
)

Function for setting the pointer to the source descriptor list or pointer to the list of descriptor list pointers, depending on configured nrf_mvdma_mode_t mode.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]p_jobPointer to a job list.

◆ nrf_mvdma_start_task_get()

NRF_STATIC_INLINE nrf_mvdma_task_t nrf_mvdma_start_task_get ( NRF_MVDMA_Type const *  p_reg,
uint8_t  index 
)

Function for getting START task by its index.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]indexIndex of the START task.
Returns
START task.

◆ nrf_mvdma_subscribe_clear()

NRF_STATIC_INLINE void nrf_mvdma_subscribe_clear ( NRF_MVDMA_Type *  p_reg,
nrf_mvdma_task_t  task 
)

Function for clearing the subscribe configuration for a given MVDMA task.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]taskTask for which to clear the configuration.

◆ nrf_mvdma_subscribe_set()

NRF_STATIC_INLINE void nrf_mvdma_subscribe_set ( NRF_MVDMA_Type *  p_reg,
nrf_mvdma_task_t  task,
uint8_t  channel 
)

Function for setting the subscribe configuration for a given MVDMA task.

Parameters
[in]p_regPointer to the structure of registers of the peripheral.
[in]taskTask for which to set the configuration.
[in]channelChannel through which to subscribe events.

◆ nrf_mvdma_task_address_get()

NRF_STATIC_INLINE uint32_t nrf_mvdma_task_address_get ( NRF_MVDMA_Type const *  p_reg,
nrf_mvdma_task_t  task 
)

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

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

◆ nrf_mvdma_task_trigger()

NRF_STATIC_INLINE void nrf_mvdma_task_trigger ( NRF_MVDMA_Type *  p_reg,
nrf_mvdma_task_t  task 
)

Function for activating the specified MVDMA task.

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

Documentation feedback | Developer Zone | Subscribe | Updated