VPR CSR VEVIF HAL

group nrf_vpr_csr_vevif_hal

Hardware access layer for managing the VPR RISC-V CPU Control and Status Registers for VPR Event Interface (VPR CSR VEVIF).

Defines

NRF_VPR_CSR_VEVIF_EVENT_TASK_COUNT

Number of VEVIF events/tasks.

Functions

NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vevif_tasks_get(void)

Function for getting mask of pending VEVIF tasks.

Returns:

Mask of pending VEVIF tasks.

NRF_STATIC_INLINE void nrf_vpr_csr_vevif_tasks_clear(uint32_t mask)

Function for clearing mask of pending VEVIF tasks.

Parameters:
  • mask[in] Mask of VEVIF tasks to be cleared.

NRF_STATIC_INLINE void nrf_vpr_csr_vevif_tasks_set(uint32_t value)

Function for setting pending VEVIF tasks.

Parameters:
  • value[in] VEVIF tasks value to be set.

NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vevif_events_get(void)

Function for getting mask of triggered VEVIF events.

Returns:

Mask of triggered VEVIF events.

NRF_STATIC_INLINE void nrf_vpr_csr_vevif_events_set(uint32_t value)

Function for setting triggered VEVIF events.

Parameters:
  • value[in] VEVIF events value to be set.

NRF_STATIC_INLINE void nrf_vpr_csr_vevif_events_trigger(uint32_t mask)

Function for triggering VEVIF events.

Parameters:
  • mask[in] Mask of VEVIF events to be triggered.

NRF_STATIC_INLINE void nrf_vpr_csr_vevif_events_buffered_set(uint32_t value)

Function for setting buffered triggered VEVIF events.

Parameters:
  • value[in] Buffered VEVIF events value to be set.

NRF_STATIC_INLINE bool nrf_vpr_csr_vevif_events_buffered_dirty_check(void)

Function for retrieving the dirty status of buffered VEVIF events.

Return values:
  • true – Buffer is dirty.

  • false – Buffer is clean.

NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vevif_subscribe_get(void)

Function for getting the subscribe configuration for VEVIF.

Returns:

Mask of tasks with enabled subscription.

NRF_STATIC_INLINE void nrf_vpr_csr_vevif_subscribe_set(uint32_t value)

Function for setting the subscribe configuration for VEVIF.

Parameters:
  • value[in] VEVIF subscription configuration mask to be set.

NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vevif_publish_get(void)

Function for getting the publish configuration for VEVIF.

Returns:

Mask of events with enabled publication.

NRF_STATIC_INLINE void nrf_vpr_csr_vevif_publish_set(uint32_t value)

Function for setting the publish configuration for VEVIF.

Parameters:
  • value[in] VEVIF publication configuration mask to be set.

NRF_STATIC_INLINE void nrf_vpr_csr_vevif_int_enable(uint32_t mask)

Function for enabling the specified interrupts.

Parameters:
  • mask[in] Mask of interrupts to be enabled.

NRF_STATIC_INLINE void nrf_vpr_csr_vevif_int_disable(uint32_t mask)

Function for disabling the specified interrupts.

Parameters:
  • mask[in] Mask of interrupts to be disabled.

NRF_STATIC_INLINE uint32_t nrf_vpr_csr_vevif_int_enable_check(uint32_t mask)

Function for checking it the specified interrupts are enabled.

Parameters:
  • mask[in] Mask of interrupts to be checked.

Returns:

Mask of enabled interrupts.