Hardware access layer for managing the BELLBOARD peripheral. More...
Macros | |
#define | NRF_BELLBOARD_EVENTS_TRIGGERED_COUNT BELLBOARD_EVENTS_TRIGGERED_MaxCount |
Symbol specifying maximum number of available events triggered. | |
Enumerations | |
enum | nrf_bellboard_event_t { NRF_BELLBOARD_EVENT_TRIGGERED_0 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[0]) , NRF_BELLBOARD_EVENT_TRIGGERED_1 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[1]) , NRF_BELLBOARD_EVENT_TRIGGERED_2 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[2]) , NRF_BELLBOARD_EVENT_TRIGGERED_3 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[3]) , NRF_BELLBOARD_EVENT_TRIGGERED_4 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[4]) , NRF_BELLBOARD_EVENT_TRIGGERED_5 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[5]) , NRF_BELLBOARD_EVENT_TRIGGERED_6 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[6]) , NRF_BELLBOARD_EVENT_TRIGGERED_7 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[7]) , NRF_BELLBOARD_EVENT_TRIGGERED_8 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[8]) , NRF_BELLBOARD_EVENT_TRIGGERED_9 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[9]) , NRF_BELLBOARD_EVENT_TRIGGERED_10 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[10]) , NRF_BELLBOARD_EVENT_TRIGGERED_11 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[11]) , NRF_BELLBOARD_EVENT_TRIGGERED_12 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[12]) , NRF_BELLBOARD_EVENT_TRIGGERED_13 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[13]) , NRF_BELLBOARD_EVENT_TRIGGERED_14 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[14]) , NRF_BELLBOARD_EVENT_TRIGGERED_15 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[15]) , NRF_BELLBOARD_EVENT_TRIGGERED_16 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[16]) , NRF_BELLBOARD_EVENT_TRIGGERED_17 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[17]) , NRF_BELLBOARD_EVENT_TRIGGERED_18 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[18]) , NRF_BELLBOARD_EVENT_TRIGGERED_19 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[19]) , NRF_BELLBOARD_EVENT_TRIGGERED_20 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[20]) , NRF_BELLBOARD_EVENT_TRIGGERED_21 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[21]) , NRF_BELLBOARD_EVENT_TRIGGERED_22 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[22]) , NRF_BELLBOARD_EVENT_TRIGGERED_23 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[23]) , NRF_BELLBOARD_EVENT_TRIGGERED_24 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[24]) , NRF_BELLBOARD_EVENT_TRIGGERED_25 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[25]) , NRF_BELLBOARD_EVENT_TRIGGERED_26 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[26]) , NRF_BELLBOARD_EVENT_TRIGGERED_27 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[27]) , NRF_BELLBOARD_EVENT_TRIGGERED_28 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[28]) , NRF_BELLBOARD_EVENT_TRIGGERED_29 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[29]) , NRF_BELLBOARD_EVENT_TRIGGERED_30 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[30]) , NRF_BELLBOARD_EVENT_TRIGGERED_31 = offsetof(NRF_BELLBOARD_Type, EVENTS_TRIGGERED[31]) } |
BELLBOARD events. More... | |
enum | nrf_bellboard_int_mask_t { NRF_BELLBOARD_INT_TRIGGERED_0_MASK = BELLBOARD_INTENSET0_TRIGGERED0_Msk , NRF_BELLBOARD_INT_TRIGGERED_1_MASK = BELLBOARD_INTENSET0_TRIGGERED1_Msk , NRF_BELLBOARD_INT_TRIGGERED_2_MASK = BELLBOARD_INTENSET0_TRIGGERED2_Msk , NRF_BELLBOARD_INT_TRIGGERED_3_MASK = BELLBOARD_INTENSET0_TRIGGERED3_Msk , NRF_BELLBOARD_INT_TRIGGERED_4_MASK = BELLBOARD_INTENSET0_TRIGGERED4_Msk , NRF_BELLBOARD_INT_TRIGGERED_5_MASK = BELLBOARD_INTENSET0_TRIGGERED5_Msk , NRF_BELLBOARD_INT_TRIGGERED_6_MASK = BELLBOARD_INTENSET0_TRIGGERED6_Msk , NRF_BELLBOARD_INT_TRIGGERED_7_MASK = BELLBOARD_INTENSET0_TRIGGERED7_Msk , NRF_BELLBOARD_INT_TRIGGERED_8_MASK = BELLBOARD_INTENSET0_TRIGGERED8_Msk , NRF_BELLBOARD_INT_TRIGGERED_9_MASK = BELLBOARD_INTENSET0_TRIGGERED9_Msk , NRF_BELLBOARD_INT_TRIGGERED_10_MASK = BELLBOARD_INTENSET0_TRIGGERED10_Msk , NRF_BELLBOARD_INT_TRIGGERED_11_MASK = BELLBOARD_INTENSET0_TRIGGERED11_Msk , NRF_BELLBOARD_INT_TRIGGERED_12_MASK = BELLBOARD_INTENSET0_TRIGGERED12_Msk , NRF_BELLBOARD_INT_TRIGGERED_13_MASK = BELLBOARD_INTENSET0_TRIGGERED13_Msk , NRF_BELLBOARD_INT_TRIGGERED_14_MASK = BELLBOARD_INTENSET0_TRIGGERED14_Msk , NRF_BELLBOARD_INT_TRIGGERED_15_MASK = BELLBOARD_INTENSET0_TRIGGERED15_Msk , NRF_BELLBOARD_INT_TRIGGERED_16_MASK = BELLBOARD_INTENSET0_TRIGGERED16_Msk , NRF_BELLBOARD_INT_TRIGGERED_17_MASK = BELLBOARD_INTENSET0_TRIGGERED17_Msk , NRF_BELLBOARD_INT_TRIGGERED_18_MASK = BELLBOARD_INTENSET0_TRIGGERED18_Msk , NRF_BELLBOARD_INT_TRIGGERED_19_MASK = BELLBOARD_INTENSET0_TRIGGERED19_Msk , NRF_BELLBOARD_INT_TRIGGERED_20_MASK = BELLBOARD_INTENSET0_TRIGGERED20_Msk , NRF_BELLBOARD_INT_TRIGGERED_21_MASK = BELLBOARD_INTENSET0_TRIGGERED21_Msk , NRF_BELLBOARD_INT_TRIGGERED_22_MASK = BELLBOARD_INTENSET0_TRIGGERED22_Msk , NRF_BELLBOARD_INT_TRIGGERED_23_MASK = BELLBOARD_INTENSET0_TRIGGERED23_Msk , NRF_BELLBOARD_INT_TRIGGERED_24_MASK = BELLBOARD_INTENSET0_TRIGGERED24_Msk , NRF_BELLBOARD_INT_TRIGGERED_25_MASK = BELLBOARD_INTENSET0_TRIGGERED25_Msk , NRF_BELLBOARD_INT_TRIGGERED_26_MASK = BELLBOARD_INTENSET0_TRIGGERED26_Msk , NRF_BELLBOARD_INT_TRIGGERED_27_MASK = BELLBOARD_INTENSET0_TRIGGERED27_Msk , NRF_BELLBOARD_INT_TRIGGERED_28_MASK = BELLBOARD_INTENSET0_TRIGGERED28_Msk , NRF_BELLBOARD_INT_TRIGGERED_29_MASK = BELLBOARD_INTENSET0_TRIGGERED29_Msk , NRF_BELLBOARD_INT_TRIGGERED_30_MASK = BELLBOARD_INTENSET0_TRIGGERED30_Msk , NRF_BELLBOARD_INT_TRIGGERED_31_MASK = BELLBOARD_INTENSET0_TRIGGERED31_Msk } |
BELLBOARD interrupts. More... | |
enum | nrf_bellboard_task_t { NRF_BELLBOARD_TASK_TRIGGER_0 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[0]) , NRF_BELLBOARD_TASK_TRIGGER_1 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[1]) , NRF_BELLBOARD_TASK_TRIGGER_2 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[2]) , NRF_BELLBOARD_TASK_TRIGGER_3 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[3]) , NRF_BELLBOARD_TASK_TRIGGER_4 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[4]) , NRF_BELLBOARD_TASK_TRIGGER_5 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[5]) , NRF_BELLBOARD_TASK_TRIGGER_6 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[6]) , NRF_BELLBOARD_TASK_TRIGGER_7 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[7]) , NRF_BELLBOARD_TASK_TRIGGER_8 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[8]) , NRF_BELLBOARD_TASK_TRIGGER_9 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[9]) , NRF_BELLBOARD_TASK_TRIGGER_10 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[10]) , NRF_BELLBOARD_TASK_TRIGGER_11 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[11]) , NRF_BELLBOARD_TASK_TRIGGER_12 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[12]) , NRF_BELLBOARD_TASK_TRIGGER_13 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[13]) , NRF_BELLBOARD_TASK_TRIGGER_14 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[14]) , NRF_BELLBOARD_TASK_TRIGGER_15 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[15]) , NRF_BELLBOARD_TASK_TRIGGER_16 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[16]) , NRF_BELLBOARD_TASK_TRIGGER_17 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[17]) , NRF_BELLBOARD_TASK_TRIGGER_18 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[18]) , NRF_BELLBOARD_TASK_TRIGGER_19 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[19]) , NRF_BELLBOARD_TASK_TRIGGER_20 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[20]) , NRF_BELLBOARD_TASK_TRIGGER_21 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[21]) , NRF_BELLBOARD_TASK_TRIGGER_22 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[22]) , NRF_BELLBOARD_TASK_TRIGGER_23 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[23]) , NRF_BELLBOARD_TASK_TRIGGER_24 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[24]) , NRF_BELLBOARD_TASK_TRIGGER_25 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[25]) , NRF_BELLBOARD_TASK_TRIGGER_26 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[26]) , NRF_BELLBOARD_TASK_TRIGGER_27 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[27]) , NRF_BELLBOARD_TASK_TRIGGER_28 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[28]) , NRF_BELLBOARD_TASK_TRIGGER_29 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[29]) , NRF_BELLBOARD_TASK_TRIGGER_30 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[30]) , NRF_BELLBOARD_TASK_TRIGGER_31 = offsetof(NRF_BELLBOARD_Type, TASKS_TRIGGER[31]) } |
BELLBOARD tasks. More... | |
Functions | |
NRF_STATIC_INLINE void | nrf_bellboard_task_trigger (NRF_BELLBOARD_Type *p_reg, nrf_bellboard_task_t task) |
Function for triggering the specified BELLBOARD task. | |
NRF_STATIC_INLINE uint32_t | nrf_bellboard_task_address_get (NRF_BELLBOARD_Type const *p_reg, nrf_bellboard_task_t task) |
Function for getting the address of the specified BELLBOARD task register. | |
NRF_STATIC_INLINE nrf_bellboard_event_t | nrf_bellboard_triggered_event_get (uint8_t index) |
Function for getting the specified BELLBOARD TRIGGERED event. | |
NRF_STATIC_INLINE nrf_bellboard_task_t | nrf_bellboard_trigger_task_get (uint8_t index) |
Function for getting the specified BELLBOARD TRIGGER task. | |
NRF_STATIC_INLINE void | nrf_bellboard_event_clear (NRF_BELLBOARD_Type *p_reg, nrf_bellboard_event_t event) |
Function for clearing the specified BELLBOARD event. | |
NRF_STATIC_INLINE bool | nrf_bellboard_event_check (NRF_BELLBOARD_Type const *p_reg, nrf_bellboard_event_t event) |
Function for retrieving the state of the BELLBOARD event. | |
NRF_STATIC_INLINE uint32_t | nrf_bellboard_event_address_get (NRF_BELLBOARD_Type const *p_reg, nrf_bellboard_event_t event) |
Function for getting the address of the specified BELLBOARD event register. | |
NRF_STATIC_INLINE void | nrf_bellboard_int_enable (NRF_BELLBOARD_Type *p_reg, uint8_t group_idx, uint32_t mask) |
Function for enabling specified interrupts. | |
NRF_STATIC_INLINE void | nrf_bellboard_int_disable (NRF_BELLBOARD_Type *p_reg, uint8_t group_idx, uint32_t mask) |
Function for disabling specified interrupts. | |
NRF_STATIC_INLINE uint32_t | nrf_bellboard_int_enable_check (NRF_BELLBOARD_Type const *p_reg, uint8_t group_idx, uint32_t mask) |
Function for checking if the specified interrupts are enabled. | |
NRF_STATIC_INLINE uint32_t | nrf_bellboard_int_pending_get (NRF_BELLBOARD_Type const *p_reg, uint8_t group_idx) |
Function for retrieving the state of pending interrupts. | |
Hardware access layer for managing the BELLBOARD peripheral.
BELLBOARD events.
BELLBOARD interrupts.
enum nrf_bellboard_task_t |
BELLBOARD tasks.
NRF_STATIC_INLINE uint32_t nrf_bellboard_event_address_get | ( | NRF_BELLBOARD_Type const * | p_reg, |
nrf_bellboard_event_t | event | ||
) |
Function for getting the address of the specified BELLBOARD event register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Specified event. |
NRF_STATIC_INLINE bool nrf_bellboard_event_check | ( | NRF_BELLBOARD_Type const * | p_reg, |
nrf_bellboard_event_t | event | ||
) |
Function for retrieving the state of the BELLBOARD event.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to be checked. |
true | The event has been generated. |
false | The event has not been generated. |
NRF_STATIC_INLINE void nrf_bellboard_event_clear | ( | NRF_BELLBOARD_Type * | p_reg, |
nrf_bellboard_event_t | event | ||
) |
Function for clearing the specified BELLBOARD event.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | event | Event to clear. |
NRF_STATIC_INLINE void nrf_bellboard_int_disable | ( | NRF_BELLBOARD_Type * | p_reg, |
uint8_t | group_idx, | ||
uint32_t | mask | ||
) |
Function for disabling specified interrupts.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | group_idx | Index of interrupt group to be disabled. |
[in] | mask | Mask of interrupts to be disabled. Use nrf_bellboard_int_mask_t values for bit masking. |
NRF_STATIC_INLINE void nrf_bellboard_int_enable | ( | NRF_BELLBOARD_Type * | p_reg, |
uint8_t | group_idx, | ||
uint32_t | mask | ||
) |
Function for enabling specified interrupts.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | group_idx | Index of interrupt group to be enabled. |
[in] | mask | Mask of interrupts to be enabled. Use nrf_bellboard_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_bellboard_int_enable_check | ( | NRF_BELLBOARD_Type const * | p_reg, |
uint8_t | group_idx, | ||
uint32_t | mask | ||
) |
Function for checking if the specified interrupts are enabled.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | group_idx | Index of interrupt group to be checked. |
[in] | mask | Mask of interrupts to be checked. Use nrf_bellboard_int_mask_t values for bit masking. |
NRF_STATIC_INLINE uint32_t nrf_bellboard_int_pending_get | ( | NRF_BELLBOARD_Type const * | p_reg, |
uint8_t | group_idx | ||
) |
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.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | group_idx | Index of interrupt group to be retrieved. |
NRF_STATIC_INLINE uint32_t nrf_bellboard_task_address_get | ( | NRF_BELLBOARD_Type const * | p_reg, |
nrf_bellboard_task_t | task | ||
) |
Function for getting the address of the specified BELLBOARD task register.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | task | Specified task. |
NRF_STATIC_INLINE void nrf_bellboard_task_trigger | ( | NRF_BELLBOARD_Type * | p_reg, |
nrf_bellboard_task_t | task | ||
) |
Function for triggering the specified BELLBOARD task.
[in] | p_reg | Pointer to the structure of registers of the peripheral. |
[in] | task | Task to be triggered. |
NRF_STATIC_INLINE nrf_bellboard_task_t nrf_bellboard_trigger_task_get | ( | uint8_t | index | ) |
Function for getting the specified BELLBOARD TRIGGER task.
[in] | index | Task index. |
NRF_STATIC_INLINE nrf_bellboard_event_t nrf_bellboard_triggered_event_get | ( | uint8_t | index | ) |
Function for getting the specified BELLBOARD TRIGGERED event.
[in] | index | Event index. |