BELLBOARD peripheral driver.
More...
BELLBOARD peripheral driver.
◆ NRFX_BELLBOARD_INSTANCE
#define NRFX_BELLBOARD_INSTANCE |
( |
|
id | ) |
|
Value:{ \
.int_idx = id, \
}
#define NRFX_CONCAT_3(p1, p2, p3)
Macro for concatenating three tokens in macro expansion.
Definition: nrfx_common.h:155
Macro for creating a BELLBOARD driver instance.
◆ nrfx_bellboard_event_handler_t
typedef void(* nrfx_bellboard_event_handler_t) (uint8_t event_idx, void *p_context) |
Bellboard event handler callback.
- Parameters
-
[in] | event_idx | Bellboard event index. |
[in] | p_context | User context. |
◆ nrfx_bellboard_init()
Initialize BELLBOARD driver instance.
- Parameters
-
[in] | p_instance | Pointer to BELLBOARD driver instance. |
[in] | irq_priority | Interrupt priority. |
[in] | event_handler | Function to be called on bellboard interrupt. |
[in] | p_context | User context passed to event handler. |
- Return values
-
NRFX_SUCCESS | Instance successfully initialized. |
NRFX_ERROR_ALREADY | Instance already initialized. |
◆ nrfx_bellboard_init_check()
Function for checking if the BELLBOARD driver instance is initialized.
- Parameters
-
[in] | p_instance | Pointer to BELLBOARD driver instance. |
- Return values
-
true | Instance is already initialized. |
false | Instance is not initialized. |
◆ nrfx_bellboard_int_disable()
void nrfx_bellboard_int_disable |
( |
nrfx_bellboard_t const * |
p_instance, |
|
|
uint32_t |
mask |
|
) |
| |
Disable interrupt mask for given bellboard interrupt.
- Parameters
-
[in] | p_instance | Pointer to BELLBOARD driver instance. |
[in] | mask | Interrupt mask. |
◆ nrfx_bellboard_int_enable()
void nrfx_bellboard_int_enable |
( |
nrfx_bellboard_t const * |
p_instance, |
|
|
uint32_t |
mask |
|
) |
| |
Enable interrupt mask for given bellboard interrupt.
- Parameters
-
[in] | p_instance | Pointer to BELLBOARD driver instance. |
[in] | mask | Interrupt mask. |
◆ nrfx_bellboard_uninit()
Uninitialize BELLBOARD driver instance.
- Parameters
-
[in] | p_instance | Pointer to BELLBOARD driver instance. |