VEVIF driver

group nrfx_vevif

VPR Event Interface (VEVIF) mechanism driver.

Typedefs

typedef void (*nrfx_vevif_event_handler_t)(uint8_t event_idx, void *p_context)

VEVIF event handler callback.

Param event_idx:

[in] VEVIF event index.

Param p_context:

[in] Context passed to the event handler. Set on initialization.

Functions

nrfx_err_t nrfx_vevif_init(nrf_vpr_clic_priority_t interrupt_priority, nrfx_vevif_event_handler_t event_handler, void *p_context)

Function for initializing the VEVIF driver.

Parameters:
  • interrupt_priority[in] Interrupt priority.

  • event_handler[in] Function to be called on interrupt. Must not be NULL.

  • p_context[in] Context passed to the event handler.

Return values:
  • NRFX_SUCCESS – Driver successfully initialized.

  • NRFX_ERROR_ALREADY – The driver is already initialized.

  • NRFX_ERROR_INVALID_STATE – The driver is already initialized. Deprecated - use NRFX_ERROR_ALREADY instead.

void nrfx_vevif_uninit(void)

Function for uninitializing the VEVIF driver.

bool nrfx_vevif_init_check(void)

Function for checking if the VEVIF driver is initialized.

Return values:
  • true – Driver is already initialized.

  • false – Driver is not initialized.

void nrfx_vevif_int_enable(uint32_t mask)

Function for enabling interrupts on specified VEVIF events.

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

void nrfx_vevif_int_disable(uint32_t mask)

Function for disabling interrupts on specified VEVIF events.

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