BELLBOARD driver
- group nrfx_bellboard
BELLBOARD peripheral driver.
Defines
-
NRFX_BELLBOARD_INSTANCE(id)
Macro for creating a BELLBOARD driver instance.
Typedefs
-
typedef void (*nrfx_bellboard_event_handler_t)(uint8_t event_idx, void *p_context)
Bellboard event handler callback.
- Param event_idx:
[in] Bellboard event index.
- Param p_context:
[in] User context.
Functions
-
nrfx_err_t nrfx_bellboard_init(nrfx_bellboard_t const *p_instance, uint8_t irq_priority, nrfx_bellboard_event_handler_t event_handler, void *p_context)
Initialize BELLBOARD driver instance.
- Parameters:
p_instance – [in] Pointer to BELLBOARD driver instance.
irq_priority – [in] Interrupt priority.
event_handler – [in] Function to be called on bellboard interrupt.
p_context – [in] User context passed to event handler.
- Return values:
NRFX_SUCCESS – Instance successfully initialized.
NRFX_ERROR_ALREADY – Instance already initialized.
-
void nrfx_bellboard_uninit(nrfx_bellboard_t const *p_instance)
Uninitialize BELLBOARD driver instance.
- Parameters:
p_instance – [in] Pointer to BELLBOARD driver instance.
-
bool nrfx_bellboard_init_check(nrfx_bellboard_t const *p_instance)
Function for checking if the BELLBOARD driver instance is initialized.
- Parameters:
p_instance – [in] Pointer to BELLBOARD driver instance.
- Return values:
true – Instance is already initialized.
false – Instance is not initialized.
-
void nrfx_bellboard_int_enable(nrfx_bellboard_t const *p_instance, uint32_t mask)
Enable interrupt mask for given bellboard interrupt.
- Parameters:
p_instance – [in] Pointer to BELLBOARD driver instance.
mask – [in] Interrupt mask.
-
void nrfx_bellboard_int_disable(nrfx_bellboard_t const *p_instance, uint32_t mask)
Disable interrupt mask for given bellboard interrupt.
- Parameters:
p_instance – [in] Pointer to BELLBOARD driver instance.
mask – [in] Interrupt mask.
-
struct nrfx_bellboard_t
- #include <nrfx_bellboard.h>
Structure for the BELLBOARD driver instance.
-
NRFX_BELLBOARD_INSTANCE(id)