BELLBOARD HALY

group nrfy_bellboard

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

Functions

NRFY_STATIC_INLINE void nrfy_bellboard_int_init(NRF_BELLBOARD_Type *p_reg, uint32_t mask, uint8_t irq_priority, bool enable, uint8_t group_idx)

Function for initializing the specified BELLBOARD interupts.

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

  • mask[in] Mask of interrupts to be initialized.

  • irq_priority[in] Interrupt priority.

  • enable[in] True if the interrupts are to be enabled, false otherwise.

  • group_idx[in] Index of interrupts group to be enabled.

NRFY_STATIC_INLINE void nrfy_bellboard_int_uninit(uint8_t group_idx)

Function for uninitializing the specified BELLBOARD interrupts.

Parameters:
  • group_idx[in] Index for interrupt group to be uninitialized.

NRFY_STATIC_INLINE uint32_t nrfy_bellboard_events_process(NRF_BELLBOARD_Type *p_reg, uint32_t mask)

Function for processing the specified BELLBOARD events.

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

  • mask[in] Mask of events to be processed, created by NRFY_EVENT_TO_INT_BITMASK.

Returns:

Mask of events that were generated and processed. To be checked against the result of NRFY_EVENT_TO_INT_BITMASK().

NRFY_STATIC_INLINE void nrfy_bellboard_task_trigger(NRF_BELLBOARD_Type *p_reg, nrf_bellboard_task_t task)

See also

nrf_bellboard_task_trigger Function for triggering the specified BELLBOARD 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_bellboard_task_address_get(NRF_BELLBOARD_Type const *p_reg, nrf_bellboard_task_t task)

See also

nrf_bellboard_task_address_get Function for getting the address of the specified BELLBOARD 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 void nrfy_bellboard_event_clear(NRF_BELLBOARD_Type *p_reg, nrf_bellboard_event_t event)

See also

nrf_bellboard_event_clear Function for clearing the specified BELLBOARD event.

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

  • event[in] Event to clear.

NRFY_STATIC_INLINE bool nrfy_bellboard_event_check(NRF_BELLBOARD_Type const *p_reg, nrf_bellboard_event_t event)

See also

nrf_bellboard_event_check Function for retrieving the state of the BELLBOARD 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_bellboard_event_address_get(NRF_BELLBOARD_Type const *p_reg, nrf_bellboard_event_t event)

See also

nrf_bellboard_event_address_get Function for getting the address of the specified BELLBOARD 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 void nrfy_bellboard_int_enable(NRF_BELLBOARD_Type *p_reg, uint8_t group_idx, uint32_t mask)

See also

nrf_bellboard_int_enable Function for enabling specified interrupts.

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

  • group_idx[in] Index of interrupt group to be enabled.

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

NRFY_STATIC_INLINE void nrfy_bellboard_int_disable(NRF_BELLBOARD_Type *p_reg, uint8_t group_idx, uint32_t mask)

See also

nrf_bellboard_int_disable Function for disabling specified interrupts.

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

  • group_idx[in] Index of interrupt group to be disabled.

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

NRFY_STATIC_INLINE uint32_t nrfy_bellboard_int_enable_check(NRF_BELLBOARD_Type const *p_reg, uint8_t group_idx, uint32_t mask)

See also

nrf_bellboard_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.

  • group_idx[in] Index of interrupt group to be checked.

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

Returns:

Mask of enabled interrupts.

NRFY_STATIC_INLINE uint32_t nrfy_bellboard_int_pending_get(NRF_BELLBOARD_Type const *p_reg, uint8_t group_idx)

See also

nrf_bellboard_int_pending_get Function for retrieving the state of pending interrupts.

States of pending interrupt are saved as a bitmask. One set at particular position means that interrupt for event is pending.

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

  • group_idx[in] Index of interrupt group to be retrieved.

Returns:

Bitmask with information about pending interrupts. Use nrf_bellboard_int_mask_t values for bit masking.