VPR HALY

group nrfy_vpr

Hardware access layer with cache and barrier support for managing the VPR peripheral.

Functions

NRFY_STATIC_INLINE void nrfy_vpr_task_trigger(NRF_VPR_Type *p_reg, nrf_vpr_task_t task)

See also

nrf_vpr_task_trigger Function for triggering the specified VPR task.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • task[in] Task to be triggered.

NRFY_STATIC_INLINE uint32_t nrfy_vpr_task_address_get(NRF_VPR_Type const *p_reg, nrf_vpr_task_t task)

See also

nrf_vpr_task_address_get Function for getting the address of the specified VPR task register.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • task[in] Specified task.

Returns:

Address of the specified task register.

NRFY_STATIC_INLINE nrf_vpr_task_t nrfy_vpr_trigger_task_get(uint8_t index)

See also

nrf_vpr_trigger_task_get Function for getting the specified VPR TRIGGER task.

Parameters:
  • index[in] Task index.

Returns:

The specified VPR TRIGGER task.

NRFY_STATIC_INLINE void nrfy_vpr_event_clear(NRF_VPR_Type *p_reg, nrf_vpr_event_t event)

See also

nrf_vpr_event_clear Function for clearing the specified VPR event.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • event[in] Event to clear.

NRFY_STATIC_INLINE bool nrfy_vpr_event_check(NRF_VPR_Type const *p_reg, nrf_vpr_event_t event)

See also

nrf_vpr_event_check Function for retrieving the state of the VPR event.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • event[in] Event to be checked.

Return values:
  • true – The event has been generated.

  • false – The event has not been generated.

NRFY_STATIC_INLINE uint32_t nrfy_vpr_event_address_get(NRF_VPR_Type const *p_reg, nrf_vpr_event_t event)

See also

nrf_vpr_event_address_get Function for getting the address of the specified VPR event register.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • event[in] Specified event.

Returns:

Address of the specified event register.

NRFY_STATIC_INLINE nrf_vpr_event_t nrfy_vpr_triggered_event_get(uint8_t index)

See also

nrf_vpr_triggered_event_get Function for getting the specified VPR TRIGGERED event.

Parameters:
  • index[in] Event index.

Returns:

The specified VPR TRIGGERED event.

NRFY_STATIC_INLINE void nrfy_vpr_int_enable(NRF_VPR_Type *p_reg, uint32_t mask)

See also

nrf_vpr_int_enable Function for enabling specified interrupts.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • mask[in] Mask of interrupts to be enabled. Use nrf_vpr_int_mask_t values for bit masking.

NRFY_STATIC_INLINE void nrfy_vpr_int_disable(NRF_VPR_Type *p_reg, uint32_t mask)

See also

nrf_vpr_int_disable Function for disabling specified interrupts.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • mask[in] Mask of interrupts to be disabled. Use nrf_vpr_int_mask_t values for bit masking.

NRFY_STATIC_INLINE uint32_t nrfy_vpr_int_enable_check(NRF_VPR_Type const *p_reg, uint32_t mask)

See also

nrf_vpr_int_enable_check Function for checking if the specified interrupts are enabled.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • mask[in] Mask of interrupts to be checked. Use nrf_vpr_int_mask_t values for bit masking.

Returns:

Mask of enabled interrupts.

NRFY_STATIC_INLINE void nrfy_vpr_cpurun_set(NRF_VPR_Type *p_reg, bool enable)

See also

nrf_vpr_cpurun_set Function for setting the state of the CPU after core reset.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • enable[in] True if CPU is to be running, false if stopped.

NRFY_STATIC_INLINE bool nrfy_vpr_cpurun_get(NRF_VPR_Type const *p_reg)

See also

nrf_vpr_cpurun_get Function for getting the state of the CPU after core reset.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

Return values:
  • true – CPU is to be running after core reset.

  • false – CPU is to be stopped after core reset.

NRFY_STATIC_INLINE void nrfy_vpr_initpc_set(NRF_VPR_Type *p_reg, uint32_t pc)

See also

nrf_vpr_initpc_set Function for setting the initial value of the program counter after CPU reset.

Note

This address value must be 64-bit aligned.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • pc[in] Initial value of the program counter to be set.

NRFY_STATIC_INLINE uint32_t nrfy_vpr_initpc_get(NRF_VPR_Type const *p_reg)

See also

nrf_vpr_initpc_get Function for getting the initial value of the program counter after CPU reset.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

Returns:

Initial value of the program counter.

NRFY_STATIC_INLINE void nrfy_vpr_debugif_dmcontrol_set(NRF_VPR_Type *p_reg, nrf_vpr_dmcontrol_t signal, bool enable)

See also

nrf_vpr_debugif_dmcontrol_set Function for setting the specified debug mode control signal.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • signal[in] Signal to be set.

  • enable[in] True if signal is to be 1, false if 0.

NRFY_STATIC_INLINE bool nrfy_vpr_debugif_dmcontrol_get(NRF_VPR_Type const *p_reg, nrf_vpr_dmcontrol_t signal)

See also

nrf_vpr_debugif_dmcontrol_get Function for getting the debug mode control signals.

Parameters:
  • p_reg[in] Pointer to the structure of registers of the peripheral.

  • signal[in] Signal to be retrieved.

Return values:
  • true – Signal is logical 1.

  • false – Signal is logical 0.